Version: 0.1
Type: Function
Category: Other
License: GNU General Public License
Description: Queries a LDAP server to find if user exist
eg. UM_people_base is “ou=people,dc=eng,dc=fit,dc=edu”
See also UM_connect(), and UM_disconnect.
These functions basically handle connecting and disconnecting from the LDAP server
<? //Queries a LDAP server to find if user exist //eg. UM_people_base is "ou=people,dc=eng,dc=fit,dc=edu" //See also UM_connect(), and UM_disconnect. //These functions basically handle connecting and disconnecting //from the LDAP server function UM_uid_exist($logonname) { global $UM_people_base; global $UM_connection_linkID; UM_connect(); $search_result_ID=ldap_list($UM_connection_linkID, $UM_people_base, "uid=$logonname", array("uid")); $usernames = ldap_get_entries($UM_connection_linkID, $search_result_ID); UM_disconnect(); return $usernames["count"]; } ?>