Changeset 1071 for trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql.pm
- Timestamp:
- 07/24/12 22:56:06 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql.pm
r1023 r1071 36 36 =cut 37 37 38 =head2 new(% options)38 =head2 new(%config) 39 39 40 40 Create a new LATMOS::Ad object for windows AD $domain. … … 47 47 48 48 sub new { 49 my ($class, % options) = @_;49 my ($class, %config) = @_; 50 50 51 51 my $base = { 52 db_conn => $ options{db_conn},52 db_conn => $config{db_conn}, 53 53 }; 54 54 … … 324 324 } 325 325 326 =head2 rename_nethost ($nethostname, $to, % options)326 =head2 rename_nethost ($nethostname, $to, %config) 327 327 328 328 Facility function to rename computer to new name … … 331 331 332 332 sub rename_nethost { 333 my ($self, $nethostname, $to, % options) = @_;333 my ($self, $nethostname, $to, %config) = @_; 334 334 { 335 335 my $obj = $self->get_object('nethost', $nethostname); … … 339 339 } 340 340 $self->rename_object('nethost', $nethostname, $to) or return; 341 if ($ options{'addcname'}) {341 if ($config{'addcname'}) { 342 342 my $obj = $self->get_object('nethost', $to); 343 343 my @cname = grep { $_ } $obj->get_attributes('cname');
Note: See TracChangeset
for help on using the changeset viewer.