| ClearBox Server v2.3 Developer's Guide |
ICommonAuthentication::CheckPasswordCalled by server to check user's password when it is unavailable to extension in clear text but is provided in request packet. HRESULT CheckPassword( [in] long tag, [in] USERINFO * userInf, [out] VARIANT_BOOL * checkOK); Parameters
Return ValuesIf extension returns error code, it is assumed that password was incorrect as if checkOK=VARIANT_FALSE. Thread SafetyThis method is called in context of WORK thread. (See Server Threads Model for details.) You should synchronize data which is shared with other threads. Memory ManagementServer allocates and frees memory for userInf fields, so extension must not change them. RemarksIf checkOK=VARIANT_FALSE, user is rejected. Example CodeThis code checks user's password using fixed string. STDMETHODIMP CTest::CheckPassword (long tag,
USERINFO * userInf, VARIANT_BOOL * checkOK)
{
if (wcscmp(userInf->userPassword,L"dummypassword")==0)
*checkOK=VARIANT_TRUE;
else
*checkOK=VARIANT_FALSE;
return S_OK;
}See AlsoICommonAuthentication, Common authentication process © 2001-2004 XPerience Technologies. www.xperiencetech.com |
| Browser Based Help. Published by chm2web software. |