Using Lastname-Firstname Format with AD Accounts in IDM



By: Misterwippy

January 28, 2008 8:10 am

Reads: 317

Comments:0

Rating:0

Problem

A Forum reader recently asked:

“I am using IDM 3.0.1 with an AD driver setup working. I would like to have the format of the fullname changed. Currently when the admin creates a user in iManager, the fullname is in the format of “Firstname Lastname” and this syncronizes over to AD in the same format. We have all of the old accounts in “Lastname, Firstname” format and all the new accounts in “Firstname Lastname” format. Management would like to keep the accounts in the “Lastname, Firstname” format because it is easier to search in the Exchange address lists.

The problem is that the accounts don’t want to sync when the accounts are created “Lastname, Firstname” in iManager. How can I accomplish this task through IDM?”

And here is the response from Rowan Truscott …

Solution

You need to change the placement rule. You most likely want users to log into AD with their eDirectory CN. This translates to a CN -> sAMAccountName mapping.

The naming attribute for AD is Full Name. When you create a new account, you need to specify this in the destination DN of the placement rule. Your current placement rule probably has something like this:

Source DN(convert="true", length="1",
start="-1")+","+"ou=Users,dc=your,dc=domain"

So, edit you user placement rule to look something like this:

<rule>
<description>User Placement</description>
  <conditions>
    <and>
      <if-class-name mode="nocase" op="equal">User</if-class-name>
      <if-op-attr name="Surname" op="available"/>
      <if-op-attr name="Given Name" op="available"/>
    </and>
  </conditions>
  <actions>
    <do-set-op-dest-dn>
      <arg-dn>
        <token-text xml:space="preserve">cn=</token-text>
        <token-op-attr name="Surname"/>
        <token-text xml:space="preserve">, </token-text>
        <token-op-attr name="Given Name"/>
        <token-text
xml:space="preserve">,ou=you-user-ou,dc=your,dc=domain</token-text>
      </arg-dn>
    </do-set-op-dest-dn>
  </actions>
</rule>

If you want the eDirectory full name changed to Surname, Given Name then add this rule on either the create or command transform policy of the Subscriber channel:

<rule>
<description>Write back reformatted Full Name</description>
  <conditions>
    <and>
      <if-operation mode="case" op="equal">add</if-operation>
      <if-class-name mode="nocase" op="equal">User</if-class-name>
    </and>
  </conditions>
  <actions>
    <do-clear-src-attr-value name="Full Name"/>
    <do-set-src-attr-value name="Full Name">
      <arg-value>
        <token-src-attr name="Surname"/>
        <token-text xml:space="preserve">, </token-text>
        <token-src-attr name="Given Name"/>
      </arg-value>
    </do-set-src-attr-value>
  </actions>
</rule>

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Tags: , , ,
Categories: Uncategorized

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.

Comment