Article
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>
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.
Related Articles
User Comments
- Be the first to comment! To leave a comment you need to Login or Register
- 9331 reads


0