/[A3C]/lib/A3C/LDAP.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/A3C/LDAP.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 66 by dpavlin, Wed Apr 9 23:14:47 2008 UTC revision 101 by dpavlin, Thu May 1 12:59:02 2008 UTC
# Line 127  sub collection { Line 127  sub collection {
127          $args->{limit} ||= 0;   # unlimited by default          $args->{limit} ||= 0;   # unlimited by default
128    
129          my $filter = $collection2filter->{$model};          my $filter = $collection2filter->{$model};
130          die "unknown model $model" unless $filter;  #       die "unknown model $model" unless $filter;
131            # fallback to model named as objectClass
132            $filter ||= "(objectClass=$model)";
133    
134          # add user filter          # add user filter
135          $filter = '(&' . $filter . $args->{filter} . ')' if $args->{filter};          $filter = '(&' . $filter . $args->{filter} . ')' if $args->{filter};

Legend:
Removed from v.66  
changed lines
  Added in v.101

  ViewVC Help
Powered by ViewVC 1.1.26