Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Anonymous_User Absent Member.
Absent Member.
175 views

Drawing data from multiple eDirectory objects


Hello.

I hope all is well with everyone.

I have a challenge in front of me and I think I've come up with a
solution, though I do not know if it's possible.

Our student SMS software requires both student and parent data to fill a
record. Is it possible to pull data from two different edirectory
objects using a single TEXT driver? These eDir objects are linked, sort
to speak, with is a reference ID that points the objects to each other?
In this case a parent's ID is an attribute of the student and student's
ID is an attribute of the parent.

Thanks for your continued help.

Allen


--
allenmorris
------------------------------------------------------------------------
allenmorris's Profile: https://forums.netiq.com/member.php?userid=1565
View this thread: https://forums.netiq.com/showthread.php?t=49699

Labels (1)
0 Likes
6 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Drawing data from multiple eDirectory objects

allenmorris wrote:

> I have a challenge in front of me and I think I've come up with a
> solution, though I do not know if it's possible.
>
> Our student SMS software requires both student and parent data to
> fill a record. Is it possible to pull data from two different
> edirectory objects using a single TEXT driver? These eDir objects
> are linked, sort to speak, with is a reference ID that points the
> objects to each other? In this case a parent's ID is an attribute of
> the student and student's ID is an attribute of the parent.


Definitely this is possible and shouldn't be too hard.

The only real complexity I can think of is, is this a one to one
relationship between a single student and a single parent?

My experience with generating such exports is that the student has more
than one parent/guardian and this can complicate the export.

--
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Drawing data from multiple eDirectory objects

On Wed, 15 Jan 2014 20:14:01 +0000, allenmorris wrote:

> Our student SMS software requires both student and parent data to fill a
> record. Is it possible to pull data from two different edirectory
> objects using a single TEXT driver?


Sure. You can query for, or generate, any data you need within the
subscriber channel. Then edit the output XSLT to put it out in the CSV
format you need it in. Depending on the types of events you intend to
support, you'll need to account for those within the channel as well, but
it should be straightforward enough once you get started.


--
--------------------------------------------------------------------------
David Gersic dgersic_@_niu.edu
Knowledge Partner http://forums.netiq.com

Please post questions in the forums. No support provided via email.
If you find this post helpful, please click on the star below.
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Drawing data from multiple eDirectory objects


Thank you both for your responses.

I hate to be nick-picky, though. You both told it would be easily done,
without telling me how I could go about do it.

Some general guidance on where to start would be greatly appreciated.
Where do I put the commands? What commands are used? How do I call a
different object?

Allen


--
allenmorris
------------------------------------------------------------------------
allenmorris's Profile: https://forums.netiq.com/member.php?userid=1565
View this thread: https://forums.netiq.com/showthread.php?t=49699

0 Likes
Knowledge Partner
Knowledge Partner

Re: Drawing data from multiple eDirectory objects

On 1/18/2014 1:13 PM, allenmorris wrote:
>
> Thank you both for your responses.
>
> I hate to be nick-picky, though. You both told it would be easily done,
> without telling me how I could go about do it.
>
> Some general guidance on where to start would be greatly appreciated.
> Where do I put the commands? What commands are used? How do I call a
> different object?


Try these articles:

Start with this one, for specifics:
http://www.novell.com/communities/node/13144/various-attribute-tokens-idm-policy


But these will help you with a number of issues you will soon run up
against.

http://www.novell.com/communities/node/13053/common-mistakes-newcomers-idm-make-part-1
http://www.novell.com/communities/node/13057/common-mistakes-newcomers-idm-make-part-2
http://www.novell.com/communities/node/13058/common-mistakes-newcomers-idm-make-part-3
http://www.novell.com/communities/node/13125/common-mistakes-newcomers-idm-make-part-4
http://www.novell.com/communities/node/13126/common-mistakes-newcomers-idm-make-part-5
http://www.novell.com/communities/node/13302/common-mistakes-newcomers-idm-make-part-6
http://www.novell.com/communities/node/13316/common-mistakes-newcomers-idm-make-part-7
http://www.novell.com/communities/node/13347/common-mistakes-newcomers-idm-make-part-8
http://www.novell.com/communities/node/13383/common-mistakes-newcomers-idm-make-part-9
http://www.novell.com/communities/node/13486/common-mistakes-newcomers-idm-make-part-10
http://www.netiq.com/communities/coolsolutions/common-mistakes-newcomers-to-idm-make-part-11/
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Drawing data from multiple eDirectory objects

On Sat, 18 Jan 2014 18:13:55 +0000, allenmorris wrote:

> I hate to be nick-picky, though. You both told it would be easily done,
> without telling me how I could go about do it.


Sorry, this didn't seem like it needed explanation. Many tokens accept a
DN, in which case they work against the specified object instead of the
default current object.

So if you want to know if an object with DN \Foo\Bar\Baz is disabled:

<do-set-local-variable name="logindisabled" scope="policy">
<arg-string>
<token-dest-attr name="Login Disabled">
<arg-dn>
<token-text xml:space="preserve">\Foo\Bar\Baz</token-text>
</arg-dn>
</token-dest-attr>
</arg-string>
</do-set-local-variable>

Or, if you have the DN of the object in an attribute of the object
currently being processed, something like:

<do-set-local-variable name="logindisabled" scope="policy">
<arg-string>
<token-dest-attr name="Login Disabled">
<arg-dn>
<token-op-attr name="other-DN-attribute-name-goes-here"/>
</arg-dn>
</token-dest-attr>
</arg-string>
</do-set-local-variable>

Or any other way you can determine from *this* object (the one you're
currently working on) what *other* object (DN) you need to reference. If
you don't have a DN link, you can use the search token to find other
objects based on data from this object, from which you'll get 0 or
results in a node-set, and you'll have to loop through those to figure
out which one(s) you want.

Then, since this is the DelimText driver, you're just basically making up
operation attributes to include in the current document, which is
eventually passed to the Output Transform XSLT to be turned in to CSV
output.


--
--------------------------------------------------------------------------
David Gersic dgersic_@_niu.edu
Knowledge Partner http://forums.netiq.com

Please post questions in the forums. No support provided via email.
If you find this post helpful, please click on the star below.
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Drawing data from multiple eDirectory objects


Thank you all.

We'll see how it goes.

Allen


--
allenmorris
------------------------------------------------------------------------
allenmorris's Profile: https://forums.netiq.com/member.php?userid=1565
View this thread: https://forums.netiq.com/showthread.php?t=49699

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.