diff --git a/lam/lib/modules/windowsGroup.inc b/lam/lib/modules/windowsGroup.inc index 8074a6c9..08534edc 100644 --- a/lam/lib/modules/windowsGroup.inc +++ b/lam/lib/modules/windowsGroup.inc @@ -87,7 +87,7 @@ class windowsGroup extends baseModule { // RDN attribute $return["RDN"] = array("cn" => "high"); // LDAP filter - $return["ldap_filter"] = array('or' => "(objectClass=group)"); + $return["ldap_filter"] = array('and' => "", 'or' => '(objectClass=group)'); // alias name $return["alias"] = _("Windows"); // module dependencies diff --git a/lam/lib/modules/windowsHost.inc b/lam/lib/modules/windowsHost.inc index 6da35fc1..cf6ef400 100644 --- a/lam/lib/modules/windowsHost.inc +++ b/lam/lib/modules/windowsHost.inc @@ -52,7 +52,7 @@ class windowsHost extends baseModule { // RDN attribute $return["RDN"] = array("cn" => "high"); // LDAP filter - $return["ldap_filter"] = array('or' => "(objectClass=computer)"); + $return["ldap_filter"] = array('and' => "", 'or' => '(objectClass=computer)'); // alias name $return["alias"] = _("Windows"); // module dependencies