Sm_PolicyApi_AddRegularExpressionToPasswordPolicy()
Adds a regular expression to the referenced password policy. Implemented only if the session's version is set to SM_POLICY_API_VERSION_6_0.
casso126
Adds a regular expression to 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_EXTERNSm_PolicyApi_AddRegularExpressionToPasswordPolicy (void*pSessionHandle,const char*pszPasswordPolicyOid,Sm_PolicyApi_RegularExpression_t*pstructRegExpr);
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. |
pszPassword
PolicyOid
| I | The OID of the password policy to add the regular expression to. |
pstructRegExpr
| I | A pointer to the regular expression structure to add. |
Returns
- Sm_PolicyApi_Success. The regular expression was added successfully.
- Sm_PolicyApi_Failure. The regular expression was not added 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 add a regular expression.
- Sm_PolicyApi_InvalidOid: The password policy OID was not found.