LDAPServer=localhost Is that correct for you? This could be true if you run eZ at the same server as the LDAP-directory runs, or if you use stunnel or any other redirect-software that passes on traffic from your eZ-host at port 389 to some other host (the LDAP-server).
A hint is to go into kernel/classes/datatypes/ezuser/ezldapuser.php and print some variables, such as result of ldap_connect and ldap_bind. This may make it easier to track your problem.
You may want to follow the ldap connection process and find where it stops/fails:
first is ldap_connect(),
then some ldap_set_option() to konfigure ldap client to match server type/configuration.
Then ldap_bind(). When ldap_bind is successfull you can get data/entries from ldap with
ldap_list() - scope "one", ldap_read() - scope "base", ldap_search - scope "sub" ldap_get_entries() returns the searchresult as an array.
To print a variable you can do like this: edit kernel/common/classes/datatypes/ezuser/ezldapuser.php
You may want to view the $info-variable,
find the line: $info = ldap_get_entries( $ds, $sr ) ;
then insert a line under with: echo "<pre>"; print_r( $sr ); echo "</pre>"; exit;
Try to login and you will see what values this variable contains. If it's empty, you should check out the earlier stages of ldap connection process, by printing variables in the same manner as the example.
- Jonny
You must be logged in to post messages in this topic!