mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:40:12 +01:00
fix in the ldap user import
This commit is contained in:
parent
f6fc3b28d2
commit
a44018e89e
@ -25,10 +25,10 @@ class ModelUserImport extends Model {
|
||||
LOGGER("LDAP type: " . $host['type']);
|
||||
|
||||
if($host['type'] == "AD") {
|
||||
$attrs = array("cn", "proxyaddresses", "member");
|
||||
$attrs = array("cn", "proxyaddresses", "member", "mail");
|
||||
|
||||
$mailAttr = "proxyaddresses";
|
||||
$mailAttrs = array("proxyaddresses");
|
||||
$mailAttrs = array("mail", "proxyaddresses");
|
||||
|
||||
$memberAttrs = array("member");
|
||||
}
|
||||
@ -238,7 +238,7 @@ class ModelUserImport extends Model {
|
||||
|
||||
foreach ($query->rows as $deleted) {
|
||||
$deleteduser++;
|
||||
$this->model_user_user->deleteUser($deleted['uid']);
|
||||
$this->model_user_user->delete_user($deleted['uid']);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user