version 1.77, 2007/08/22 07:43:39
|
version 1.78, 2007/08/28 18:23:54
|
|
|
" to profile CIMSERV CL(WBEM).", | " to profile CIMSERV CL(WBEM).", |
connectionUserName); | connectionUserName); |
| |
|
PEG_AUDIT_LOG(logCertificateBasedUserValidation( |
|
connectionUserName, |
|
String::EMPTY, |
|
String::EMPTY, |
|
String::EMPTY, |
|
httpMessage->ipAddress, |
|
false)); |
|
|
_sendHttpError( | _sendHttpError( |
queueId, | queueId, |
HTTP_STATUS_UNAUTHORIZED, | HTTP_STATUS_UNAUTHORIZED, |
|
|
(const char*)requestUserName.getCString() | (const char*)requestUserName.getCString() |
)); | )); |
| |
// Write local authentication audit reckord. |
|
PEG_AUDIT_LOG(logLocalAuthentication( |
|
requestUserName,true)); |
|
|
|
} // end changed authenticated user | } // end changed authenticated user |
| |
} // end select authenticated user |
|
PEG_TRACE((TRC_HTTP, Tracer::LEVEL4, | PEG_TRACE((TRC_HTTP, Tracer::LEVEL4, |
"User authenticated for request = '%s'.", | "User authenticated for request = '%s'.", |
(const char*)httpMessage->authInfo-> | (const char*)httpMessage->authInfo-> |
getAuthenticatedUser().getCString() | getAuthenticatedUser().getCString() |
)); | )); |
|
|
|
// Write local authentication audit record. |
|
PEG_AUDIT_LOG(logLocalAuthentication( |
|
requestUserName,true)); |
|
|
|
} // end select authenticated user |
|
else |
|
{ |
|
PEG_AUDIT_LOG(logLocalAuthentication( |
|
requestUserName,false)); |
|
|
|
PEG_TRACE((TRC_HTTP, Tracer::LEVEL4, |
|
"User '%s' not authorized for request", |
|
(const char*)requestUserName.getCString())); |
|
|
|
_sendHttpError( |
|
queueId, |
|
HTTP_STATUS_UNAUTHORIZED, |
|
String::EMPTY, |
|
String::EMPTY, |
|
closeConnect); |
|
|
|
PEG_METHOD_EXIT(); |
|
return; |
|
} |
} // end lookup header | } // end lookup header |
else | else |
{ | { |