Test the User Logon Name Generation policy
The policy effect on the user creation operation is as follows. On the user creation forms, the Active Roles user interfaces provide a Generate button to create a pre-Windows 2000 user logon name in accordance with the policy rule. In the event of a naming conflict, clicking the Generate button causes the policy to add a uniqueness number to the name.
You can use the following steps to verify the policy behavior in the Active Roles console.
To verify the policy behavior using the Active Roles console
- Create the user account for the first user:
- In the console tree, right-click an OU, and select New | User.
- In First name, type John; in Last name, type Smitson.
- Click the button next to the User logon name (pre-Windows 2000) box.
This will generate JSmitson.
- Complete the creation of the user account.
- Create the user account for the second user:
- In the console tree, right-click an OU, and select New | User.
- In First name, type Jane; in Last name, type Smitson.
- Click the button next to the User logon name (pre-Windows 2000) box.
This will generate J1Smitso, because the name JSmitson is in use.
- Complete the creation of the user account.
- Create the user account for the third user:
- In the console tree, right-click an OU in your test domain, and select New | User.
- In First name, type Joanne; in Last name, type Smitson.
- Click the button next to the User logon name (pre-Windows 2000) box.
This will generate J2Smitso, since both the JSmitson and J1Smitso names are in use.
- Complete the creation of the user account.
Scenario 2: Using multiple rules
The policy described in this scenario uses multiple rules to generate the pre-Windows 2000 user logon name based on the following rules:
- The first character of the user first name, followed by the user last name
- The first two characters of the user first name, followed by the user last name
- The first three characters of the user first name, followed by the user last name
The length of the policy-generated name is at most 8 characters. If the name is longer, trailing characters are truncated as needed.
Examples of names generated by this policy are as follows:
- JSmitson
- JoSmitso
- JohSmits
The policy generates the name JoSmitso for the user John Smitson if the name JSmitson is in use. If both JSmitson and JoSmitso are in use, the policy generates the name JohSmits.
If the policy fails to generate a unique name, it allows a name to be specified manually.
To implement this scenario, you might re-configure the User Logon Name Generation Policy Object, used in the previous scenario.
Configure the Policy Object
Use the Active Roles console to make the appropriate changes to the User Logon Name Generation Policy Object.
To modify the Policy Object
- In the Active Roles console, right-click the User Logon Name Generation Policy Object, and click Properties.
- On the Policies tab, select the policy, and then click View/Edit.
- Remove the uniqueness number entry from the first rule:
- On the Generation Rules tab, select the rule, and then click View/Edit.
- In the Configure Value dialog box, select the Uniqueness number entry, click Remove, and then click OK.
- Add the second rule:
- On the Generation Rules tab, click Add.
- In the Configure Value dialog box, click Add.
- In the Add Entry window:
- Select the User Property entry type
- Select the First name property
- Click The first and then type 2
- Click OK
- In the Configure Value dialog box, click Add.
- In the Add Entry window:
- Select the User Property entry type
- Select the Last name property
- Click OK
- In the Configure Value dialog box, click OK.
- Repeat Step 4, modifying Sub-step c) as follows in order to add the third rule: Click The first and then type 3.
- On the Generation Rules tab, select the Allow manual edits of pre-Windows 2000 logon name check box, and then click Only if a unique name cannot be generated by this policy.
- Click OK to close the User Logon Name Generation Policy Properties dialog box.
- Click OK to close the Properties dialog box for the Policy Object.
Test the User Logon Name Generation policy
The policy effect on the user creation operation is as follows. On the user creation forms, the Active Roles user interfaces provide a Generate button to create a pre-Windows 2000 user logon name in accordance with the policy rules. In the event of a naming conflict, clicking the Generate button causes the policy to apply a subsequent rule.
You can use the following steps to verify the policy behavior in the Active Roles console.
To verify the policy behavior using the Active Roles console
- Create the user account for the first user:
- In the console tree, right-click an OU, and select New | User.
- In First name, type Jack; in Last name, type Smitson.
- Click the button next to the User logon name (pre-Windows 2000) box.
This will generate JaSmitso. The policy applies the second rule.
- Complete the creation of the user account.
- Create the user account for the second user:
- In the console tree, right-click an OU, and select New | User.
- In First name, type Jay; in Last name, type Smitson.
- Click the button next to the User logon name (pre-Windows 2000) box.
This will generate JaySmits. The policy applies the third rule.
- Complete the creation of the user account.
- Create the user account for the third user:
- In the console tree, right-click an OU, and select New | User.
- In First name, type Jaycob; in Last name, type Smitson.
- Click the button next to the User logon name (pre-Windows 2000) box.
In this case, the policy fails to generate a unique name since each of the three generation rules returns a name that is in use by an existing user account in your test domain. The console prompts you to specify a name because the policy is configured to allow this action in the situation where it cannot generate a unique name.