Added traces to aid debugging of connection and password authentication

problems.
This commit is contained in:
Juan Carlos Luciani 2007-07-05 23:40:42 +00:00
parent a5102eb3a8
commit 28a4d65cc8
2 changed files with 6 additions and 1 deletions

View File

@ -328,6 +328,8 @@ ObtainAuthTokenFromServer(
*pAdvisedToRetry = false;
// Open Rpc Session to the auth service at the specified host
DbgTrace(3, "-ObtainAuthTokenFromServer- Hostname = %s\n", pATSHost->pName);
DbgTrace(3, "-ObtainAuthTokenFromServer- port = %d\n", pATSHost->port);
pRpcSession = OpenRpcSession(pATSHost->pName,
pATSHost->port);
if (pRpcSession)

View File

@ -83,6 +83,9 @@ GetUserCredentials(
size_t secretIdLen;
DbgTrace(1, "-GetUserCredentials- Start\n", 0);
DbgTrace(2, "-GetUserCredentials- Realm = %s\n", pRealm);
DbgTrace(2, "-GetUserCredentials- CredStoreScope = %X\n", pCredStoreScope);
DbgTrace(2, "-GetUserCredentials- RealmCredsOnly = %X\n", realm_credentials_only);
// Initialize output parameters
*ppUsername = NULL;
@ -195,7 +198,7 @@ GetUserCredentials(
}
else
{
DbgTrace(0, "-GetUserCredentials- Failed to obtain credentials for pw authentication\n", 0);
DbgTrace(0, "-GetUserCredentials- Failed to obtain credentials for pw authentication, code = %d\n", rcode);
}
// Clear out the credential structure to make sure that we are not leaving sensitive