Exclude users with accountStatus set from the search.
authorTollef Fog Heen <tfheen@err.no>
Thu, 20 Mar 2014 19:02:28 +0000 (20:02 +0100)
committerTollef Fog Heen <tfheen@err.no>
Thu, 20 Mar 2014 19:02:28 +0000 (20:02 +0100)
debian/changelog
search.cgi

index e06d63c..1f75f2e 100644 (file)
@@ -7,6 +7,9 @@ userdir-ldap-cgi (0.3.38~20130906+1+nmu1) UNRELEASED; urgency=low
   * rename voipPassword to rtcPassword 
   * store as HA1 hash rather than as plaintext
 
+  [ Tollef Fog Heen ]
+  * Exclude users with accountStatus set from the search.
+
  -- Luca Filipozzi <lfilipoz@emyr.net>  Thu, 16 Jan 2014 23:22:03 +0000
 
 userdir-ldap-cgi (0.3.37) unstable; urgency=low
index fade2a7..3769538 100755 (executable)
@@ -61,7 +61,7 @@ if (!$dosearch) {
 
   # go through %searchdata and pull out all the search criteria the user
   # specified...
-  my $filter = "(objectclass=inetOrgPerson)";
+  my $filter = "(objectclass=inetOrgPerson)(!(accountStatus=*))";
   foreach (keys(%searchdata)) {
     if ($query->param($searchdata{$_}{formname})) {    
       if ($query->param($searchdata{$_}{fuzzy})) {