- Timestamp:
- 08/13/15 17:53:30 (9 years ago)
- Location:
- trunk/LATMOS-Accounts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Synchro.pm
r1354 r1377 275 275 my %desterror; 276 276 my $updated = 0; 277 278 # We do base one by one 279 277 280 foreach my $destbase ($self->to) { 278 281 my %objlist; … … 298 301 299 302 # deleting non existing object in dest: 303 304 # Sync: noDelete.Base = yes mean no delete 305 # noDelete.Base.Otype = yes mean no delete for this object 306 if ($self->{options}->{'noDelete'} || 307 $self->{options}->{'noDelete.' . $destbase->label} || 308 $self->{options}->{'noDelete.' . $destbase->label . '.' . $otype}) { 309 la_log(LA_INFO, 'Not deleting object type\'%s` from base \'%s` because %s is set', 310 $otype, 311 $destbase->label, 312 $self->{options}->{'noDelete.' . $destbase->label . '.' . $otype} 313 ? 'noDelete.' . $destbase->label . '.' . $otype 314 : $self->{options}->{'noDelete.' . $destbase->label} 315 ? 'noDelete.' . $destbase->label 316 : 'noDelete' 317 ); 318 } else { 319 300 320 my $deletefiltered = 'deletefiltered.' . $destbase->label . '.' . $otype; 321 301 322 foreach ($destbase->list_objects($otype)) { 302 323 … … 326 347 } 327 348 } 349 } # noDelete.Base 350 328 351 329 352 # Finding object to synchronize: -
trunk/LATMOS-Accounts/man/man5/latmos-accounts.ini.pod
r1354 r1377 135 135 feature (SQL only at time) 136 136 137 =head3 noDelete 138 139 Setting this parameter will make the syncronisation not deleting object in 140 destination bases. 141 142 Setting the C<noDelete.BASE> where C<BASE> is the name of an synchronized base 143 will make this synchronisation not deleting any object into this base, 144 145 Setting the C<noDelete.BASE.OTYPE> will make the synchronisation not deleting 146 object type C<OTYPE> no delete into the base named C<BASE>. 147 148 Example: 149 150 noDelete.MyLdap.user = yes 151 137 152 =head3 filtering object propagation 138 153 … … 146 161 147 162 filter.ldap.user = memberOf=unix 163 148 164 149 165 =head3 Deleting filtered object
Note: See TracChangeset
for help on using the changeset viewer.