Anonymous_User Absent Member.
Absent Member.

NDK - CAPI NWDSGenerateKeyPairEx

I have a Password Reset Tool to reset passwords.

The Novell code works perfectly from start to finish on a 2003 Server
using Novell, and Novell Client.
I have an Executable to test the Reset, as well as a DLL to test the
Reset. (Running exactly the same code.)
I have another test being ran on a Netware Server 6.1 and using
Novell, and Client.

However, the Executable runs through and changes the password.
The DLL doesn't, it fails on the ModifyObject. (The code is

This is from the Executable:
NWDSModifyObject - Length26
NWDSModifyObject returns:0

NWDSGenerateKeyPairEx - Length6

NWDSGenerateKeyPairEx - Length31
NWDSGenerateKeyPairEx returns:0

DLL gets this:
NWDSModifyObject - Length29
NWDSModifyObject returns:-672

NWDSGenerateKeyPairEx - Length6

NWDSGenerateKeyPairEx - Length35
NWDSGenerateKeyPairEx returns:34952

I know the -672 can be a few possibilities. Esp. No enough permissions.
However, the Exe has no problem executing, and the DLL fails.

However, like stated above it's using exactly same code. What would be
causing different outputs?

Please let me know if more information is needed.

spdillon's Profile:
View this thread:

Labels (1)
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.