note 94555 added to function.ldap-search

From: Date: Wed, 11 Nov 2009 18:56:43 +0000
Subject: note 94555 added to function.ldap-search
Groups: php.notes 
Request: Send a blank email to php-notes+get-162778@lists.php.net to get a copy of this message
When searching Active Directory, if you are not getting all the attributes back you are expecting such as AD system/hidden attributes such as 'employeeType' then check the following: First, ensure you are not connecting to the Global Catalog port (e.g. 3269/3268). You need to connect to an LDAP port such as 636 (SSL) or 389 (non-SSL). Second, check the DN you are binding with when changing from the Global Catalog port to an LDAP port. I found that a DN without an OU returned a 'Search: Can't contact LDAP server' error. For example this fails: DC=defg,DC=de,DC=abc,DC=ac,DC=uk Whilst adding the OU to the DN returned an error free result: OU=FGH,DC=defg,DC=de,DC=abc,DC=ac,DC=uk If you consequently need to interrogate multiple DNs then an array of DNs can be passed to ldap_search. ---- Server IP: 87.124.86.41 Probable Submitter: 137.73.37.15 (proxied: 137.73.37.15) ---- Manual Page -- http://www.php.net/manual/en/function.ldap-search.php Edit -- https://master.php.net/note/edit/94555 Del: integrated -- https://master.php.net/note/delete/94555/integrated Del: useless -- https://master.php.net/note/delete/94555/useless Del: bad code -- https://master.php.net/note/delete/94555/bad+code Del: spam -- https://master.php.net/note/delete/94555/spam Del: non-english -- https://master.php.net/note/delete/94555/non-english Del: in docs -- https://master.php.net/note/delete/94555/in+docs Del: other reasons-- https://master.php.net/note/delete/94555 Reject -- https://master.php.net/note/reject/94555 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#162778) next »