fixed problem on delete if same suffix for users and groups
This commit is contained in:
parent
4efeb596ea
commit
2559502738
|
@ -141,7 +141,7 @@ class posixGroup extends baseModule implements passwordService {
|
||||||
*/
|
*/
|
||||||
function delete_attributes() {
|
function delete_attributes() {
|
||||||
$return = array();
|
$return = array();
|
||||||
$result = searchLDAPByFilter('gidNumber=' . $this->attributes['gidNumber'][0], array('dn'), array('user', 'host'));
|
$result = searchLDAPByFilter('(&(objectClass=posixAccount)(gidNumber=' . $this->attributes['gidNumber'][0] . '))', array('dn'), array('user', 'host'));
|
||||||
if (sizeof($result) > 0) {
|
if (sizeof($result) > 0) {
|
||||||
$max = 5;
|
$max = 5;
|
||||||
if (sizeof($result) < 5) {
|
if (sizeof($result) < 5) {
|
||||||
|
|
Loading…
Reference in New Issue