More work on LDAP read accounts

This commit is contained in:
jengo 2000-10-23 03:33:30 +00:00
parent 9b9bad78f0
commit 3618a61f1c
2 changed files with 8 additions and 6 deletions

View File

@ -19,9 +19,9 @@
. $phpgw_info["server"]["auth_type"] . ".inc.php");
$t = new Template($phpgw_info["server"]["template_dir"]);
$t->set_file(array( "header" => "accounts.tpl",
"row" => "accounts.tpl",
"footer" => "accounts.tpl" ));
$t->set_file(array("header" => "accounts.tpl",
"row" => "accounts.tpl",
"footer" => "accounts.tpl"));
$t->set_block("header","row","footer");

View File

@ -73,9 +73,11 @@
$info = ldap_get_entries($ldap, $sr);
for ($i=0; $i<count($info); $i++) {
$account_info[$i]["account_lid"] = $info[$i]["uid"][0];
$account_info[$i]["account_firstname"] = $info[$i]["givenname"][0];
$account_info[$i]["account_lastname"] = $info[$i]["sn"][0];
if (! $phpgw_info["server"]["global_denied_users"][$info[$i]["uid"][0]]) {
$account_info[$i]["account_lid"] = $info[$i]["uid"][0];
$account_info[$i]["account_firstname"] = $info[$i]["givenname"][0];
$account_info[$i]["account_lastname"] = $info[$i]["sn"][0];
}
}
return $account_info;