java ldap authenticationexception,LDAP:错误代码49 - 登录时凭据无效

我'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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值