/[A3C]/bin/import-ldap.pl
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 /bin/import-ldap.pl

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

revision 110 by dpavlin, Thu May 1 17:06:02 2008 UTC revision 111 by dpavlin, Wed May 14 16:50:02 2008 UTC
# Line 42  if ( @models ) { Line 42  if ( @models ) {
42    
43          my $o_nr = 1;          my $o_nr = 1;
44    
45            my $value_from = $ldap->link->{value_from};
46    
47          while ( my $o = $orgs->next ) {          while ( my $o = $orgs->next ) {
48                  Jifty->log->info( 'sync organization ', $o_nr++, '/', $orgs->count, ' ', $o->name );                  Jifty->log->info( 'sync organization ', $o_nr++, '/', $orgs->count, ' ', $o->name );
49                  my $org_uid = $o->__value( $ldap->link->{value_from} ) || die "can't find org_uid";                  my $org_uid = $o->$value_from || die "can't find org_uid in $value_from in ",dump( $o->as_hash );
50                  my $action = Jifty->web->new_action(                  my $action = Jifty->web->new_action(
51                          class => 'SyncOrganization',                          class => 'SyncOrganization',
52                          moniker => 'sync',                          moniker => 'sync',

Legend:
Removed from v.110  
changed lines
  Added in v.111

  ViewVC Help
Powered by ViewVC 1.1.26