9.3 Using Named Passwords in Driver Policies

9.3.1 Using the Policy Builder

The Policy Builder allows you to make a call to a Named Password. Create a new rule and select Named Password as the condition, then set an action depending upon if the Named Password is available or not available.

  1. In Designer, launch the Policy Builder, right-click, then click New > Rule.

  2. Specify the name of the rule, then click Next.

  3. Select the condition structure, then click Next.

  4. Select named password for the Condition.

  5. Browse to and select the Named Password that is stored on the driver.

    In this example, it is user info.

  6. Select whether the operator is available or not available, then click Next.

  7. Select an action for the Do field.

    In this example, the action is veto.

  8. Click Finish.

The example indicates that if the user info Named Password is not available, then the event is vetoed.

Figure 9-1 A Policy Using Named Passwords

9.3.2 Using XSLT

The following example shows how a Named Password can be referenced in a driver policy on the Subscriber channel in XSLT:

<xsl:value-of select="query:getNamedPassword($srcQueryProcessor,'mynamedpassword')" xmlns:query="http://www.novell.com/nxsl/java/com.novell.nds.dirxml.driver.XdsQueryProcessor"/>