Problem

A Forum reader recently asked:

“How can we populate the AD home directory field using IDM? Is it even possible?”

And here’s the response from Tim Edmonds …

Solution

Set the AD Attributes as below:

  • homeDrive – Drive to which Home Directory will be mapped
  • homeDirectory – URL of Home Directory, including the user portion

Here’s some sample XML that uses a GCV to set the specifics of the homeDirectory. It also uses CN for a directory name (sorry if it word-wraps and gets a bit confusing …)

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE policy PUBLIC 
"policy-builder-dtd" 
"C:\Program 
Files\Novell\Designer\eclipse\plugins\
com.novell.designer.idm.policybuilder_2.0.0.200705161501\DTD\dirxmlscript.dtd"><policy>
  <rule>
    <description>Create Home Directory</description>
    <comment xml:space="preserve">Create the Home Directory for the user 
in AD</comment>
    <conditions>
      <and>
        <if-op-attr name="CN" op="available"/>
      </and>
    </conditions>
    <actions>
      <do-set-dest-attr-value class-name="User" name="homeDrive">
        <arg-value type="string">
          <token-text xml:space="preserve">H:</token-text>
        </arg-value>
      </do-set-dest-attr-value>
      <do-set-dest-attr-value class-name="User" name="homeDirectory">
        <arg-value type="string">
          <token-global-variable 
name="af_gcv_Active_Directory_Home_Directory_Location"/>
          <token-attr name="CN"/>
        </arg-value>
      </do-set-dest-attr-value>
    </actions>
  </rule>
</policy>
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.
Loading...Loading...

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
By: tse7147
Sep 5, 2007
3:26 am
Reads:
1,526
Score:
Unrated