jjethwa / rundeck

GNU General Public License v3.0
123 stars 137 forks source link

jaas-ldap not working in v3.0.0 #141

Closed moreiramarti closed 6 years ago

moreiramarti commented 6 years ago

Hi,

I'm trying to update my docker image to v3 and my ldap auth is not working anymore. It seems that rundeck 3 uses an embedded login module or something and doesn't use my login config.

The command line I launch : java -Djava.security.auth.login.config=/etc/rundeck/jaas-ldap.conf -Dloginmodule.name=ldap -Drdeck.config=/etc/rundeck -Drundeck.server.configDir=/etc/rundeck -Dserver.datastore.path=/var/lib/rundeck/data/rundeck -Drundeck.server.serverDir=/var/lib/rundeck -Drdeck.projects=/var/lib/rundeck/projects -Drdeck.runlogs=/var/lib/rundeck/logs -Drundeck.config.location=/etc/rundeck/rundeck-config.properties -Djava.io.tmpdir=/tmp/rundeck -Drundeck.server.workDir=/tmp/rundeck -Dserver.http.port=4440 -Drdeck.base=/var/lib/rundeck -Xms2048m -Xmx2048m -jar /var/lib/rundeck/bootstrap/rundeck-3.0.0-20180727.war --skipinstall

Regards, Martinho MOREIRA

moreiramarti commented 6 years ago

I found the issue -Djava.security.auth.login.config should be -Dloginmodule.conf.name

jjethwa commented 6 years ago

Thanks, @moreiramarti I saw https://github.com/rundeck/rundeck/issues/3757 but then the PR that was linked did not include that change. I'll get that updated now :smile:

moreiramarti commented 6 years ago

Thank you for your help