eZ Community » Forums » Developer » LDAP error
expandshrink

LDAP error

LDAP error

Thursday 23 December 2010 10:42:46 am - 2 replies

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)(userprincipalname=pavan.reddy@xyz.com))',
  '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?


    	                    
                            
	                    
			                                            
	                    

Thursday 23 December 2010 3:08:15 pm

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.

Thursday 23 December 2010 3:58:35 pm

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

Cheers,

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from