Dear
No luck. If I use the example and put in jaas file (I replaced in the info below, my ldap name with MY_AD)
"
com.dtolabs.rundeck.jetty.jaas.JettyCachingLdapLoginModule sufficient
debug="true"
contextFactory="com.sun.jndi.ldap.LdapCtxFactory"
providerUrl="ldaps://MY_AD"
......
"
The error
"
ERROR jaas.JettyCachingLdapLoginModule - Naming error
javax.naming.CommunicationException: simple bind failed: "MY_AD":636
at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:219) ~[?:?]
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2895) ~[?:?]
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:348) ~[?:?]
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxFromUrl(LdapCtxFactory.java:262) ~[?:?]
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:226) ~[?:?]
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:280) ~[?:?]
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:185) ~[?:?]
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:115) ~[?:?]
.......
... 102 more
"
And is the same if jaas file has 636 port:
"
com.dtolabs.rundeck.jetty.jaas.JettyCachingLdapLoginModule sufficient
debug="true"
contextFactory="com.sun.jndi.ldap.LdapCtxFactory"
providerUrl="ldaps://MY_AD:636"
......
"
The error
"
ERROR jaas.JettyCachingLdapLoginModule - Naming error
javax.naming.CommunicationException: simple bind failed: MY_AD:636
"
After if change I restarted rundeckd service.
-The only doubt for jaas file. In the bind info, the user account is different. Do I need to change this for MS Win?
- bindDn="bind...@domain.com" (example) - bindDn="CN=user,CN=Users,DC=NAME,DC=local" (I cannot put info for compliance policy)
Should i put user@mydomain? From what AD attribute i should take this reference, for the connection service account.
-Why does the config works with port 389, getting information for users to validate and with ldaps we get a "naming error"?
Thank you.
Best regards.