Novell is now a part of Micro Focus

I have a problem with authentication using the...

Articles and Tips: qna

01 Oct 2001


Q.

I have a problem with authentication using the JNDI interface into eDirectory. I am using Novell's service provider, njclc_all.exe, downloaded for http://developer.novell.com. I need to provide a pure JNDI focused solution. Our client will not permit the use C code from the Novell API.

We have made a lot of progress but cannot get around the issue of the following repeated error message:

Exception in thread "main" java.lang.UnsatisfiedLinkError: 
C:\Novell\Java\njclv2r\Bin\jncpv2r.dll: Can't find dependent libraries 
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at com.novell.service.session.xplat.Natives.<clinit>(Natives.java:217)
at 
com.novell.service.session.xplat.XplatUtil$RequesterConnection
SearchEnumerator.doScanWork(XplatUtil.java:3568)
at
com.novell.service.session.xplat.XplatUtil$RequesterConnection
SearchEnumerator.nextElement(XplatUtil.java:3611)..

I have been trying to resolve this problem for a couple of days. All the suggested solutions appear to center on locating the jncpv2r.dll or netwin32.dll at one of several Path locations. We've tried them all!

Any help you can give us will be gratefully accepted.

A.

If you use the Sun JNDI for LDAP provider, you can access eDirectory via LDAP without need for Novell client files. The core functionality comes from Sun. Novell provides additional functionality in LDAP Extensions and Controls for JNDI SDK. You don't need any NetWare client files for this.

If you need more than directory functionality, you can use the NJCLC. Questions and problems about using NJCLC should be posted to the novell.devsup.njcl forum please. It sounds like you need to be using RMI if you want to run without client DDLs. If you are running in non-RMI mode you need the dlls and you may have a mismatch. This is discussed in the readme at: http://developer.novell.com/ndk/readme/njclc.txt

* 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