The Login method performs session login and validation. Before calling this method, call AgentResource‑>IsProtected for the target resource.
Syntax
The Login method has the following format:
Netegrity::AgentUser‑>Login(resource[, clientIP])
Parameters
The Login method accepts the following parameters:
resource (AgentResource object)
Specifies the resource to log in to.
clientIP (string)
(Optional) Specifies the client's IP address.
Return Value
The Login method returns one of the following values:
Specifies that user login was successful.
Specifies that user login failed.
Specifies that a challenge is required for authentication.
Specifies that the operation failed.
Specifies that the method timed out.
Specifies that the object was not connected.
Remarks
To allow one user, who is already logged in, to log in again as another user, call AgentUser‑>Impersonate.
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |