"; // 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 "
Vorname | "; echo "Nachname | "; echo "Uid | "; echo "Home Verzeichnis | "; echo "
---|---|---|---|
" . $userentry->getGivenName() . " | "); echo ("" . $userentry->getSn() . " | "); echo ("" . $userentry->getUid() . " | "); echo ("" . $userentry->gethomeDirectory() . " | "); echo "