Technical Tip

Using Lastname-Firstname Format with AD Accounts in IDM

Author Info

28 January 2008 - 8:10am
Submitted by: Misterwippy

tip
Reads:

1558

Score:
0
0
 
Comments:

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>


Author Info

28 January 2008 - 8:10am
Submitted by: Misterwippy




User Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <p> <a> <em> <i> <strong> <cite> <code> <img><ul> <ol> <li> <div> <dl> <dt> <dd> <h1> <b> <strong> <h2> <h3> <pre> <table> <td> <tr> <th> <blockquote>
  • Lines and paragraphs break automatically.
  • Glossary terms will be automatically marked with links to their descriptions. If there are certain phrases or sections of text that should be excluded from glossary marking and linking, use the special markup, [no-glossary] ... [/no-glossary]. Additionally, these HTML elements will not be scanned: a, abbr, acronym, code, pre.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

© 2008 Novell, Inc. All Rights Reserved.