version 1.29, 2008/12/02 09:00:42
|
version 1.31.2.3, 2014/04/28 00:29:12
|
|
|
#include <Pegasus/Common/Tracer.h> | #include <Pegasus/Common/Tracer.h> |
#include "AuthenticationInfoRep.h" | #include "AuthenticationInfoRep.h" |
#include <Pegasus/Common/SSLContext.h> | #include <Pegasus/Common/SSLContext.h> |
|
#include <Pegasus/Common/FileSystem.h> |
|
#include <Pegasus/Common/Executor.h> |
| |
PEGASUS_USING_STD; | PEGASUS_USING_STD; |
| |
|
|
const String AuthenticationInfoRep::AUTH_TYPE_ZOS_LOCAL_DOMIAN_SOCKET = "LDS"; | const String AuthenticationInfoRep::AUTH_TYPE_ZOS_LOCAL_DOMIAN_SOCKET = "LDS"; |
const String AuthenticationInfoRep::AUTH_TYPE_ZOS_ATTLS = "ATTLS"; | const String AuthenticationInfoRep::AUTH_TYPE_ZOS_ATTLS = "ATTLS"; |
| |
AuthenticationInfoRep::AuthenticationInfoRep(Boolean flag) |
AuthenticationInfoRep::AuthenticationInfoRep() |
: _connectionAuthenticated(false), | : _connectionAuthenticated(false), |
_wasRemotePrivilegedUserAccessChecked(false) |
_wasRemotePrivilegedUserAccessChecked(false), |
|
_authHandle(), |
|
_isExpiredPassword(false) |
{ | { |
PEG_METHOD_ENTER( | PEG_METHOD_ENTER( |
TRC_AUTHENTICATION, "AuthenticationInfoRep::AuthenticationInfoRep"); | TRC_AUTHENTICATION, "AuthenticationInfoRep::AuthenticationInfoRep"); |
|
|
PEG_METHOD_ENTER( | PEG_METHOD_ENTER( |
TRC_AUTHENTICATION, "AuthenticationInfoRep::~AuthenticationInfoRep"); | TRC_AUTHENTICATION, "AuthenticationInfoRep::~AuthenticationInfoRep"); |
| |
|
// initiate the deletion of _localAuthFilePath. |
|
if(FileSystem::exists(_localAuthFilePath)) |
|
{ |
|
// No response was received from the local client for the |
|
// authentication challenge. Hence deleting the file here. |
|
|
|
// Use executor, if present. |
|
if (Executor::detectExecutor() == 0) |
|
{ |
|
Executor::removeFile(_localAuthFilePath.getCString()); |
|
} |
|
else |
|
{ |
|
FileSystem::removeFile(_localAuthFilePath); |
|
} |
|
} |
|
|
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
} | } |
| |
|
|
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
} | } |
| |
#ifdef PEGASUS_KERBEROS_AUTHENTICATION |
|
void AuthenticationInfoRep::setSecurityAssociation() |
|
{ |
|
PEG_METHOD_ENTER( |
|
TRC_AUTHENTICATION, "AuthenticationInfoRep::setSecurityAssociation"); |
|
|
|
if ( !_securityAssoc.get() ) |
|
{ |
|
_securityAssoc.reset(new CIMKerberosSecurityAssociation); |
|
} |
|
|
|
PEG_METHOD_EXIT(); |
|
} |
|
#endif |
|
|
|
void AuthenticationInfoRep::setClientCertificateChain( | void AuthenticationInfoRep::setClientCertificateChain( |
Array<SSLCertificateInfo*> clientCertificate) | Array<SSLCertificateInfo*> clientCertificate) |
{ | { |