|
JWSCL Documentation
|
procedure SetWinNTIdentity(const Value: TJwComWinNTIdentity);
With WinNT authorization any call that is made on the COM interface needs the SE_IMPERSONATE_PRIVILEGE. The function checks for this privilege once and throws EJwsclPrivilegeNotFoundException if the privilege is not enabled.
var ComSec : TJwComClientSecurity; begin JwEnablePrivilege(SE_IMPERSONATE_NAME, pst_Enable); ComSec := TJwComClientSecurity.Create(MyInterfacePointer, False); ComSec.AuthenticationService := asWinNT; ComSec.AuthenticationLevel := calDefault; ComSec.ImpersionationLevel := cilIdentify; //or cilImpersonate ComSec.AuthorizationService := azsDefault; ComSec.SetWinNTIdentity(TJwComWinNTIdentity.Create('Domain', 'User', 'Password')); MyInterfacePointer.Call; end;
|
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc. |
|
What do you think about this topic? Send feedback!
|