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.
iammi Absent Member.
Absent Member.
276 views

How to know that dirxml operation has succeeded


Hello,

I am creating/modifying users in Active directory, I wonder how to know
the current operation has succeded

Because the document is processed and sent to the remote loader , so
how and where (in the subscriber) to catch the result of the operation
(sent to the remote loader) if success or fail ?

Regards


--
iammi
------------------------------------------------------------------------
iammi's Profile: http://forums.novell.com/member.php?userid=71308
View this thread: http://forums.novell.com/showthread.php?t=450100

Labels (1)
0 Likes
1 Reply
Knowledge Partner
Knowledge Partner

Re: How to know that dirxml operation has succeeded

On 12/29/2011 9:36 AM, iammi wrote:
>
> Hello,
>
> I am creating/modifying users in Active directory, I wonder how to know
> the current operation has succeded
>
> Because the document is processed and sent to the remote loader , so
> how and where (in the subscriber) to catch the result of the operation
> (sent to the remote loader) if success or fail ?


The Sub channel submits a <modify> or <add> event.

The shim processes and returns a <status> with a level='success' or
='error'

So if operation = status
if XML attribute = success (or error or warning, or whatever you want).

Alas, the info of which user is NOT in the <status> event.

So what you should do is add some operation properties in your
Sub-Command.
Add op prop src-dn with the Source DN.
Add op prop event with the Operation
Add op prop dest-dn with the Destination Dn
And whatever else makes sense.

The engine will remove the op-props as it gets submitted to the shim.
Then it tracks the event and puts the op props back on the <status> event.

Then you can test If Op Property named event is add, or whatever you want.

We usually use this approach to send emails of errors. The Op data
gives us enough info to report usefully.

PS: The op props are stored in the <operation-data> node as XML
attributes. So you might see a node that looks like this below:
<operation-data src-dn="\o\ou\geoffc" event="add"
dest-dn="cn=geoffc,dc=acme,dc=com"/>

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.