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)(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?


                       

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

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 29 2025 23:50:47
Script start
Timing: Jan 29 2025 23:50:47
Module start 'layout'
Timing: Jan 29 2025 23:50:47
Module start 'content'
Timing: Jan 29 2025 23:50:47
Module end 'content'
Timing: Jan 29 2025 23:50:47
Script end

Main resources:

Total runtime0.0637 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 588.0078151.1953
Module start 'layout' 0.00730.0024 739.203136.6094
Module start 'content' 0.00970.0516 775.812590.1563
Module end 'content' 0.06130.0023 865.968833.9766
Script end 0.0636  899.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00284.3625140.0002
Check MTime0.00111.7425140.0001
Mysql Total
Database connection0.00081.291110.0008
Mysqli_queries0.00243.808230.0008
Looping result0.00000.017210.0000
Template Total0.00182.810.0018
Template load0.00142.273610.0014
Template processing0.00030.477610.0003
Override
Cache load0.00060.959610.0006
General
dbfile0.037458.777480.0047
String conversion0.00000.012440.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