Article

tse7147's picture
article
Reads:

4207

Score:
0
0
 
Comments:

0

Populating the AD Home Directory Field with IDM

Author Info

5 September 2007 - 2:26am
Submitted by: tse7147

(View Disclaimer)

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>

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.




User Comments

© 2013 Novell