Changeset 828 for server/common


Ignore:
Timestamp:
Aug 29, 2008, 6:36:20 PM (16 years ago)
Author:
andersk
Message:
Search by objectClass (otherwise you get “Admin limit exceeded”).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/common/oursrc/execsys/ldapize.pl

    r825 r828  
    1212
    1313# oh my gosh Net::LDAP::Filter SUCKS
    14 my $filter = bless({or =>
    15     [{equalityMatch => {attributeDesc  => 'scriptsVhostName',
    16                         assertionValue => $hostname}},
    17      {equalityMatch => {attributeDesc  => 'scriptsVhostAlias',
    18                         assertionValue => $hostname}}]},
     14my $filter = bless({and =>
     15    [{equalityMatch => {attributeDesc  => 'objectClass',
     16                        assertionValue => 'scriptsVhost'}},
     17     {or =>
     18         [{equalityMatch => {attributeDesc  => 'scriptsVhostName',
     19                             assertionValue => $hostname}},
     20          {equalityMatch => {attributeDesc  => 'scriptsVhostAlias',
     21                             assertionValue => $hostname}}]}]},
    1922    'Net::LDAP::Filter');
    2023
Note: See TracChangeset for help on using the changeset viewer.