Name

CFIMPERSONATE — New as of ColdFusion 4.5

Synopsis

<CFIMPERSONATE> ... </CFIMPERSONATE>

Allows you to impersonate a user within a security context previously set up within the ColdFusion Administrator.

Attributes

SECURITYCONTEXT=" security_context "

The name of the security context to authenticate the user within. Required. Security contexts are defined in the ColdFusion Administrator.

USERNAME=" username "

The name of the user you want to impersonate for authentication. Required.

PASSWORD=" password "

The password of the user you want to impersonate. Required.

TYPE="CF|OS"

The type of impersonation to use. CF specifies impersonation at the application level; OS specifies impersonation at the operating system, where the user specified is a valid user on the system. OS is available only with the Windows NT version of ColdFusion. The operating system user being impersonated must be assigned the user right to “Logon as a Batch Job”. While OS impersonation processes faster than CF impersonation, it is limited in the types of resources the operating system can grant or deny access to. Required.

Get Programming ColdFusion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.