LDAP delete users is now working

This commit is contained in:
jengo 2000-10-23 06:34:25 +00:00
parent 2f3d14486b
commit 4076adf8b4
2 changed files with 21 additions and 7 deletions

View File

@ -219,14 +219,12 @@
function account_delete($account_id)
{
global $ldap;
global $phpgw_info, $phpgw, $ldap;
$searchline = getSearchLine($searchstring);
$result = ldap_search($ldap, $BASEDN, $searchline);
$entry = ldap_get_entries($ldap, $result);
$numentries = $entry["count"];
@ldap_delete($ldap, $button);
$phpgw->db->query("select account_lid from accounts where account_id='$account_id'");
$phpgw->db->next_record();
ldap_delete($ldap,"uid=" . $phpgw->db->f("account_lid") . ", ". $phpgw_info["server"]["ldap_context"]);
}
function account_exsists($loginid)

View File

@ -50,6 +50,22 @@
return $account_info;
}
function account_view($loginid)
{
global $phpgw_info, $phpgw;
$phpgw->db->query("select account_id,account_firstname,account_lastname from accounts where "
. "account_lid='$loginid'");
$phpgw->db->next_record();
$account_info["account_id"] = $phpgw->db->f("account_id");
$account_info["account_lid"] = $loginid;
$account_info["account_lastname"] = $phpgw->db->f("account_lastname");
$account_info["account_firstname"] = $phpgw->db->f("account_firstname");
return $account_info;
}
function account_add($account_info)
{
global $phpgw, $phpgw_info;