Forums / General / Ldap pb

Ldap pb

Author Message

thomas BAILLEUL

Tuesday 03 October 2006 8:37:37 am

Hi,

I use ezpublish 8.4 on freebsd (6.1) I've problem concerning ldap authentification,
Indeed I tried to connect a user (not stored in my ez database) to my ezpublish-site with the ldap server(site.ini LoginHandler=Ldap) but I've 2 error messages :
ldap_search () No such Object in /root/ezpublish.../kernel/.../ezldapuser.php line 264
ldap_get_entries () : supplied argument is not a valid ldap result ressource in ... line 261

here the ldap.ini.append.php conf :

LDAPVersion=3

LDAPEnabled=true

LDAPServer=ip ldap server

LDAPPort=389

LDAPBaseDn=dc--....,dc--com

LDAPBindUser=

LDAPBindPassword=

LDAPSearchScope=sub

LDAPEqualSign=--

LDAPSearchFilters[]

LDAPLoginAttribute=uid

LDAPUserGroupType=id

LDAPUserGroup[]=129

LDAPUserGroupAttributeType=id

LDAPUserGroupAttribute=4

LDAPFirstNameAttribute=givenname

LDAPLastNameAttribute=sn

LDAPEmailAttribute=mail

Utf8Encoding=false

if someone had a idea, it would be very helpful

Jonny Bergkvist

Wednesday 04 October 2006 5:21:01 am

Hi,

Do you have access to debug-logs on the ldap-server? They may tell you something!

Does the users in ldap directory have the uid-attribute? In some cases this attribute is not present. If that is the case, you should probably LDAPLoginAttribute=cn

Regard, Jonny

thomas BAILLEUL

Wednesday 04 October 2006 7:18:14 am

Hi Jonny,

Thanks for the reply, now I haven't this error message but it still does not work.
I login' with a user (store in the ldap database but not in the ez_database ), the user is created in the table: ezcontentobject as a new user, also inserted in other tables like ezcontent:object_name,_version,_attribute,_ezusersettings , _object,

even if it is inserted in the ezuser_table but the row password_hash is empty as password_hash_type!

and I can't login and have the warning :

User not found, returning anonymous
Anonymous User not found , returning NoUser

How could I handle that? I would be greatful for some ideas !