Sm_PolicyApi_RemoveRegularExpressionFromPasswordPolicy()

Removes a Regular Expression from the referenced password policy. Implemented only if the session's version is set to SM_POLICY_API_VERSION_6_0.
casso126
Removes a Regular Expression from the referenced password policy. Implemented only if the session's version is set to SM_POLICY_API_VERSION_6_0.
Type
Regular Expression function.
Syntax
int SM_EXTERN 
Sm_PolicyApi_RemoveRegularExpressionFromPasswordPolicy(
void*pSessionHandle,
const char*pszRegularExpressionOid,
const char*pszPasswordPolicyOid
);
Parameter
I/O
Description
pSessionHandle
I
A pointer to an internal Policy Management API data structure. The structure holds information about the administrator session and the client session.
pszRegular
ExpressionOid
I
The OID of the regular expression to be removed.
pszPassword
PolicyOid
I
The OID of the password policy to remove the expression from.
Returns
  • Sm_PolicyApi_Success. The regular expression was removed successfully.
  • Sm_PolicyApi_Failure. The regular expression was not removed successfully.
  • Sm_PolicyApi_NoSession. There is no valid administrator session.
  • Sm_PolicyApi_InvalidHandle. There was no valid initialization prior to this call.
  • Sm_PolicyApi_NoPrivilege. The administrator does not have the privilege to remove regular expressions.
  • Sm_PolicyApi_InvalidOid: The password policy OID was not found.