note 123556 added to function.ldap-search

From: Date: Mon, 28 Jan 2019 08:59:31 +0000
Subject: note 123556 added to function.ldap-search
Groups: php.notes 
Request: Send a blank email to php-notes+get-210123@lists.php.net to get a copy of this message
While developing a plugin, I had to search users on LDAP server using ldap_search() command and it was not finding them, but ldapsearch command in unix shell (ubuntu) did. Problem was few lines above in my code, around ldap_connect(). For server address I input ldap://server.hostname, which turned to be the culprit. Once I used only server.hostname, without protocol (ldap://), users where found and shown correctly. ---- Server IP: 208.43.231.9 Probable Submitter: 185.85.3.142 (proxied: 212.235.185.131) ---- Manual Page -- http://php.net/manual/en/function.ldap-search.php Edit -- https://master.php.net/note/edit/123556 Del: integrated -- https://master.php.net/note/delete/123556/integrated Del: useless -- https://master.php.net/note/delete/123556/useless Del: bad code -- https://master.php.net/note/delete/123556/bad+code Del: spam -- https://master.php.net/note/delete/123556/spam Del: non-english -- https://master.php.net/note/delete/123556/non-english Del: in docs -- https://master.php.net/note/delete/123556/in+docs Del: other reasons-- https://master.php.net/note/delete/123556 Reject -- https://master.php.net/note/reject/123556 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#210123) next »