fixed search filter; show all posixAccount users
This commit is contained in:
parent
a421bb8e30
commit
f629cbcbfd
|
@ -162,15 +162,8 @@ for ($k = 0; $k < sizeof($desc_array); $k++) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// configure search filter
|
// configure search filter
|
||||||
// Users have the attribute "*"
|
// Unix/Samba3 users have the attribute "posixAccount" and do not end with "$"
|
||||||
if ($_SESSION['config']->is_samba3()) {
|
$filter = "(&(objectClass=posixAccount) (!(uid=*$))";
|
||||||
// Unix/Samba3 users do not have the attribute "sambaAccount" but "posixAccount" and do not end with "$"
|
|
||||||
$filter = "(&(objectClass=posixAccount) (!(objectClass=sambaAccount)) (!(uid=*$))";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
// Unix/Samba2 users do not have the attribute "sambaSamAccount" but "posixAccount" and do not end with "$"
|
|
||||||
$filter = "(&(objectClass=posixAccount) (!(objectClass=sambaSamAccount)) (!(uid=*$))";
|
|
||||||
}
|
|
||||||
for ($k = 0; $k < sizeof($desc_array); $k++) {
|
for ($k = 0; $k < sizeof($desc_array); $k++) {
|
||||||
if ($_POST["filter" . strtolower($attr_array[$k])])
|
if ($_POST["filter" . strtolower($attr_array[$k])])
|
||||||
$filter = $filter . "(" . strtolower($attr_array[$k]) . "=" .
|
$filter = $filter . "(" . strtolower($attr_array[$k]) . "=" .
|
||||||
|
|
Loading…
Reference in New Issue