note 71206 added to ref.ldap
| From: | nigelf at esp dot co dot uk | Date: | Thu, 16 Nov 2006 14:34:54 +0000 |
| Subject: | note 71206 added to ref.ldap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-119801@lists.php.net to get a copy of this message | ||
Chasing referrals in Active Directory (ie: searching across domains), can be slow. You can look up
the object instead in the GC (Global Catalog) as follows:
Remove any reference to ldap:// when you use ldap_connect, ie: use "serv1.mydom.com" NOT
"ldap://serv1.mydom.com"
Connect to port 3268 (not 389, the default)
Set the Base DN for the search to null ie: "" (empty quotes).
AD will then run the search against the GC which holds a copy of all objects in the Forest. You can
also retrieve a subset of attributes (including group membership, except local groups).
You will still need to follow referals for a full set of attributes.
----
Server IP: 66.163.161.117
Probable Submitter: 213.253.45.9
----
Manual Page -- http://www.php.net/manual/en/ref.ldap.php
Edit -- https://master.php.net/note/edit/71206
Del: integrated -- https://master.php.net/note/delete/71206/integrated
Del: useless -- https://master.php.net/note/delete/71206/useless
Del: bad code -- https://master.php.net/note/delete/71206/bad+code
Del: spam -- https://master.php.net/note/delete/71206/spam
Del: non-english -- https://master.php.net/note/delete/71206/non-english
Del: in docs -- https://master.php.net/note/delete/71206/in+docs
Del: other reasons-- https://master.php.net/note/delete/71206
Reject -- https://master.php.net/note/reject/71206
Search -- https://master.php.net/manage/user-notes.php