Populating the AD Home Directory Field with IDM
Novell Cool Solutions: Tip
By Tim Edmonds
Reader Rating 
|
Digg This -
Slashdot This
Posted: 5 Sep 2007 |
Problem
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>
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com
