note 29838 added to function.ldap-search

From: Date: Wed, 26 Feb 2003 15:20:33 +0000
Subject: note 29838 added to function.ldap-search
Groups: php.notes 
Request: Send a blank email to php-notes+get-44556@lists.php.net to get a copy of this message
When I tried to search with empty base DN on OpenLDAP server which had "" namingContext I got result "no such object". In the log file there was query for dn: dc=example,dc=com (!). As a workaround, it seems it's enough to feed it with space (' ') as base DN - ldap_search($ds, ' ', '(...filter...)', ... -- http://www.php.net/manual/en/function.ldap-search.php http://master.php.net/manage/user-notes.php?action=edit+29838 http://master.php.net/manage/user-notes.php?action=delete+29838 http://master.php.net/manage/user-notes.php?action=reject+29838

« previous php.notes (#44556) next »