LDAP authentication in eZ Publish
LDAP authentication is build in eZ Publish by default - the only thing to do is configuration.
To use LDAP you have to add line
LoginHandler[]=LDAP
in settings/override/site.ini.append.php file in section UserSettings. In my file it looks like this:
[UserSettings] LogoutRedirect=/ LoginHandler[]=LDAP
In new file settings/override/ldap.ini.append.php you have to specify all connection settings. In my case it looks like this:
[LDAPSettings] LDAPServer=127.0.0.1 LDAPBaseDn=ou--users,dc--jaqb,dc--gda,dc--pl LDAPBindUser=cn--ldap-connect-user,ou--users,dc--jaqb,dc--gda,dc--pl LDAPBindPassword=SecretPassword
The double minus sign is entered instead of equal sign. You can change this using LDAPEqualSign variable.
As you can see, I've created special user only to bind to LDAP server, because my server doesn't allow anonymous bind and you have to enter password in plain text.
When you clear ini cache you can login using LDAP account.
Komentarze
Log in or create a user account to comment.