【发布时间】:2019-09-27 15:37:09
【问题描述】:
当我尝试使用登录名/密码将 cas-overlay-6.0 连接到 ldap Oracle 目录服务器 11 进入 cas 6.0 应用程序时,出现此错误:
谁:myLogin 什么:提供的凭据:
[UsernamePasswordCredential(username=myLogin, source=null)] 操作:
AUTHENTICATION_FAILED 应用程序:CAS
我的 cas.properties:
cas.authn.ldap[0].ldapUrl=ldap://monserveur.fr
# Identifiant pour se connecter au LDAP
cas.authn.ldap[0].bindDn=cn=Directory Manager
cas.authn.ldap[0].bindCredential=myPassword
cas.authn.ldap[0].baseDn=ou=personnels,ou=XX-XXX-XXXX,ou=edu,o=gov,c=uk
cas.authn.ldap[0].searchFilter=uid={user}
cas.authn.ldap[0].subtreeSearch=true
#cas.authn.ldap[0].principalAttributeList=cn,givenName,mail,sn
cas.authn.ldap[0].principalAttributePassword=userPassword
注意:密码是 ldap 中的 SSHA 编码。
如何验证问题出在哪里? 例如,当我输入错误的 baseDn 或 searchFilter 时,我会遇到同样的错误。 如何进行简单的登录/密码测试以消除错误?
cas如何处理密码,即是ldap进行密码比较还是cas?
如果是 cas 执行密码比较如何配置 cas
提前感谢您的帮助!
【问题讨论】:
-
看来您指的不是6.x documentation,而是5.x。请参阅password encoding 部分。您还需要将 principalAttributePassword 值设置为正确的属性类型(例如
principalAttributePassword=userPassword)。 -
感谢您的留言。我尝试了良好的文档,但我遇到了同样的问题。我已经修改了主题。
-
您必须为
bindDn和baseDn提供完整的 dn。您的目录中的用户条目在哪里?请提供示例用户 dn。此外,您的配置似乎缺少一些参数。 -
感谢您的帮助!我修改了这个例子。 baseDn 是使用的匿名示例。 bindDn 正是我在 apache 目录工作室中使用的。
-
好的,但 bindDn 不完整(它可能与
cn=Directory Manager,dc=example,dc=com之类的基本组件有关?)在 Apache DS 左侧窗格的 DIT 中查找确切条目的 dn。
标签: ldap connection cas opends ssha