Hello,
I've been trying for some time to do the right configs for rundeck docker image to enable ldaps login. Currently using version 5.1.1-rc2-20240229, also tried 5.1.0.
I keep getting connection closed, not sure why or how to fix that, any ideas what is wrong with my config?
I did manage to ping the ldaps url/port combination from the docker image, so I don't think it's a firewall issue.
I have set these environment variables in my Dockerfile, is there something I'm missing?
I also tried to set them via remco, same result.
ENV RUNDECK_AUTHENTICATION=ldap
ENV RDECK_JVM_OPTS="-Dloginmodule.name=ldap -Dcom.dtolabs.rundeck.jetty.jaas.LEVEL=DEBUG"
ENV RUNDECK_LOGGING_LOGLEVEL_ROOT="debug"
ENV RUNDECK_JAAS_LDAP_FLAG=required
ENV RUNDECK_JAAS_MODULES_0="JettyCachingLdapLoginModule"
ENV RUNDECK_JAAS_LDAP_CONTEXTFACTORY="com.sun.jndi.ldap.LdapCtxFactory"
ENV RUNDECK_JAAS_LDAP_PROVIDERURL="myldapurl"
ENV RUNDECK_JAAS_LDAP_BINDDN="username"
ENV RUNDECK_JAAS_LDAP_BINDPASSWORD="password"
ENV RUNDECK_JAAS_LDAP_AUTHENTICATIONMETHOD="simple"
ENV RUNDECK_JAAS_LDAP_USERBASEDN="userBaseDn"
ENV RUNDECK_JAAS_LDAP_ROLEBASEDN="roleBaseDn"
ENV RUNDECK_JAAS_LDAP_FORCEBINDINGLOGIN="true"
ENV RUNDECK_JAAS_LDAP_USERRDNATTRIBUTE="sAMAccountName"
ENV RUNDECK_JAAS_LDAP_USERIDATTRIBUTE="sAMAccountName"
ENV RUNDECK_JAAS_LDAP_USERPASSWORDATTRIBUTE="pwd"
ENV RUNDECK_JAAS_LDAP_USEROBJECTCLASS="user"
ENV RUNDECK_JAAS_LDAP_ROLENAMEATTRIBUTE="cn"
ENV RUNDECK_JAAS_LDAP_ROLEOBJECTCLASS="group"
ENV RUNDECK_JAAS_LDAP_ROLEUSERNAMEMEMBERATTRIBUTE="member"
ENV RUNDECK_JAAS_LDAP_ROLEMEMBERATTRIBUTE="roleAttr"
ENV RUNDECK_JAAS_LDAP_SUPPLEMENTALROLES="role"
ENV RUNDECK_JAAS_LDAP_CACHEDURATIONMILLIS="30000"
ENV RUNDECK_JAAS_LDAP_REPORTSTATISTICS="true"
ENV RUNDECK_JAAS_LDAP_TIMEOUTREAD="10000"
ENV RUNDECK_JAAS_LDAP_TIMEOUTCONNECT="20000"
ENV RUNDECK_SECURITY_SYNCLDAPUSER="true"
ENV RUNDECK_JAAS_LDAP_NESTEDGROUPS="false"
I'm getting this exception
ERROR jaas.JettyCachingLdapLoginModule - Naming error
javax.naming.CommunicationException: simple bind failed: myldapurl
...
Caused by: java.net.SocketException: Connection or outbound has closed
I also tried to add the cacerts in $JAVA_HOME/conf/security/cacerts and also tried to import the certs into the truststore, but got the same results.
Any help would be much appreciated!
Thank you,
Cristina Ruscau