"; echo ""; include '../main_footer.php'; } /** * Searches LDAP for a specific user name (uid attribute) and returns its DN entry * * @param string $name user name * @return string DN */ function search_username($name) { $entries = searchLDAPByAttribute('uid', $name, null, array('dn'), array('user')); if (sizeof($entries) > 0 ) { return $entries[0]['dn']; } else return ""; } ?>