Changeset 1225
- Timestamp:
- 04/17/13 18:24:00 (11 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/AttrForms.pm
r1190 r1225 128 128 date 129 129 unexported 130 sshfp 130 131 ) ], 131 132 }, -
trunk/LATMOS-Accounts/Makefile.PL
r1201 r1225 58 58 bin/la-sql-upgrade 59 59 bin/la-sql-edit-form 60 bin/la-sql-updsshfp 60 61 bin/la-test-mail 61 62 ) ], -
trunk/LATMOS-Accounts/bin/la-sql-upgrade.in
r1186 r1225 26 26 'no-commit' => \my $nocommit, 27 27 'v|verbose' => \my $verbose, 28 'h|help' => sub { pod2usage(1); }, 28 29 ) or pod2usage(); 29 30 -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/Nethost.pm
r1224 r1225 84 84 multiple => 1, 85 85 input => sub { lc($_[0]) }, 86 }, 87 sshfp => { multiple => 1, }, 88 sshfpUpdate => { 89 managed => 1, 86 90 }, 87 91 } … … 158 162 delete($data{ipFrom}); 159 163 } 164 if ($data{sshfpUpdate}) { 165 open my $h, '<', \$data{sshfpUpdate}; 166 my @sshfps; 167 while (my $line = <$h>) { 168 my ($type, $mode, $key) = $line =~ /^\S+\s+IN\s+SSHFP\s+(\d)\s+(\d)\s+(\S+)/i 169 or do { 170 la_log(LA_ERR, "Seems to not be a ssh-keygen line: %s", $line); 171 return; 172 }; 173 la_log(LA_DEBUG, "found sshfp %s %s %s", $type, $mode, $key); 174 push(@sshfps, "$type $mode $key"); 175 } 176 close($h); 177 delete($data{sshfpUpdate}); 178 $data{sshfp} = \@sshfps; 179 } 160 180 161 181 $self->SUPER::set_fields(%data) -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Task/Buildnet.pm
r1218 r1225 318 318 sub _checkzone_output { 319 319 my ($self, $ozone, $output) = @_; 320 321 if (!$self->_la->val('network', 'checkzone')) { 322 return 1; 323 } 320 324 321 325 my ($fh, $filename) = tempfile(); … … 479 483 } 480 484 } 485 foreach (grep { $_ } $host_o->get_attributes('sshfp')) { 486 $dbzone .= sprintf( 487 "%-30s IN SSHFP %s\n", 488 $res, 489 $_, 490 ); 491 } 481 492 } 482 493 } -
trunk/LATMOS-Accounts/man/man5/latmos-accounts.ini.pod
r1077 r1225 91 91 If set, must contains an email address where error will be sent in batch mode. 92 92 93 =head2 checkzone 94 95 If set generated DNS zones will be first written in a temporary files and 96 checked by C<checkzone> utility. 97 98 If the test fail the zone is not generated and temporary file not removed for 99 analysis. 100 93 101 =head2 BASES SECTIONS 94 102 -
trunk/LATMOS-Accounts/sqldata/attributes.csv
r1221 r1225 43 43 "nethost","noInheritPuppet","" 44 44 "nethost","encryptKey","EnCrypt Key" 45 "nethost","sshfp","" 45 46 "netzone","group","" 46 47 "netzone","net",""
Note: See TracChangeset
for help on using the changeset viewer.