Anonymous_User Absent Member.
Absent Member.
310 views

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 8.8.5.3 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 8.8.5.3
Novell, and Client.

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

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

NWDSGenerateKeyPairEx - Length6
Called

NWDSGenerateKeyPairEx - Length31
NWDSGenerateKeyPairEx returns:0

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

NWDSGenerateKeyPairEx - Length6
Called

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
------------------------------------------------------------------------
spdillon's Profile: http://forums.novell.com/member.php?userid=118679
View this thread: http://forums.novell.com/showthread.php?t=447718

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