LDAP_SEARCH problem

LDAP_SEARCH problem

Tuesday 23 September 2008 3:25:53 am - 6 replies

Modified on Tuesday 23 September 2008 3:39:23 am by Pascal Cronauer

Author Message

melle mimi

Wednesday 03 June 2009 3:24:11 am

HI,

i have the same problem!!!!!!

i tried to change ldapbasedn, when i put OU, it works, but if i don't put it doesn't work!!!

can anybody help me, please??????????

SEBBANE Alexandre

Wednesday 03 June 2009 9:43:34 am

What is your ldap server ? Active Directory or OpenLdap

Are you sure php can connect to it ?

can you show us a part of the config ldap.ini you change.

if trouble with put it in public place send me a message by clikking on my name ( in french or english , no problem)

Paris, France

Gaetano Giunta

Thursday 04 June 2009 1:30:46 am

Try this:

ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7); // enables ldap verbose debug even before creating the connection

$conn = ldap_connect("LDAP_server_IP") or die ("cant connect");

ldap_set_option($ds,LDAP_OPT_PROTOCOL_VERSION,3);

$bind = ldap_bind($conn) or die ("not possible");

ldap_set_option($ds, LDAP_OPT_REFERRALS, 0); // "In order to perform the searches on Windows 2003 Server Active Directory you have to set the LDAP_OPT_REFERRALS option to 0"

$result=ldap_search($conn, "dc=domain,dc=de", "(&(samaccountname=cronauer))") or die ("Failure during search");

etc ...

Principal Consultant International Business
Member of the Community Project Board

melle mimi

Wednesday 10 June 2009 7:45:44 am

Thank's Mr Gaetano Giunta;

can y ou, please, tel me where i can pu these modifications?!

do i put it in the file ezldapuser? or in an other?!

Gaetano Giunta

Thursday 11 June 2009 1:29:01 am

@melle mini: the changes I suggested are for the test file that Pascal Cronauer used.

As for patching the eZPublish source code, I think the simplest option is to upgrade to the latest available version, that shoul already include these fixes.

Principal Consultant International Business
Member of the Community Project Board

melle mimi

Sunday 14 June 2009 12:55:54 am

IT WORKS

THANK YOU VERY MUCH .

You must be logged in to post messages in this topic!

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