note 73691 added to function.ldap-connect

From: Date: Tue, 06 Mar 2007 22:23:59 +0000
Subject: note 73691 added to function.ldap-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-124176@lists.php.net to get a copy of this message
I sure do wish there was some way I could get this information out to all programmers in the world about binding and searching MS AD. This is the second time I was bit by the "I need to search the entire tree" problem. For php (and apache auth_ldap ) you need to specify port 3268 when you want to search the entire tree. Otherwise it will spit out the partial results error. ldap_connect($server,3268); I'm just fortunate enough to have won this same battle with apache searching the whole directory. When I noticed our php application failing auth's for users, I was immediately able to fix the problem by adding this port specification (and the ldap_set_option($ldapserver, LDAP_OPT_REFERRALS, 0) option). I really hope this helps someone else before they pull all their hair out. I know I miss mine. ---- Server IP: 216.194.113.175 Probable Submitter: 130.39.198.155 ---- Manual Page -- http://www.php.net/manual/en/function.ldap-connect.php Edit -- https://master.php.net/note/edit/73691 Del: integrated -- https://master.php.net/note/delete/73691/integrated Del: useless -- https://master.php.net/note/delete/73691/useless Del: bad code -- https://master.php.net/note/delete/73691/bad+code Del: spam -- https://master.php.net/note/delete/73691/spam Del: non-english -- https://master.php.net/note/delete/73691/non-english Del: in docs -- https://master.php.net/note/delete/73691/in+docs Del: other reasons-- https://master.php.net/note/delete/73691 Reject -- https://master.php.net/note/reject/73691 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124176) next »