【发布时间】:2023-04-05 20:48:02
【问题描述】:
两天来,我一直在尝试通过 LDAP 将 JC 连接到 Rundeck,但没有任何运气。绑定用户的用户名和密码100%正确。
错误:
ERROR jaas.JettyCachingLdapLoginModule - Naming error
javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
有人能成功配置吗?
我的 jaas-ldap.conf 文件如下所示:
com.dtolabs.rundeck.jetty.jaas.JettyCachingLdapLoginModule sufficient
debug="true"
contextFactory="com.sun.jndi.ldap.LdapCtxFactory"
providerUrl="ldaps://ldap.jumpcloud.com"
bindDN="uid=<username>,ou=Users,o=<xxxxxx>,dc=jumpcloud,dc=com"
bindPassword="<password>"
authenticationMethod="simple"
forceBindingLogin="false"
userBaseDn="ou=Users,o=<xxxxxx>,dc=jumpcloud,dc=com"
userRdnAttribute="uid"
userIdAttribute="uid"
userPasswordAttribute="userPassword"
userObjectClass="posixAccount"
roleBaseDn="ou=Users,o=<xxxxxxx>,dc=jumpcloud,dc=com"
roleNameAttribute="cn"
roleUsernameMemberAttribute="memberUid"
roleMemberAttribute="memberUid"
roleObjectClass="posixGroup"
cacheDurationMillis="300000"
reportStatistics="true"
supplementalRoles="user"
timeoutConnect="20000"
nestedGroups="true";
【问题讨论】:
-
验证您的 LDAP 树以确保您与 userBaseDn 和 userPasswordAttribute 匹配。 2)你的用户也需要一个角色,查看角色条目,我当前的配置:pastebin.com/kj5vYce9。此外,您可以在这里查看一个很好的示例:docs.rundeck.com/docs/administration/security/…
-
谢谢。添加了角色属性并验证了 userBaseDn 和 userPassword。仍然收到相同的“无效凭据”错误:(