Improvement of $ldapconn in function getnumver().
This commit is contained in:
parent
2c812f5dda
commit
65c269472b
|
@ -149,7 +149,7 @@ function getnumber($domain,$type) {
|
|||
|
||||
$ldapconn = Ldap::lda_connect(LDAP_ADMIN_DN,LDAP_ADMIN_PASS);
|
||||
if ( $type == 'compte' ) {
|
||||
$filter="(objectClass=posixAccount)";
|
||||
$filter="(&(objectClass=posixAccount)(!(uid=*$)))";
|
||||
|
||||
} elseif ( $type == 'mail' ) {
|
||||
$filter="(objectClass=mailAccount)";
|
||||
|
|
Loading…
Reference in a new issue