From 9a947e780f4430a21f3dfaf82939c5524d072513 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 6 Oct 2009 17:00:43 +0000 Subject: [PATCH] fixed LDAP filter for account lists --- lam/lib/modules/posixAccount.inc | 2 ++ lam/lib/modules/sambaSamAccount.inc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index dbb8e7e9..4bbb73d9 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -115,6 +115,8 @@ class posixAccount extends baseModule { $return['dependencies'] = array('depends' => array(), 'conflicts' => array()); } elseif ($this->get_scope() == "host") { + // LDAP filter + $return["ldap_filter"] = array('or' => "(objectClass=posixAccount)"); // module dependencies $return['dependencies'] = array('depends' => array(), 'conflicts' => array()); } diff --git a/lam/lib/modules/sambaSamAccount.inc b/lam/lib/modules/sambaSamAccount.inc index 62ef1ba2..231ab641 100644 --- a/lam/lib/modules/sambaSamAccount.inc +++ b/lam/lib/modules/sambaSamAccount.inc @@ -132,6 +132,8 @@ class sambaSamAccount extends baseModule { $return["RDN"] = array("sambaSID" => "low"); // module dependencies $return['dependencies'] = array('depends' => array('posixAccount'), 'conflicts' => array()); + // LDAP filter + $return["ldap_filter"] = array('or' => "(objectClass=sambaSamAccount)"); // managed object classes $return['objectClasses'] = array('sambaSamAccount'); // managed attributes