LDAP login issue / Login attempt failed

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

Hi Milan,

this might not be a problem with the LDAP authentication at all:
did you verify that the imported users have the necessary permissions to log in?
Check Admin > Permission management > ReportServer Access

Cheers,
Thorsten

OMG :slight_smile: I should take a break after 15 working hours :smiley:
I totally forgot to double check this. Sorry for bothering you…
I have to research better user and permission management in order to organize reports …

Thank you so much Thorsten!
Milan

Glad you got it working.
No worries, we’ve all been there!

Cheers,
Thorsten