Novell is now a part of Micro Focus

I am writing an NLM to capture certain events...

Articles and Tips: qna

01 Feb 2002


Q.

I am writing an NLM to capture certain events and log the changes. I seem to be getting incorrect event data when an entry is moved. According to the NDK documentation, moving an entry causes a DSE_MOVE_DEST_ENTRY event, specifying the placement of the NDS object into its new location in the tree, then a DSE_MOVE_SOURCE_ENTRY event specifying the deletion of a NDS object from its original location in the tree.

When I examine the DSEEntryInfo2 structure passed in to my callback routine, I would expect the dn fields to refer to the new entry in the first case and the old entry in the second. For example, moving Joe from X to Y, I would expect: DSE_MOVE_DEST_ENTRY with dn of Joe.Y and DSE_MOVE_SOURCE_ENTRY with dn of Joe.X. However, what I am getting is a dn of Joe.Y in both cases. Surely this is a bug, or am I supposed to look at the newDN? I am using Netware 6 with NDS eDirectory 8.6.

A.

You are making a very simple mistake that is easy to do. You were looking at the entryID and converting it using NWDSEGetLocalEntryName. If you look directly at the dn field, it should be as you expect: Joe X.

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates