"; echo ""; echo ""; echo ""; echo "
"; // config object should be in session!!! $config = new Config(); $ldap = new Ldap($config); // username/password should also be in session!!! $username = "cn=admin,o=test,c=de"; $passwd = "secret"; $result = $ldap->connect ($username, $passwd); $user_dn_list = $ldap->getUsers ($config->get_UserSuffix()); echo ""; echo " | Vorname | "; echo "Nachname | "; echo "Uid | "; echo "Home Verzeichnis | "; echo "
---|---|---|---|---|
" . ""); echo (" | " . current ($userentry->getGivenName()) . " | "); echo ("" . current ($userentry->getSn()) . " | "); echo ("" . current ($userentry->getUid()) . " | "); echo ("" . current ($userentry->gethomeDirectory()) . " | "); echo "