Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

ImpersonateClient – PB Docs 2022 – PowerBuilder Library

ImpersonateClient – PB Docs 2022

ImpersonateClient

PowerScript function

Description

Allows a COM object running on COM+ to take on the security
attributes of the client for the duration of a call.

Applies to

TransactionServer objects

Syntax

Argument

Description

transactionserver

Reference to the TransactionServer service instance

Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs.

Usage

ImpersonateClient allows a COM object to run in the client’s
security context for the duration of a call. Running in the client’s
security context gives the server process access to the same resources as
the client. This can either restrict or expand the server’s access to
resources. For example, if the client does not have update rights to a
database but the server does, impersonating the client before accessing
the database prevents the client from updating the database.

After completing the processing that requires the client’s security
context, call RevertToSelf to revert to the server’s security
context.

Examples

This example creates an instance of the transaction server context
object and impersonates the client to perform some processing:

See also

IsCallerInRole

IsImpersonating

IsSecurityEnabled

RevertToSelf


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x