Hi 
   The proto type is not correct.
  array ldap_get_values(link_identifier ,
result_entry_identifier, string attribute);
        ^


try this 

   1) connect
   2) bind 
   3) search 
   4) get_entries  // this the step you are missing
   5) get_values 


regards
CVR


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);
> ?>
> 
> 


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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

Reply via email to