管理员登陆–>全局安全配置
ldap
Server:x.x.x.x:389 (不需要带ldap://)
root DN:置空
User search base:dc=xx,dc=xx(#和自己的openldap设置是一样的)
User search filter:uid={0} (#这个是默认的值)
Group search base:dc=xx,dc=xx(#和自己的openldap设置是一样的)
Group search filter:置空
Group membership:Search for LDAP groups containing user Group membership filter(值为空就可以)
Manager DN:cn=admin,dc=xx,dc=xx
Manager Password:xxxx(管理员的密码)
Display Name LDAP attribute:uid
Email Address LDAP attribute:mail
设置完毕点击验证,验证信息如下
Login
Authentication: successful
User ID: wanyanzj
User Dn: cn=wanyanzj,ou=People,dc=xx,dc=xx
User Display Name: wanyanzj
User email: wanyanzj@xx.xx
jenkins
Lookup
User lookup: successful
User groups consistent (login and lookup)
LDAP Group lookup: successful (2 groups)