I believe that the last time I tried using LDAP it was working; try making the following changes: 1. inc_global.php: ensure the following line is not commented out: $LOGIN_AUTHENTICATORS[] = 'LDAP'; 2. inc_global.php: replace the following lines: $LDAP__INFO_REQUIRED = array('displayname','mail','sn'); // Name of attribute to use to check user type (via function below) define('LDAP__USER_TYPE_ATTRIBUTE', 'description'); with // Mapping of LDAP server attribute names (WebPA name => LDAP attribute name) $LDAP_INFO_PARAMETERS = array('forename' => 'displayname', 'lastname' => 'sn', 'email' => 'mail' ); (Note that the above LDAP attribute names may need to be adjusted to fit the names used by your LDAP server. For example, I think I had to use "givenname" for "displayname" for one LDAP server.) 3. inc_global.php: delete the get_LDAP_user_type() function. 4. class_ldap_authenticator.php: replace with the attached copy. Stephen On 04/03/2014 12:30, Troels Bugge wrote: > Hi everybody, > > I have installed WebPA and would like to integrate it with our LDAP. I have tried almost every setting I can think of, but I have had no succes with the integration. From what I can read from the errors I have established connection to our LDAP (im not presented with a connection error), I get a "Your username and password were rejected. Please check your details and try again.", when I tried logging in with a LDAP user. If I use the local db user, the login is successful. > > So here's my questions :) > > Have anybody successfully made the integration with LDAP using WebPA v2? > If so, are there any specific modifications I have to do ind our LDAP to get it working? > > My ldap configurations are the following: > > define(LDAP__HOST', "myldap.my.domain.com"); > define(LDAP__PORT', 3268); > define(LDAP__USERNAME_EXT', [log in to unmask]); > define(LDAP__BASE', 'dc=my dc=domain dc=com'); > define(LDAP__FILTER', 'name={username}*'); > define(LDAP__USER_TYPE_ATTRIBUTE', 'description'); > define(LDAP__DEBUG_LEVEL', 7); > define(LDAP__AUTO_CREATE_USER', TRUE); > > I would appreciate any help :) > > Thank you! > > Regards, > Troels Jon Bugge > Aarhus School of Marine and Technical Engineering > Aarhus, Denmark >