Add "FILE:" to keyTab (#707)

This commit is contained in:
Xavier Guimard 2017-04-05 12:21:21 +00:00
parent 2cd1c1bf44
commit 8582c8f7c0

View File

@ -19,10 +19,12 @@ extends 'Lemonldap::NG::Portal::Auth::Base';
sub init {
my ($self) = @_;
unless($self->keytab($self->conf->{krbKeyTab})){
my $file;
unless ( $file = $self->conf->{krbKeyTab} ) {
$self->error('Keytab not defined');
return 0;
}
$self->keytab("FILE:$file");
return 1;
}
@ -76,6 +78,7 @@ sub extractFormInfo {
}
return PE_ERROR;
}
$self->userLogger->notice("$client_name authentified by Kerberos");
$req->user($client_name);
return PE_OK;
}