note 70704 added to function.ldap-connect

From: Date: Tue, 24 Oct 2006 12:14:14 +0000
Subject: note 70704 added to function.ldap-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-119069@lists.php.net to get a copy of this message
After struggling tens of hours I managed to figure out why I couldn’t make forest wide searches from our AD. I did know that I have to use global catalog (port 3268) to be able to do this and so I thought that I was using. However it turned out that at least PHP 5.1.x running on Windows don’t support the second parameter to ldap_connect. I didn’t receive any error even I gave the port number to it. It simply didn’t use that value at all. The solution was to add the port number to the host string: $adConn = ldap_connect('ldap://mydc.mycompany.com:3268'); After this I was able to do domain wide searches and regained my lost sanity (hopefully). :-) ---- Server IP: 62.237.7.3 Probable Submitter: 193.210.65.69 (proxied: 1.1 PXSE02FI) ---- Manual Page -- http://www.php.net/manual/en/function.ldap-connect.php Edit -- https://master.php.net/note/edit/70704 Del: integrated -- https://master.php.net/note/delete/70704/integrated Del: useless -- https://master.php.net/note/delete/70704/useless Del: bad code -- https://master.php.net/note/delete/70704/bad+code Del: spam -- https://master.php.net/note/delete/70704/spam Del: non-english -- https://master.php.net/note/delete/70704/non-english Del: in docs -- https://master.php.net/note/delete/70704/in+docs Del: other reasons-- https://master.php.net/note/delete/70704 Reject -- https://master.php.net/note/reject/70704 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119069) next »