"; 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 "\n"; // print attribute headers echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $row_number = 0; foreach ($user_dn_list as $user_dn) { echo "\n"; $row_number++; $userentry = new UserEntry(); $userentry = $ldap->getEntry ($user_dn, $userentry); $ldap->getEntry ($user_dn, $userentry); echo (""); echo (""); echo (""); echo (""); echo "\n"; } echo "
VornameNachnameUidHome Verzeichnis
" . ""); echo ("" . current ($userentry->getGivenName()) . "" . current ($userentry->getSn()) . "" . current ($userentry->getUid()) . "" . current ($userentry->gethomeDirectory()) . "
"; echo ""; $ldap->close(); ?>