Parent Directory | Revision Log
- move all LDAP-related logic in A3C::LDAP - remove logic to link User and Organization - ldap search base is now configurable in config.yml
1 | #!/usr/bin/perl |
2 | |
3 | use warnings; |
4 | use strict; |
5 | |
6 | use lib 'lib'; |
7 | |
8 | use Jifty; |
9 | use A3C::LDAP; |
10 | use Data::Dump qw/dump/; |
11 | use Getopt::Long; |
12 | |
13 | BEGIN { Jifty->new; }; |
14 | |
15 | my $limit = 100; |
16 | GetOptions( |
17 | 'limit=i', => \$limit, |
18 | ); |
19 | |
20 | my $ldap = A3C::LDAP->new; |
21 | |
22 | foreach my $model ( qw/Organization User/ ) { |
23 | my $collection = $ldap->collection( $model, $limit ); |
24 | Jifty->log->info( "found ", $collection->count, " entries for $model" ); |
25 | } |
26 |
Name | Value |
---|---|
svn:executable | * |
ViewVC Help | |
Powered by ViewVC 1.1.26 |