I’m using RS2.2.2-5639 version of ReportServer and I’ve configured LDAP as instructed on page http://blog.datenwerke.net/2013/08/ReportServer-LDAP-ActiveDirectory-authentication.html
Users are regularly imported and I’ve put groovy script ‘hookldappam.groovy’ to ‘onstartup.d’ dir. Also I’ve changed ‘rs.authenticator.pams’ to an empty value and restarted server.
When I try to login I got error with message “Login attempt failed.” Screenshoot: http://pasteboard.co/1DIF6RnV.png
This is log from console:
####### LdapPAM: authenticate with local password: fail
####### LdapPAM: authenticate against directory server: success
####### LdapPAM: authenticate success (usr=milanr)
After click on OK button on Error pop up form I got another one log in console:
####### LdapPAM: authenticate notoken (result=AuthenticationResult(false, null, false)
I checked groovy script and this is suspicious part:
User u = authenticate(credentials.getUsername(), credentials.getPassword());
if(null != u){
System.out.println("####### LdapPAM: authenticate success (usr=" + u.getUsername() + ")")
return new AuthenticationResult(true, u, true);
}
Obviously, LDAP auth is passing …
Any help would be greatly appreciated
Milan