ClearBox Server v1.2 Developer's Guide |
ICommonAuthentication::LogonStatusCalled by server to notify extension about authentication result. HRESULT LogonStatus( [in] long tag, [in] USERINFO * userInf, [in] AUTHENRESULT authRes, [in] AUTHENTYPE authType); Parameters
Return ValuesIf extension returns error code, error is logged. This failure does not affect packet processing. 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. RemarksThis method can be called in context of other authentication interfaces - IRADIUSAuthentication and ITACACSAuthentication. Extension can use this method to implement "account disabling" after number of unsuccessfull authentications reaches some limit or to inform administrator. Example CodeThis code disables user's account if he failed to pass authentication via MS-CHAP method. STDMETHODIMP CTest::LogonStatus (long tag, USERINFO * userInf, AUTHENRESULT authRes, AUTHENTYPE authType) { if (authRes!=AR_OK && authType==AT_MSCHAP) //Some function defined by extension DisableUserAccount(userInf->userName); return S_OK; } See AlsoICommonAuthentication, Common authentication process © 2001-2003 XPerience Technologies. www.xperiencetech.com |
Created by chm2web html help conversion utility. |