Highlighted
Absent Member.
Absent Member.
352 views

running dxcmd without ldap, idm installation


Hi,
I am trying to run dxcmd and ldapsearch utilities from a box that does
not have eDirectory/IDM installed.
I created a NFS share from one of my VMs and shared the /opt/novell and
/var/opt/novell directories. ldapsearch seems to work from this box
after setting ndspath.
However, dxcmd fails with the following error whenever I try logging
in...


Enter user name: *************
Enter user's password:
java.lang.Error: Unable to initialize DClient
at novell.jclient.JClient.initializeDclient(Native Method)
at novell.jclient.JClient.initialize(JClient.java:906)
at
com.novell.nds.dirxml.util.DxCommand.commandLine(DxCommand.java:417)
at
com.novell.nds.dirxml.util.DxCommand.main(DxCommand.java:389)


Is it possible to run dxcmd this way? If I make this work some way, what
am I risking ..??
Any help/clues appreciated!

Thanks!!


--
varunece
------------------------------------------------------------------------
varunece's Profile: https://forums.netiq.com/member.php?userid=3140
View this thread: https://forums.netiq.com/showthread.php?t=46943

Labels (1)
0 Likes
7 Replies
Highlighted
Absent Member.
Absent Member.

Re: running dxcmd without ldap, idm installation

On 2/25/13 9:04 AM, varunece wrote:
>
> Hi,
> I am trying to run dxcmd and ldapsearch utilities from a box that does
> not have eDirectory/IDM installed.
> I created a NFS share from one of my VMs and shared the /opt/novell and
> /var/opt/novell directories. ldapsearch seems to work from this box
> after setting ndspath.
> However, dxcmd fails with the following error whenever I try logging
> in...
>
>
> Enter user name: *************
> Enter user's password:
> java.lang.Error: Unable to initialize DClient
> at novell.jclient.JClient.initializeDclient(Native Method)
> at novell.jclient.JClient.initialize(JClient.java:906)
> at
> com.novell.nds.dirxml.util.DxCommand.commandLine(DxCommand.java:417)
> at
> com.novell.nds.dirxml.util.DxCommand.main(DxCommand.java:389)
>
>
> Is it possible to run dxcmd this way? If I make this work some way, what
> am I risking ..??
> Any help/clues appreciated!
>
> Thanks!!
>
>


You need NICI installed and the dclient shared library in the library
path in order to run dxcmd.

--
Shon
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: running dxcmd without ldap, idm installation


Thanks!! I almost guessed the nici part but am not sure where I can find
the dclient shared library ?
Also, should I set in PATH / CLASSPATH?


--
varunece
------------------------------------------------------------------------
varunece's Profile: https://forums.netiq.com/member.php?userid=3140
View this thread: https://forums.netiq.com/showthread.php?t=46943

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: running dxcmd without ldap, idm installation

On 2/25/13 9:44 AM, varunece wrote:
>
> Thanks!! I almost guessed the nici part but am not sure where I can find
> the dclient shared library ?


It's actually libJClient.so and it's in /opt/novell/eDirectory/lib or
lib64 depending on your architecture.

> Also, should I set in PATH / CLASSPATH?
>
>


LD_LIBRARY_PATH


I'm assuming you're on Linux

--
Shon
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: running dxcmd without ldap, idm installation


Hi,
Thanks!
I installed the nici rpm on this system and I also set the
LD_LIBRARY_PATH (tried export to /opt/novell/eDirectory/lib/jclnt ,
/opt/novell/eDirectory/lib,
/opt/novell/eDirectory/lib/jclnt/libJClient.so.0.0.0).. but none
worked.
I did an ldconfig .. but that didnt help either..
What am i missing??

Also, it seems that the methods shown in the error are part of the
dirxml jars. (dirxml_misc.jar, dirxml.jar) Could they be missing?


--
varunece
------------------------------------------------------------------------
varunece's Profile: https://forums.netiq.com/member.php?userid=3140
View this thread: https://forums.netiq.com/showthread.php?t=46943

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: running dxcmd without ldap, idm installation

On 2/25/13 1:34 PM, varunece wrote:
>
> Hi,
> Thanks!
> I installed the nici rpm on this system and I also set the
> LD_LIBRARY_PATH (tried export to /opt/novell/eDirectory/lib/jclnt ,
> /opt/novell/eDirectory/lib,
> /opt/novell/eDirectory/lib/jclnt/libJClient.so.0.0.0).. but none
> worked.
> I did an ldconfig .. but that didnt help either..
> What am i missing??
>
> Also, it seems that the methods shown in the error are part of the
> dirxml jars. (dirxml_misc.jar, dirxml.jar) Could they be missing?
>
>


I don't have IDM set up anywhere that I could play with it to figure out
exactly what you are missing, but you should just need to do something like:

export LD_LIBRARY_PATH="/opt/novell/eDirectory/lib:$LD_LIBRARY_PATH"

The methods shown in the stack trace definitely aren't missing or they
wouldn't be in the stack trace.

Also you need to make sure you aren't mixing architectures, so if you
are trying to run on a 64-bit machine, make sure you have the 32 bit
nici installed since the remote machine has 32 bit eDir/IDM.

If you still can't get it to work, you might want to Google LD_DEBUG,
which is an environment variable you can set to tell the loader to spit
out information about what it is trying to load.

--
Shon
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: running dxcmd without ldap, idm installation

On 2/25/13 3:38 PM, Shon Vella wrote:
> export LD_LIBRARY_PATH="/opt/novell/eDirectory/lib:$LD_LIBRARY_PATH"


And of course you are going to want to replace
/opt/novell/eDirectory/lib with whatever the NFS mounted path of that
directory is.

--
Shon
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: running dxcmd without ldap, idm installation


Finally solved the prob.. Thanks 2 u Father!.. so here's what happened:
Coz I couldnt solve the prob yesterday, I opened my edir setup today and
tried installing the jclnt rpm which gave me a dependency on nici rpm
version 2.7.X. I checked my own edir installation and the version of
nici I had installed was 2.6.X .. i removed my current installation and
installed nici v2.7 and boom! 🙂
Thanks again for your help!


--
varunece
------------------------------------------------------------------------
varunece's Profile: https://forums.netiq.com/member.php?userid=3140
View this thread: https://forums.netiq.com/showthread.php?t=46943

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.