Have getpostscript work with node x509 auth
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13354 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
b582f177f6
commit
83334fb3f5
@ -61,8 +61,15 @@ sub process_request
|
||||
}
|
||||
|
||||
my $client;
|
||||
if ($request->{'_xcat_clienthost'}) {
|
||||
$client = $request->{'_xcat_clienthost'}->[0];
|
||||
if ($::XCATSITEVALS{nodeauthentication}) { #if requiring node authentication, this request will have a certificate associated with it, use it instead of name resolution
|
||||
unless (ref $request->{username}) { return; } #TODO: log an attempt without credentials?
|
||||
$client = $request->{username}->[0];
|
||||
} else {
|
||||
unless ($request->{'_xcat_clienthost'}->[0]) {
|
||||
#ERROR? malformed request
|
||||
return; #nothing to do here...
|
||||
}
|
||||
$client = $request->{'_xcat_clienthost'}->[0];
|
||||
}
|
||||
|
||||
if ($client) { ($client) = noderange($client) };
|
||||
|
Loading…
Reference in New Issue
Block a user