ldap.php
<? /* * get rid of that worthless crap that makes loops have to special-case this * dumb index that ldap_get_entries adds. Note that it adds this to all * subarrays too so we need to cleanse it recursively. */ function _ldap_get_entries ($lconn, $search) { $results = ldap_get_entries($lconn, $search); //remove_count_indices($results); return $results; } function do_ldap_connect ($binddn, $password) { if (!($lconn = ldap_connect(LDAP_SERVER_HOST))) die("ldap_connect failed"); if (!(@ldap_bind($lconn, $binddn, $password))) return false; else return $lconn; } ?>