首页 文章

LDAP:错误代码49 - 登录时凭据无效

提问于
浏览
0

我'm trying to integrate our app to an active directory. I'已按照本指南开始:https://grails.org/wiki/AcegiSecurity%20Plugin%20-%20LDAP%20Tutorial但我收到一个错误:

[LDAP:错误代码49 - 证书无效];嵌套异常是javax.naming.AuthenticationException:[LDAP:错误代码49 - 证书无效];登录后(连接到LDAP目录OpenDJ)这是我的acegi安全配置

// LDAP/ActiveDirectory
useLdap = true
ldapRetrieveGroupRoles = false
ldapRetrieveDatabaseRoles = true
ldapSearchSubtree = true
ldapGroupRoleAttribute = 'cn'
ldapPasswordAttributeName = 'userPassword'
ldapServer = 'ldap://localhost:389' // 'ldap://ad.example.com', 'ldap://monkeymachine:389/dc=acegisecurity,dc=org'
ldapManagerDn = 'cn=Directory Manager,dc=example,dc=com'
ldapManagerPassword = 'Password123'
ldapSearchBase = 'dc=example,dc=com' // 'ou=users,dc=example,dc=com'
ldapSearchFilter = '(uid={0})' //, '(mailNickname={0})'
ldapGroupSearchBase = 'ou=company_name,dc=example,dc=com'
ldapGroupSearchFilter = 'uniquemember={0}'
ldapUsePassword = true

这个错误意味着什么?我的管理员(ldapManagerDn)凭据错了吗?或登录凭据?

谢谢

注意:我使用的是acegi 0.5.2,因为我们的applcation仍然使用grails 1.3.6

1 回答

相关问题