Changeset a4b854a for perl/modules/Kerberos/lib/BarnOwl/Module/Kerberos.pm
- Timestamp:
- Aug 5, 2017, 6:57:42 PM (7 years ago)
- Branches:
- master
- Children:
- 8eb72d2
- Parents:
- 20ec886
- git-author:
- Jason Gross <jgross@mit.edu> (08/05/17 18:32:09)
- git-committer:
- Jason Gross <jasongross9@gmail.com> (08/05/17 18:57:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/Kerberos/lib/BarnOwl/Module/Kerberos.pm
r20ec886 ra4b854a 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.