Adding Defaults for Users

The Create Rule Transform style sheet can be edited to provide default values for password, homeDirectory, loginShell, and gidNumber for users as follows:

  1. In the ConsoleOne left panel, select the driver > click Subscriber.

  2. In the right panel, right-click Create Rule Transform > Properties.

  3. Click the Edit XML tab to edit the style sheet.

  4. To provide a default home directory for user creation:

    Replace /home with the desired home directory prefix for the user in the following line:

    <xsl:variable name="prefix">/home</xsl:variable>

  5. To provide a default value for loginShell for the user:

    Replace /bin/sh with the desired login shell for the user in the following line:

    <xsl:variable name="login-shell">/bin/sh</xsl:variable>

  6. To provide a default gidNumber for the user:

    Replace 500 with the desired primary group ID for the user in the following line:

    <xsl:variable name="gid-number">500</xsl:variable>

  7. To provide a default password for the user:

    Replace <xsl:value-of select="./value"/> with the desired default password in the following line:

    <password> <xsl:value-of select="./value"/> </password>

    The clear-text password must be provided in the style sheet in the <password> tag. The driver will then set this as the initial driver password for the user.

  8. If default password is set to No during configuration, add the default password template by adding the following If clause below the homeDirectory template:

    <xsl:if test="not(./../add-attr[@attr-name='authPassword']) and not(./../password)">

    <password>

         <xsl:value-of select="./value"/>

    </password>

    </xsl:if>

To edit the Create Rule Transform style sheet from the Subscriber channel using iManager:

  1. In iManager, click DirXML Management > Overview.

  2. Locate the driver in its driver set.

  3. Click the driver to open the Driver Overview Page.

  4. Click the Creation Rule on the Subscriber channel.

  5. Click the Create Rule Transform style sheet to edit the style sheet.

  6. To provide a default home directory for user creation, replace /home with the desired home directory prefix for user in the following line:

    <xsl:variable name="prefix">/home</xsl:variable>

  7. To provide a default value for loginShell for the user:

    Replace /bin/sh with the desired login shell for user in the following line:

    <xsl:variable name="login-shell">/bin/sh</xsl:variable>

  8. To provide a default gidNumber for the user:

    Replace 500 with the desired primary group ID for the user in the following line:

    <xsl:variable name="gid-number">500</xsl:variable>

  9. To provide default password for user:

    Replace <xsl:value-of select="./value"/> to the desired default password in the following line:

    <password> <xsl:value-of select="./value"/> </password>

    The clear-text password must be provided in the style sheet in the <password> tag. The driver will then set this as the initial driver password for the User.

  10. If default password is set to No during configuration, add the default password template by adding the following If clause below the homeDirectory template:

    <xsl:if test="not(./../add-attr[@attr-name='authPassword']) and not(./../password)">

    <password>

         <xsl:value-of select="./value"/>

    </password>

    </xsl:if>

NOTE:  If multiple drivers are running, only one driver should have a default password enabled for users, and only one driver should have ID generation enabled for a particular user or group.



  Previous Page: Guidelines for Configuring Style Sheets  Next Page: Sample Style Sheets