note 95746 added to function.ldap-search

From: Date: Tue, 19 Jan 2010 22:11:43 +0000
Subject: note 95746 added to function.ldap-search
Groups: php.notes 
Request: Send a blank email to php-notes+get-165121@lists.php.net to get a copy of this message
Following from my note of 11-Nov-2009 06:56 regarding DN issues when using LDAP instead of the Global Catalog when querying AD, further investigation was showing that although the results were in the packet, I was getting an error instead: 'Search: Can't contact LDAP server' AKA Error 81. Using more detailed analysis: ldap_get_option($ds,LDAP_OPT_ERROR_STRING,$error); echo $error Displayed: Referral: ldap://DomainDnsZones.defg.de.bc.ac.uk/ DC=DomainDnsZonesDC=defg,DC=de,DC=abc,DC=ac,DC=uk By using trial and error, the error went away and results returned when using: ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3); ---- Server IP: 69.147.83.197 Probable Submitter: 137.73.37.15 ---- Manual Page -- http://www.php.net/manual/en/function.ldap-search.php Edit -- https://master.php.net/note/edit/95746 Del: integrated -- https://master.php.net/note/delete/95746/integrated Del: useless -- https://master.php.net/note/delete/95746/useless Del: bad code -- https://master.php.net/note/delete/95746/bad+code Del: spam -- https://master.php.net/note/delete/95746/spam Del: non-english -- https://master.php.net/note/delete/95746/non-english Del: in docs -- https://master.php.net/note/delete/95746/in+docs Del: other reasons-- https://master.php.net/note/delete/95746 Reject -- https://master.php.net/note/reject/95746 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#165121) next »