Forums / Developer / LDAP error

LDAP error

Author Message

Pavanred

Thursday 23 December 2010 1:42:46 am

I am trying to use LDAP login to ezpublish but I am facing this error -

ldap_search() [<a href='function.ldap-search'>function.ldap-search</a>]: Search: Operations error in C:\wamp\www\ezpub\kernel\classes\datatypes\ezuser\ezldapuser.php on line 322

I don't know how to fix this or why this error is occuring. This is the debug trace before ldap_search fails -

array (
  'stage' => '2/5: finding user',
  'LDAPFilter' => '( &(objectCategory=person)([email protected]))',
  'retrieveAttributes' => 
  array (
    0 => 'userprincipalname',
    1 => '',
    2 => '',
    3 => 'userprincipalname',
  ),
  'LDAPSearchScope' => 'sub',
  'LDAPBaseDN' => 'ou=xyz,dc=xy,dc=xyzldap',
)

What is wrong here? Does anyone have any idea what the problem might be? And how can I resolve it?


                       

My blog - http://www.pavankumar.info

Pavanred

Thursday 23 December 2010 6:08:15 am

I found the reason it was not working. Turns out that the LDAP server that I was connecting to does not allow anonymous bind, so I had to specify the user name and password for to bind to the server.

Once I provided LDAPBindUser and LDAPBindPassword in the LDAP.ini file, it started working fine.

My blog - http://www.pavankumar.info

Nicolas Pastorino

Thursday 23 December 2010 6:58:35 am

Thanks for keeping us posted Pavan, and thanks for marking the topic as solved, very helpful !

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye