LDAP problems

From: Date: Thu, 12 Jun 2003 05:35:41 +0000
Subject: LDAP problems
Groups: php.general 
Request: Send a blank email to php-general+get-151204@lists.php.net to get a copy of this message
Can anyone tell me what is wrong with this simple code? It errors with the ldap_get_values and says: "supplied resource is not a valid ldap result entry resource" I am very new at PHP LDAP so pardon my error... <? //include "inc/connect.inc.php"; $ds = ldap_connect("localhost"); $base = "ou=people,dc=cwalk,dc=org"; $filter = "(&(givenname=$givenName*)(sn=$sn*))"; $search = ldap_list($ds, $base, $filter); $mail = "mail"; $attrs = ldap_get_values($ds, $search, $mail); ?> -- Caleb Walker CCSE, MCSE

« previous php.general (#151204) next »