mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-01-13 00:10:13 +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']);
|
LOGGER("LDAP type: " . $host['type']);
|
||||||
|
|
||||||
if($host['type'] == "AD") {
|
if($host['type'] == "AD") {
|
||||||
$attrs = array("cn", "proxyaddresses", "member");
|
$attrs = array("cn", "proxyaddresses", "member", "mail");
|
||||||
|
|
||||||
$mailAttr = "proxyaddresses";
|
$mailAttr = "proxyaddresses";
|
||||||
$mailAttrs = array("proxyaddresses");
|
$mailAttrs = array("mail", "proxyaddresses");
|
||||||
|
|
||||||
$memberAttrs = array("member");
|
$memberAttrs = array("member");
|
||||||
}
|
}
|
||||||
@ -238,7 +238,7 @@ class ModelUserImport extends Model {
|
|||||||
|
|
||||||
foreach ($query->rows as $deleted) {
|
foreach ($query->rows as $deleted) {
|
||||||
$deleteduser++;
|
$deleteduser++;
|
||||||
$this->model_user_user->deleteUser($deleted['uid']);
|
$this->model_user_user->delete_user($deleted['uid']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user