forked from extern/egroupware
make ldap working again
This commit is contained in:
parent
3475178412
commit
8a3da8d252
@ -138,6 +138,11 @@
|
||||
}
|
||||
|
||||
function read_group_names($lid = "")
|
||||
{
|
||||
return $this->security_equals($lid);
|
||||
}
|
||||
|
||||
function security_equals($lid = "")
|
||||
{
|
||||
global $phpgw, $phpgw_info;
|
||||
|
||||
@ -146,21 +151,23 @@
|
||||
}
|
||||
$groups = $this->read_groups($lid);
|
||||
|
||||
$db = $phpgw->db;
|
||||
$i = 0;
|
||||
reset($groups);
|
||||
while ($groups && $group = each($groups)) {
|
||||
$db->query("select group_name from groups where group_id=".$group[0],__LINE__,__FILE__);
|
||||
$db->next_record();
|
||||
$this->db->query("select group_name from groups where group_id=".$group[0],__LINE__,__FILE__);
|
||||
$this->db->next_record();
|
||||
$group_names[$i][0] = $group[0];
|
||||
$group_names[$i][1] = $db->f("group_name");
|
||||
$group_names[$i][1] = $this->db->f("group_name");
|
||||
$group_names[$i++][2] = $group[1];
|
||||
}
|
||||
if (! $lid)
|
||||
|
||||
if (! $lid) {
|
||||
$this->group_names = $group_names;
|
||||
}
|
||||
|
||||
return $group_names;
|
||||
}
|
||||
|
||||
|
||||
function listusers($group="")
|
||||
{
|
||||
global $phpgw;
|
||||
@ -246,6 +253,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
function get_type($account_id)
|
||||
{
|
||||
global $phpgw, $phpgw_info;
|
||||
|
||||
return "u";
|
||||
}
|
||||
|
||||
function exists($accountname)
|
||||
{
|
||||
return True;
|
||||
|
Loading…
Reference in New Issue
Block a user