Highlighted
Anonymous_User Absent Member.
Absent Member.
253 views

How to remove Dirxml-association on PeopleSoft Driver?


I want to remove users dirxml-association when he is terminated in
PeopleSoft HR database. There is attribute in META which indicate
employees status active or teminated. It changes based on his status in
PeopleSoft DB. I want to add a condition to dirver to remove persons
dirxml association when status is temrinated.
Following condition added to command transformation policy on subscriber
channel is not working. Rule is acceptaed and everything works
sucessfully in trace but dirxml-association is not removed. Please
suggest what is missing to make it work.

Remove Peoplesoft Association when status=T

Conditions
if association associated
And if source attribute 'Status' available
And if source attribute 'Status' equal "T"

Actions
remove association (when="after", association
("cn=PeopleSoftxx,cn=Driverset,dc=com#1#" + Association () ) )

TRACE details:
[30/12/12 07:41:46.293]:PeopleSoftxx ST: Evaluating selection
criteria for rule 'Remove Peoplesoft Association when status=T'.
[30/12/12 07:41:46.294]:PeopleSoftxx ST: (if-association
associated) = TRUE.
[30/12/12 07:41:46.294]:PeopleSoftxx ST: (if-src-attr 'Status'
available) = TRUE.
[30/12/12 07:41:46.294]:PeopleSoftxx ST: (if-src-attr 'Status'
equal "Terminated") = TRUE.
[30/12/12 07:41:46.294]:PeopleSoftxx ST: Rule selected.
[30/12/12 07:41:46.294]:PeopleSoftxx ST: Applying rule 'Remove
Peoplesoft Association when status=T'.
[30/12/12 07:41:46.294]:PeopleSoftxx ST: Action:
do-remove-association(when="after",arg-association("cn=PeopleSoftxx,cn=Driverset,dc=com#1#"+token-association())).
[30/12/12 07:41:46.295]:PeopleSoftxx ST:
arg-association("cn=PeopleSoftxx,cn=Driverset,dc=com#1#"+token-association())
[30/12/12 07:41:46.295]:PeopleSoftxx ST:
token-text("cn=PeopleSoftxx,cn=Driverset,dc=com#1#")
[30/12/12 07:41:46.295]:PeopleSoftxx ST: token-association()
[30/12/12 07:41:46.295]:PeopleSoftxx ST: Token Value:
"employeeid".
[30/12/12 07:41:46.295]:PeopleSoftxx ST: Arg Value:
"cn=PeopleSoftxx,cn=Driverset,dc=com#1#employeeid".
[30/12/12 07:41:46.296]:PeopleSoftxx ST:Policy returned:
[30/12/12 07:41:46.296]:PeopleSoftxx ST:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Standard" version="4.0.2.0">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<modify class-name="User" dest-dn="DN" dest-entry-id="dest-entry-id"
event-id="<snip>" from-merge="true" src-dn="employeeid">
<association>employeeid</association>
</modify>
<remove-association
event-id="<snip>">cn=PeopleSoftxx,cn=Driverset,dc=com#1#employeeid</remove-association>
</input>
</nds>
[30/12/12 07:41:46.297]:PeopleSoftxx ST:Filtering out notification-only
attributes.
[30/12/12 07:41:46.297]:PeopleSoftxx ST: Filtered out <modify
class-name='User'>.
[30/12/12 07:41:46.297]:PeopleSoftxx ST:Pumping XDS to eDirectory.
[30/12/12 07:41:46.297]:PeopleSoftxx ST:Performing operation
remove-association for .
[30/12/12 07:41:46.298]:PeopleSoftxx ST:
DirXML Log Event -------------------
Driver: PeopleSoftxx
Channel: Subscriber
Object: DN
Status: Success


--
sureshwshinde
------------------------------------------------------------------------
sureshwshinde's Profile: https://forums.netiq.com/member.php?userid=4352
View this thread: https://forums.netiq.com/showthread.php?t=46819

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

Re: How to remove Dirxml-association on PeopleSoft Driver?

sureshwshinde wrote:

> Conditions
> if association associated
> And if source attribute 'Status' available
> And if source attribute 'Status' equal "T"
>
> Actions
> remove association (when="after", association
> ("cn=PeopleSoftxx,cn=Driverset,dc=com#1#" + Association () ) )


Try:

<do-remove-association direct="true">
<arg-association>
<token-association/>
</arg-association>
</do-remove-association>
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: How to remove Dirxml-association on PeopleSoft Driver?


Thanks for your response. Changed it to direct="true". It did not help.
Peoplesoft association is still there on object in META. Anyother
option?

Remove Peoplesoft Association when status=T
Conditions
if association associated
And if source attribute 'Status' available
And if source attribute 'Status' equal "T"
Actions
remove association (direct="true", association
("cn=PeopleSoftxx,cn=Driverset,dc=com#1#" + Association () ) )

Thanks,


--
sureshwshinde
------------------------------------------------------------------------
sureshwshinde's Profile: https://forums.netiq.com/member.php?userid=4352
View this thread: https://forums.netiq.com/showthread.php?t=46819

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: How to remove Dirxml-association on PeopleSoft Driver?

sureshwshinde wrote:

> Thanks for your response. Changed it to direct="true". It did not help.


Did you try the full code I posted? Your association value is incorrect: you
set it to the LDAP representation of the DirXML-Associations attr including
driver DN, but it needs to be only the association *value* component (as you
see it in the current operation in the ./association/text() node.) Remove the
"cn=PeopleSoftxx,cn=Driverset,dc=com#1#" part and it shoud start working.

Good luck, Lothar
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: How to remove Dirxml-association on PeopleSoft Driver?


Yes, now I did try the full code you posted. It did not work. Not sure
what is going wrong.
Earlier when I started to write this policy I did not include the Driver
DN, it was not working. I tested this same policy in subscriber and
publisher channel it did not work on any of these palces. Of course I
kept the policy active only @ one place either subscriber or publisher.

Thanks


--
sureshwshinde
------------------------------------------------------------------------
sureshwshinde's Profile: https://forums.netiq.com/member.php?userid=4352
View this thread: https://forums.netiq.com/showthread.php?t=46819

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: How to remove Dirxml-association on PeopleSoft Driver?

sureshwshinde wrote:

> It did not work. Not sure
> what is going wrong.


Then set trace level to 3 and you'll see what's going on. Post the trace if you
want additional feedback
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: How to remove Dirxml-association on PeopleSoft Driver?

Lothar Haeger wrote:

> Then set trace level to 3 and you'll see what's going on.


Btw. http://www.novell.com/communities/node/5681 might help getting started
with traces...
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: How to remove Dirxml-association on PeopleSoft Driver?


Sorry for the delay in response. I am using following in command
Transformation Policy of Subscriber channel.

<actions>
<do-remove-association direct="true">
<arg-association>
<token-association/>
</arg-association>
</do-remove-association>
</actions>


=== Trace @ level 3 ===

[03/01/13 07:49:14.858]:PeopleSoftxx ST: (if-dest-attr 'Status'
equal "Terminate") = TRUE.
[03/01/13 07:49:14.858]:PeopleSoftxx ST: Rule selected.
[03/01/13 07:49:14.858]:PeopleSoftxx ST: Applying rule 'Remove
association when Status=Terminate'.
[03/01/13 07:49:14.858]:PeopleSoftxx ST: Action:
do-remove-association(direct="true",arg-association(token-association())).
[03/01/13 07:49:14.858]:PeopleSoftxx ST:
arg-association(token-association())
[03/01/13 07:49:14.859]:PeopleSoftxx ST: token-association()
[03/01/13 07:49:14.859]:PeopleSoftxx ST: Token Value:
"employeeid".
[03/01/13 07:49:14.859]:PeopleSoftxx ST: Arg Value:
"employeeid".
[03/01/13 07:49:14.859]:PeopleSoftxx ST: Direct command from policy
[03/01/13 07:49:14.859]:PeopleSoftxx ST:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Standard" version="4.0.2.0">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<remove-association
event-id="HOST_META#20130301124913#4#1:<snip>">employeeid</remove-association>
</input>
</nds>
[03/01/13 07:49:14.860]:PeopleSoftxx ST: Pumping XDS to eDirectory.
[03/01/13 07:49:14.860]:PeopleSoftxx ST: Performing operation
remove-association for .
[03/01/13 07:49:14.866]:PeopleSoftxx ST: Processing returned document.
[03/01/13 07:49:14.866]:PeopleSoftxx ST: Processing operation <status>
for .
[03/01/13 07:49:14.866]:PeopleSoftxx ST:
DirXML Log Event -------------------
Driver: \COMPANYMETA\com\company\DriverSet\userSoftxx
Channel: Subscriber
Object: \COMPANYMETA\com\company\user\uid
Status: Success
[03/01/13 07:49:14.866]:userSoftxx ST: Direct command from policy
result
[03/01/13 07:49:14.867]:userSoftxx ST:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Standard" version="4.0.2.0">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<status event-id="HOST_META#20130301124913#4#1:<snip>"
level="success"><application>DirXML</application>
<module>userSoftxx</module>
<object-dn>COMPANYMETA\com\company\user\uid</object-dn>
<component>Subscriber</component>
</status>
</output>
</nds>
[03/01/13 07:49:14.867]:PeopleSoftxx ST:Policy returned:

=== Trace @ Level 3 ===

It did not work. I still see PeopleSoft dirxml-association on user's
META profile.

Thanks
Suresh


--
sureshwshinde
------------------------------------------------------------------------
sureshwshinde's Profile: https://forums.netiq.com/member.php?userid=4352
View this thread: https://forums.netiq.com/showthread.php?t=46819

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: How to remove Dirxml-association on PeopleSoft Driver?

On Fri, 01 Mar 2013 13:34:02 +0000, sureshwshinde wrote:

> Sorry for the delay in response. I am using following in command
> Transformation Policy of Subscriber channel.


Post the entire trace, using pastebin.com or susepaste.org so we can see
the whole thing.


> <actions>
> <do-remove-association direct="true">
> <arg-association>
> <token-association/>
> </arg-association>
> </do-remove-association>
> </actions>


This looks ok to me. I don't usually bother with "direct", though, just:

<do-remove-association>
<arg-association>
<token-association/>
</arg-association>
</do-remove-association>


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

Please post questions in the forums. No support provided via email.

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.