Novell Home

TID101232 (INLSR4) - Getting Intermittent Errors From NLS APIs When Called From An NLM

From Developer Community

ABSTRACT:

Developers have reported occasional and intermittent errors when using Novell Licensing Services (NLS) APIs from an NLM. Among them are the following:

NLSInstallCertificate() is returning 0xC000100E; LS_BAD_ARG. NLSInstalled() is returning 0xC0001000B; LS_BAD_INDEX (when the index is 0) the second time after execution. If NLS.NLM is unloaded and loaded it works correctly again for one execution.

DETAILED DESCRIPTION

The problems were a result of the underlying NLM connection not having sufficient NDS rights. If you are going to write an NLM and use any NLS APIs you need to do an NWDSLogin() and NWDSAuthenticate() to establish identity. The example code LSAPIDM on the SDK has been corrected to perform an NWDSLogin() and NWDSAuthenticate() when running as an NLM.

inlsr4.exe

inlsr4.exe20.4 K2005-04-06

--Benjamin Fjeldsted

Novell® Making IT Work As One

© 2009 Novell, Inc. All Rights Reserved.