ID Generation

The ID Generation feature enables you to automatically generate user or group IDs for new users or groups on the Subscriber channel. The user or group ID is a unique number that identifies the user or group to the host UNIX system.

A range for ID generation can be configured in the driver parameter. The driver generates IDs based on the minimum and maximum value provided in the range for add events only. If the driver fails and is restarted, the ID generated will be an increment of the previous value. During subsequent driver startups, if there is a change in the specified range, the driver generates IDs based on the new range.

NOTE:   Only a single driver must be configured for ID generation of a UID or GID for a particular user or group.

To configure ID Generation for users or groups during the driver startup:

  1. Use the steps in Setting Up the Driver. Select Yes for Steps 14 and 20 while setting up the driver.

To configure ID generation for users or groups while a driver is running:

  1. Select the driver in the driver set.

  2. Select the Driver Parameters tab.

  3. Enter Yes for Allow UID Generation.

  4. Enter Yes for Allow GID Generation.

  5. Edit the Create Rule style sheet of the Subscriber channel and replace the following line for user ID generation:

    <required-attr attr-name="uidNumber"/>

    with

    <!--<required-attr attr-name="uidNumber"/>-->

  6. Replace the following line in the class-name=group for group ID generation:

    <required-attr attr-name="gidNumber"/>

    with

    <!--<required-attr attr-name="gidNumber"/>-->

    NOTE:  This makes the uidNumber and gidNumber non-mandatory attributes in the Create Rule.

  7. Click Apply and close.

The Account Restrictions style sheet is automatically detached from the Next Transformation of Event Restrictions and attached to the Matching Rule when the preconfigured XML files are imported.

To remove the configuration settings for user or group ID generation:

  1. Select the driver in the driver set.

  2. Select the Driver Parameters tab.

  3. Enter No for Allow UID Generation.

  4. Enter No for Allow GID Generation.

  5. Replace the following line for user ID generation:

    <!--<required-attr attr-name="uidNumber"/>-->

    with

    <required-attr attr-name="uidNumber"/>

  6. Replace the following line for group id generation:

    <!--<required-attr attr-name="gidNumber"/>-->

    with

    <required-attr attr-name="gidNumber"/>

  7. Click Apply and close.

  8. Attach the Account Restrictions style sheet as the Next Transformation of Event Restrictions.