配置方法:
1.gitlab 建立個人application

如上圖,
Name, 名稱随便填
Redirect URI: http://xxxxxx/securityRealm/finishLogin
建立完成之後, 儲存下client ID/Client Secret:
2、登入jenkins-系統配置-全局安全配置:
3、基于LDAP接入4A認證方式
需要先在jenkins上面安裝ldap插件,然後申請相關4a的登入資訊,配置參考如下
Security Realm -> LDAP:
Server: ldap://xxxxxx:端口
User search base: ou=Users,dc=xxx,dc=com
User search filter: (&(objectClass=inetOrgPerson)(uid={0}))
Manager DN: cn=xxx,dc=xxx,dc=com
Manager Password: xxxxxxx
Display Name LDAP attribute: cn