make ldap working again

This commit is contained in:
Lars Kneschke 2001-02-04 11:17:58 +00:00
parent 3475178412
commit 8a3da8d252

View File

@ -138,29 +138,36 @@
} }
function read_group_names($lid = "") function read_group_names($lid = "")
{
return $this->security_equals($lid);
}
function security_equals($lid = "")
{ {
global $phpgw, $phpgw_info; global $phpgw, $phpgw_info;
if (! $lid) { if (! $lid) {
$lid = $phpgw_info["user"]["userid"]; $lid = $phpgw_info["user"]["userid"];
} }
$groups = $this->read_groups($lid); $groups = $this->read_groups($lid);
$db = $phpgw->db;
$i = 0; $i = 0;
reset($groups);
while ($groups && $group = each($groups)) { while ($groups && $group = each($groups)) {
$db->query("select group_name from groups where group_id=".$group[0],__LINE__,__FILE__); $this->db->query("select group_name from groups where group_id=".$group[0],__LINE__,__FILE__);
$db->next_record(); $this->db->next_record();
$group_names[$i][0] = $group[0]; $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]; $group_names[$i++][2] = $group[1];
} }
if (! $lid)
if (! $lid) {
$this->group_names = $group_names; $this->group_names = $group_names;
}
return $group_names; return $group_names;
} }
function listusers($group="") function listusers($group="")
{ {
global $phpgw; global $phpgw;
@ -245,7 +252,14 @@
return False; return False;
} }
} }
function get_type($account_id)
{
global $phpgw, $phpgw_info;
return "u";
}
function exists($accountname) function exists($accountname)
{ {
return True; return True;