Changeset 799ec08 for perl/modules
- Timestamp:
- Aug 5, 2017, 6:48:10 PM (7 years ago)
- Children:
- 76d6db1
- Parents:
- ab9adfc
- git-author:
- Jason Gross <jgross@mit.edu> (08/05/17 18:32:09)
- git-committer:
- Pweaver (Paul Weaver) <paul@mordor.org> (08/05/17 18:48:10)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/Kerberos/lib/BarnOwl/Module/Kerberos.pm
rab9adfc r799ec08 70 70 71 71 my $password = shift; 72 my ($stdin, $stdout, $stderr);72 my ($stdin, $stdout, $stderr); 73 73 use Symbol 'gensym'; $stderr = gensym; 74 74 my $pid = open3($stdin, $stdout, $stderr, 'kinit', '-l7d') or die("Failed to run kinit"); … … 80 80 81 81 $hdlin->push_write($password . "\n"); 82 $hdlerr->push_read 82 $hdlerr->push_read(line => sub { 83 83 my ($hdl, $line) = @_; 84 84 $output .= $line; … … 87 87 $kinit_watcher = AnyEvent->child (pid => $pid, cb => sub { 88 88 my ($pid, $status) = @_; 89 if ($status != 0) {89 if ($status != 0) { 90 90 BarnOwl::error($output); 91 } 92 else{ 93 if(BarnOwl::getvar("aklog") == 'on'){ 91 } else { 92 if (BarnOwl::getvar("aklog") == 'on') { 94 93 my $status = system('aklog'); 95 if ($status != 0) {94 if ($status != 0) { 96 95 BarnOwl::error('Aklog Failed'); 97 96 }
Note: See TracChangeset
for help on using the changeset viewer.