Ignore:
Timestamp:
02/01/10 19:12:54 (14 years ago)
Author:
nanardon
Message:
  • fix la-sync over one single object: two pass are useless in this case so don't disconnect and reconnect, avoiding to change of ldap (ad) server
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts/lib/LATMOS/Accounts/Bases.pm

    r775 r777  
    519519    foreach (@fields) { 
    520520        $srcobj->get_field_name($_, 'r') or next; 
    521         if ($options{firstpass}) { 
    522             $delayed{$_} and next; 
    523         } else { 
    524             $delayed{$_} or next; 
     521        if (! $options{onepass}) { 
     522            if ($options{firstpass}) { 
     523                $delayed{$_} and next; 
     524            } else { 
     525                $delayed{$_} or next; 
     526            } 
    525527        } 
    526528        $data{$_} = $srcobj->_get_c_field($_); 
     
    535537        } 
    536538    } elsif(!$options{nocreate}) { 
    537         if (! $options{firstpass}) { 
     539        if ((! $options{firstpass}) && (!$options{onepass})) { 
    538540            $self->log(LA_ERR, 'This is not first pass, creation wanted but denied'); 
    539541            return; 
Note: See TracChangeset for help on using the changeset viewer.