/[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 141 by dpavlin, Fri May 30 22:46:53 2008 UTC revision 175 by dpavlin, Mon Jun 16 16:49:30 2008 UTC
# Line 43  sub sync_org { Line 43  sub sync_org {
43          }          }
44  }  }
45    
46  if ( $strix ) {  @models = 'hrEduOrg' if $strix;
         my $strix_sites = A3C::Model::StrixSiteCollection->new;  
         $strix_sites->unlimit;  
         my $o_nr = 1;  
         while ( my $site = $strix_sites->next ) {  
                 Jifty->log->info( 'sync organization ', $o_nr++, '/', $strix_sites->count, ' ', $site->site );  
                 sync_org( $site->site );  
         }  
         exit;  
 }  
47    
48  if ( @models ) {  if ( @models ) {
49    
# Line 85  if ( @models ) { Line 76  if ( @models ) {
76                  sync_org( $org_uid );                  sync_org( $org_uid );
77          }          }
78  }  }
79    
80    if ( $strix ) {
81            my $instances = A3C::Model::StrixInstanceCollection->new;
82            $instances->unlimit;
83            my $o_nr = 1;
84            while ( my $instance = $instances->next ) {
85                    Jifty->log->info( 'sync organization ', $o_nr++, '/', $instances->count, ' ', $instance->instance );
86                    sync_org( $instance->instance );
87            }
88    }
89    

Legend:
Removed from v.141  
changed lines
  Added in v.175

  ViewVC Help
Powered by ViewVC 1.1.26