Describe the bug
Once Active Directory is configured for authentication, GUI returns Invalid username and password.
Upon looking services.log a solid error is seen: Authentication request failed: org.springframework.security.authentication.BadCredentialsException: Bad credentials
My Rundeck detail
To Reproduce
Steps to reproduce the behavior:
RDECK_JVM="-Djava.security.auth.login.config=/etc/rundeck/jaas-activedirectory.conf \
-Dloginmodule.name=activedirectory \
-Drdeck.config=$RDECK_CONFIG \
-Drundeck.server.configDir=$RDECK_SERVER_CONFIG \
-Dserver.datastore.path=$RDECK_SERVER_DATA/rundeck \
-Drundeck.server.serverDir=$RDECK_INSTALL \
-Drdeck.projects=$RDECK_PROJECTS \
-Drdeck.runlogs=$RUNDECK_LOGDIR \
-Drundeck.config.location=$RDECK_CONFIG_FILE \
-Djava.io.tmpdir=$RUNDECK_TEMPDIR \
-Drundeck.server.workDir=$RUNDECK_WORKDIR \
-Dserver.http.port=$RDECK_HTTP_PORT \
-Dcom.dtolabs.rundeck.jetty.jaas.LEVEL=DEBUG \
-Drdeck.base=$RDECK_BASE"
Expected behavior
A clear and concise description of what you expected to happen.
An authentication with the same configuration as above with an earlier version 2.10.4 happened to succeed.
Screenshots
If applicable, add screenshots to help explain your problem.
Errorlog services.log
System Configuration loaded
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Many configurations tryouts were made, returning the same solid error
@marcioyoshida Try adding: -Drundeck.jaaslogin=true to your RDECK_JVM system properties and see if that helps.
@sjrd218 Added the parameter and, more oddly, it did not started the JVM. I played with the parameters on different line positions, but it seems it did not accepted the parameter.
Error log
Rundeck-AD-error-service.log
Profile configuration
@marcioyoshida That stacktrace seems to indicate your jaas conf file is invalid. I think that's good progress because at least it's trying to use your jaas configuration now.
I had it mistakenly commented with '#'. And, as magic, it authenticated with AD user.
@sjrd218, appreciate your guidance. Best regards, cheers.
Most helpful comment
I had it mistakenly commented with '#'. And, as magic, it authenticated with AD user.
@sjrd218, appreciate your guidance. Best regards, cheers.