authzrule show
Shows all the attributes of an authorization rule, including description, rule text, and fail reason code.
Requires authentication (administrator ID and password) to use.
authzrule show rule_id
Options
- rule_id
- Name of the authorization rule to show. The rule must exist, or an error is displayed.
Return codes
- 0
- The command completed successfully.
- 1
- The command failed. When a command fails, the pdadmin command provides a description of the error and an error status code in hexadecimal format (for example, 0x14c012f2). See "Error messages" in the IBM Knowledge Center. This reference provides a list of the ISAM error messages by decimal or hexadecimal codes.
Example
The following example shows attributes for a rule named r2:pdadmin sec_master> authzrule show r2The output is like:
Authorization Rule Name: r2 Description: time-of-day access Rule Text: <xsl:if test="/XMLADI/session[contains(status,'login')]"> <xsl:for-each select="/XMLADI/userid/level"> <xsl:if test=". = 'administrator'"> <xsl:choose> <xsl:when test="../paid = 'in-full'"> !TRUE! </xsl:when> <xsl:when test="../paid = 'partial'"> !FALSE! </xsl:when> <xsl:when test="../paid = 'introductory'"> !TRUE! </xsl:when> <xsl:otherwise> !FALSE! </xsl:otherwise> </xsl:choose> </xsl:if> </xsl:for-each> </xsl:if> Fail Reason:Error when creating R2
See also
authzrule find
authzrule listParent topic: pdadmin commands