2.1 安装可插拔组件Devops后,Jenkins 使用 admin 无法登陆,Failed to bind to LDAP: userDnuid=admin,ou=Users,dc=kubesphere,dc=io username=admin
ks-jenkins 日志如下:
2020-03-03 18:29:17.628: WARNING: Failed to bind to LDAP: userDnuid=admin,ou=Users,dc=kubesphere,dc=io username=admin
2020-03-03 18:29:17.628: at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2800)
2020-03-03 18:29:17.628: at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:83)
2020-03-03 18:29:17.628: at org.acegisecurity.ldap.LdapTemplate.retrieveEntry(LdapTemplate.java:165)
2020-03-03 18:29:17.628: at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2886)
2020-03-03 18:29:17.628: at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:319)
2020-03-03 18:29:17.628: at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3154)
2020-03-03 18:29:17.628: at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:153)
2020-03-03 18:29:17.628: at org.acegisecurity.ldap.LdapTemplate.execute(LdapTemplate.java:123)
2020-03-03 18:29:17.628: javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
2020-03-03 16:28:44.091: at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:153)
2020-03-03 16:28:44.091: at org.acegisecurity.providers.ldap.LdapAuthenticationProvider.retrieveUser(LdapAuthenticationProvider.java:233)
2020-03-03 16:28:44.091: at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:210)
2020-03-03 16:28:44.091: at org.acegisecurity.ldap.LdapTemplate.retrieveEntry(LdapTemplate.java:165)
2020-03-03 16:28:44.091: at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2886)
2020-03-03 16:28:44.091: at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:192)
2020-03-03 16:28:44.091: at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:83)
2020-03-03 16:28:44.091: at org.acegisecurity.ldap.LdapTemplate.execute(LdapTemplate.java:123)
2020-03-03 16:28:44.091: at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3154)
2020-03-03 16:28:44.091: at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2800)
2020-03-03 16:28:44.091: at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:319)
2020-03-03 16:28:44.091: at hudson.security.LDAPSecurityRealm$LDAPAuthenticationManager.authenticate(LDAPSecurityRealm.java:997)