To download this file, please login or click here to register
Description:
This class is really useful when working in any large infrastructure. It enables the code to impersonate a security token and in that way get past the limited single Kerberos hop issue. It enables services, processes and even websites (if permissioned properly) to run under a different account for a set period prior to invoking the 'fRevertToSelf()' method which sets the impersonate back to its orginal token.
Usage is:
1. use the method: fSwapSecurityToken(username, password, false); (include the domain if you are on one).
2. use the method: fImpersonate(); to impersonate the username and password
3. When done witht he impersonation use the method: fRevertToSelf(); to go back to the original token you came in on.