mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
More work on LDAP read accounts
This commit is contained in:
parent
9b9bad78f0
commit
3618a61f1c
@ -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");
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user