SetDefenderPassword method
Sets the Defender password for a user or all users in a group. When a user account name is specified, that user's Defender password is set. When a group name is specified, the Defender passwords for all users in that group are assigned the specified Defender password.
C# syntax
[OperationContract]
[FaultContract(typeof(FaultException))]
void SetDefenderPassword(string userGroupCommonName, string password, bool expire, bool overwrite, string userSearchBase);
Parameters
- userGroupCommonName Common name of the user or group of users to which the Defender password is to be set.
- password The Defender password to set.
- expire Sets the Defender password to the expired state.
- overwrite Overwrites an existing Defender Password. By default, an existing Defender password cannot be overwritten.
- userSearchBase Optional parameter to specify base container in which to search for users.
Return value
In the case of an error, a Fault is generated. The faultCode can be one of the following:
- ArgumentOutOfRange One of the arguments was invalid, further details are contained in the faultstring.
- UnknownFault Any other error, further details may be included in the faultstring.
SetPinOnUserToken method
Sets a user's PIN for an assigned token.
C# syntax
[OperationContract]
[FaultContract(typeof(FaultException))]
void SetPinOnUserToken(string userCommonName, string tokenCommonName, string tokenPin, string userSearchBase, string tokenSearchBase);
Parameters
- userCommonName Common name of the user to whom the PIN is to be assigned.
- tokenCommonName Common name of the token to which the PIN is to be assigned.
- tokenPin The PIN to assign.
- userSearchBase Optional parameter to specify base container in which to search for users.
- tokenSearchBase Optional parameter to specify base container in which to search for tokens.
Return value
In the case of an error a Fault is generated. The faultCode can be one of the following:
- ArgumentOutOfRange One of the arguments is invalid, further details are contained in the faultstring.
- UnknownFault Any other error, further details may be included in the faultstring.
SetTemporaryResponse method
Sets a temporary response on a user's assigned token.
C# syntax
[OperationContract]
[FaultContract(typeof(FaultException))]
TemporaryResponse SetTemporaryResponse(string userCommonName, string tokenCommonName, int expiryTimeMinutes, bool multipleUse, string userSearchBase, string tokenSearchBase);
Parameters
- userCommonName Common name of the user to whom the temporary response is to be assigned.
- tokenCommonName Common name of the token to which the temporary response is to be assigned.
- expiryTimeMinutes The time interval, in minutes, during which the temporary response remains valid.
- multipleUse If true, then the temporary response can be used multiple times.
- userSearchBase Optional parameter to specify base container in which to search for users.
- tokenSearchBase Optional parameter to specify base container in which to search for tokens.
Return value
A succesful call returns a TemporaryResponse. In the case of an error a Fault is generated.
The faultCode can be one of the following:
- ArgumentOutOfRange One of the arguments was invalid, further details will be contained in the faultstring.
- UnknownFault Any other error, further details may be included in the faultstring.
TestDefenderToken method
Tests a Defender token's response.
C# syntax
[OperationContract]
[FaultContract(typeof(FaultException))]
DefenderResult TestDefenderToken(string tokenCommonName, string response, string challenge, string tokenSearchBase);
Parameters
- tokenCommonName Common name of the token to test.
- response The token response.
- challenge The token challenge, not required for synchronous tokens.
- tokenSearchBase Optional parameter to specify the base container in which to search for tokens.
Return value
A valid call results in a DefenderResult. This class provides the following public properties:
- System.Boolean Success Returns whether the test was successful.
- System.String ErrorMessage Returns the error message associated with the test.
In the case of an error a Fault is generated.
The faultCode can be one of the following:
- ArgumentOutOfRange One of the arguments is invalid, further details are contained in the faultstring.
- UnknownFault Any other error, further details may be included in the faultstring.