> cool solutions home   > cool tools home
Specified Users Stylesheet
DirXML Stylesheet that targets specified users for synchronization from one tree to the user's OU in another tree.
Reader Rating    from ratings rate this article
View a Printer Friendly Version of this Page Send this page to a friend
vitals
Posted: 20 May 2002
File Size: 1KB
License: Free
Download 1:  corp_sub_ots.zip
Screenshot: view
Publisher: Gustavo J Gallardo
E-mail: GGALLARDTAKETHISOUT@novell.com
disclaimer
Please read the note from our friends in legal before using this file.
details

Question:
I have a NDS production tree and a NDS auth tree. The auth tree is used for iChain LDAP authentication. There is an OU=users in the auth tree. In the production tree there are many users OU's. With DirXML how do I sync only selected users from the production tree to the users OU in the auth tree?

Answer:
I did this in an engagement a few weeks ago. Basically we check for an attribute (we used 'Generational Qualifier' since the customer didn't want to be tied to a snapin) to be set with a particular value in the create rule.

Basically, the stylesheet does 2 different things:

  1. It checks for the value of an attribute, before processing an ADD. If you create users in your Tree1, it requires that you enter the value 'P' in the 'Generational Qualifier' before copying the user to Tree2. (We chose that attribute because the customer wasn't using it, the stylesheet can be easily modified to use another attribute and/or value.)
  2. When processing the ADD, it checks for the user's context and fills that info in an attribute (in the example, the attribute name is 'CorpTreePosition'). This is useful in a CorpTree-FlatTree scenario, if you need the user's position in the Corp Tree stored in your user in the Flat Tree. You need to extend the schema of both the Corp Tree and Flat Tree (using an AuxClass or extending the user's base schema). You also need to allow this attribute pass thru the DirXML driver filter.

This stylesheet is designed as an Output Transform, for the Subscriber Channel in a Hierarchical side of a FlatTree-DepartamentalTree environment.