Changeset 867
- Timestamp:
- 12/21/11 16:01:54 (13 years ago)
- Location:
- LATMOS-Accounts
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts/MANIFEST
r861 r867 31 31 bin/la-sql-loadatt 32 32 bin/la-sql-regatt 33 bin/la-sql-sanity 33 34 bin/la-sync 34 35 bin/la-sync-list 35 36 bin/la-sync-manager 36 37 bin/la-warn-expire 37 bin/la-web-directory38 38 etc/cron.d/latmos-accounts 39 39 etc/init.d/la-sync-manager -
LATMOS-Accounts/Makefile.PL
r861 r867 22 22 'Crypt::Cracklib' => undef, 23 23 'Net::IP' => undef, 24 'Net::IPv4Addr' => undef, 25 'Net::IPv6Addr' => undef, 24 26 }, # e.g., Module::Name => 1.1 25 27 ($] >= 5.005 ? ## Add these new keywords supported since 5.005 -
LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql.pm
r861 r867 317 317 } 318 318 319 sub check_user_manager { 320 $_[0]->_handle_by_unexported('user', 'manager', 'active'); 321 } 322 323 sub check_group_manager { 324 $_[0]->_handle_by_unexported('group', 'managedBy'); 325 } 326 327 sub check_nethost_owner { 328 $_[0]->_handle_by_unexported('nethost', 'owner', 'active'); 329 } 330 331 sub _handle_by_unexported { 332 my ($self, $otype, $refattr, $chkattr) = @_; 333 334 my $ptrotype = $self->attribute($otype, $refattr)->reference(); 335 336 my %unhandle; 337 foreach my $objname ($self->search_objects($otype, 'active=1', 'exported=1', "$refattr=*")) { 338 my $obj = $self->get_object($otype, $objname) or next; 339 my $val = $obj->get_attributes($refattr) or next; 340 if (my $refobj = $self->get_object($ptrotype, $val)) { 341 if (!$refobj->get_attributes($chkattr || 'exported')) { 342 $unhandle{$objname} = $val; 343 } 344 } else { 345 $unhandle{$objname} = $val; 346 } 347 } 348 %unhandle; 349 } 350 319 351 1; 320 352
Note: See TracChangeset
for help on using the changeset viewer.