srv_impersonate_client

Impersonates the security context of a client connection.

Syntax

int srv_impersonate_client ( SRV_PROC * srvproc );

where

srvproc
Is a pointer to the SRV_PROC structure that is the handle for a particular client connection. The srvproc parameter contains the information that the Open Data Services Library uses to manage communication and data between the application and the client.

Returns

SUCCEED if the security context of the client connection was impersonated; otherwise, FAIL.

Remarks

After calling srv_impersonate_client, the Open Data Services application can perform operations on a client's behalf, using the security context of the client connection. This is called "pass-through" security. To stop impersonating the client connection, call srv_revert_to_self.

Using srv_impersonate_client for "pass-through" security simplifies the setup and administration of security procedures because:

The srv_impersonate_client function currently supports impersonating client connections that use the named pipes or multi-protocol Net-Library.

See Also

This entry For information about
srv_revert_to_self Stopping impersonation of the security context of the client connection