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 !

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 01:28:35
Script start
Timing: Jan 31 2025 01:28:35
Module start 'layout'
Timing: Jan 31 2025 01:28:35
Module start 'content'
Timing: Jan 31 2025 01:28:35
Module end 'content'
Timing: Jan 31 2025 01:28:35
Script end

Main resources:

Total runtime0.0256 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.9766151.1797
Module start 'layout' 0.00690.0044 739.1563220.6172
Module start 'content' 0.01130.0129 959.7734997.7109
Module end 'content' 0.02420.0014 1,957.484433.9922
Script end 0.0256  1,991.4766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002810.9889140.0002
Check MTime0.00114.2366140.0001
Mysql Total
Database connection0.00124.741410.0012
Mysqli_queries0.003312.712530.0011
Looping result0.00000.053910.0000
Template Total0.00103.910.0010
Template load0.00083.103310.0008
Template processing0.00020.803310.0002
Override
Cache load0.00052.089910.0005
General
dbfile0.00145.356980.0002
String conversion0.00000.030740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs