How can you change an object identifier other than the CN during a rename operation? Let’s say that you want the uniqueID attribute of the user object-Class populated by the CN, and the object gets renamed in your connected application.

In this specific case I wanted to update the uniqueID attribute and set a new IDM association when the user got renamed. I set a new IDM association because it was based on the source-dn.


The answer to this question is in the following policy, which, again, shows how easy it is to implement policy rules with Novell IDM.

<?xml version="1.0" encoding="UTF-8"?><policy> 
        <description>React on user renames</description>
        <comment xml:space="preserve">This policy reacts on user renames. 
            It sets a new uniqueID for the user and updates the IDM association</comment> 
                <if-operation op="equal">rename</if-operation>
            <do-set-dest-attr-value class-name="User" name="uniqueID" when="before">
                    <token-xpath expression="./new-name"/>
            <do-remove-association when="after">
            <do-add-association when="after">
                    <token-parse-dn dest-dn-format="slash" length="-2" src-dn-format="slash" start="0"> 
                        <token-xpath expression="./@dest-dn"/>
                    <token-text xml:space="preserve">\</token-text> 
                    <token-xpath expression="./new-name"/>

Below is a screen shot of the policy itself.

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.

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.

Leave a Reply

No Comments
Nov 15, 2006
12:00 am
Active Directory Authentication Automation Cloud Computing Cloud Security Configuration Customizing Data Breach DirXML Drivers End User Management Identity Manager Importing-Exporting / ICE/ LDIF Intelligent Workload Management IT Security Knowledge Depot LDAP Monitoring Open Enterprise Server Passwords Reporting Secure Access Supported Troubleshooting Workflow