I'm using ldap_read() to get the namingContexts from the LDAP
server.

----- s n i p -----
$sr = ldap_read($this->ldap_linkid, '', '(objectClass=*)', array('namingContexts'));
if(! $sr) die("Can't find base dn - ".ldap_error($this->ldap_linkid));
$entry = ldap_get_entries($this->ldap_linkid, $sr);
----- s n i p -----

Unfortunatly, I get:
----- s n i p -----
   Warning: LDAP: Unable to perform the search: No such object in
   /afs/bayour.com/public/web/ldap/phpQLAdmin-CVS.latest/include/pql.inc on line 45
   Can't find base dn - No such object
----- s n i p -----

This only shows up if the namingContexts have a space in it (ie, base DN contains
a space):
----- s n i p -----
[papadoc.pts/9]$ /usr/bin/ldapsearch -x -LLL -h localhost -s base -b '' 
'(objectclass=*)' namingContexts
dn:
namingContexts: o=Turbo Fredriksson
----- s n i p -----

On my live server, I have 'namingContexts: dc=com', and the PHP page(s) work
on that...

Any ideas?
-- 
FSF assassination Ft. Bragg Mossad counter-intelligence arrangements
Qaddafi PLO 747 supercomputer Marxist BATF South Africa kibo Serbian
[See http://www.aclu.org/echelonwatch/index.html for more about this]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to