mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 12:30:04 +01:00
LDAP delete users is now working
This commit is contained in:
parent
2f3d14486b
commit
4076adf8b4
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user