3 Replies Latest reply: Nov 20, 2012 9:04 AM by user243865 RSS

    Unable to set up a linux resource under red Hat Linux resource type

    840867
      We have a requirement to add a new linux(Red Hat) resource on IdM. Since, the requirment of adding Linux server is for the first time, I have added the Linux resource adapter(by cheking the Red Hat linux resource under "Resources->Configure type" tab) by using the steps mentioned in the below document:

      http://docs.oracle.com/cd/E19225-01/820-6551/giiti/index.html

      But I'm not sure where the class com.waveset.adapter.RedHatLinuxResourceAdapter is located or we have to add this class file.

      After adding the resource , the test connection action is giving me the below error. (We are not the root users.)

      Test connection failed for resource:
      Script failed waiting for "/ome/syidmadm" in response "Last login: Tue Nov 20 00:40:48 2012 from nmidmappdev1.nmg




 HOST: nmosrchdev2
 ... GRID: MyGrid
 RACK: MyRack
 RACKTYPE: SHARK



[1]	15900
$ "
==> Script processor timed out with nothing to read and the following unprocessed text: "Last login: Tue Nov 20 00:40:48 2012 from nmidmappdev1.nmg




 HOST: nmosrchdev2
 MACHINE: x86_64
 SYSTEM: Red Hat Enterprise Linux Server release 5.8 (Tikanga)
 S/N: VMware-42
 CPUs: 4 x Intel(R) Xeon(R) CPU X5650@ 2.67GHz
 DISK: 36 GB
 MEMORY: 8 GB
 GRID: MyGrid
 RACK: MyRack
 RACKTYPE: SHARK



[1]	15900
$ ".

      Is there anything else that needs to be done while configuring an adapter such as intalling .jar files etc?

      Is it possible to know what happens when Identity Manager tries to connect to the external resources via adapters? Tracing the adpters also did give any information on this.
        • 1. Re: Unable to set up a linux resource under red Hat Linux resource type
          user243865
          The class should already be at the right place with the distribution and deploy, as specified in the doc you linked.

          We don't have any Linux system our self (under IdM control).

          You can enable tracing to see if the adapter is being used, as specified last in the doc you linked.

          Be sure to check that all requirements are met from the doc.

          Test to login from server to the account with the method used by the adapter from the IdM server.
          • 2. Re: Unable to set up a linux resource under red Hat Linux resource type
            840867
            Hi,

            Ideally the resource adapter class should be present on WSHome/WEB-INF/com/waveset/adapter location.
            But I don't find any of them. I have also added the class name under "Waveset.properties" file. But nothing seems to work.

            I have included the red hat Linux adapter Class under "Show Trace list"(making the log level to 4). But the log file did not give any information on why test connection is erroring out.

            I dint not get your last point:
            Test to login from server to the account with the method used by the adapter from the IdM server.
            • 3. Re: Unable to set up a linux resource under red Hat Linux resource type
              user243865
              Well, the documentation clearly states no further install needed, that would mean that it is there to me...
              But I will check my own, we don't use Linux as stated...


              My last statement basically ment that if one has trouble with adapters talking to hosts from IdM one can ALWAYS try to do what the IdM is supposed to to manually, in Linux case, try to telnet/ssh from IdM server to the host in question and see if that works.


              Nope, it's nowhere in my own install either....

              on the 8.1 DVD.... in the idm.war file i find some references...

              909 Tue Feb 24 00:10:46 CET 2009 applet/images/Linux.gif
              973 Tue Feb 24 00:10:48 CET 2009 applet/images/Red_Hat_Linux.gif
              0 Tue Feb 24 00:10:54 CET 2009 bin/linux/
              17187 Tue Feb 24 00:10:54 CET 2009 bin/linux/libjdic.so
              83140 Tue Feb 24 00:10:54 CET 2009 bin/linux/mozembed-linux-gtk2
              10086 Tue Feb 24 00:10:50 CET 2009 sample/forms/RedHatLinuxUserForm.xml
              6366 Tue Feb 24 00:10:48 CET 2009 sample/forms/RedHatLinuxgroupcreate.xml
              6118 Tue Feb 24 00:10:42 CET 2009 sample/forms/RedHatLinuxgroupupdate.xml
              10353 Tue Feb 24 00:10:40 CET 2009 sample/forms/SUSELinuxUserForm.xml
              6396 Tue Feb 24 00:10:48 CET 2009 sample/forms/SUSELinuxgroupcreate.xml
              6155 Tue Feb 24 00:10:42 CET 2009 sample/forms/SUSELinuxgroupupdate.xml
              2711 Tue Feb 24 00:10:38 CET 2009 sample/other/sudoers.linux

              which indicates that the rest is somewhere in there to
              probably tucked away in some jar that doesn't install by default...

              found it in idmadapter.jar

              s44569@uz2a021c$ jar -tvf idmadapter.jar |grep inux
              3981 Mon Aug 29 10:44:20 CEST 2011 com/waveset/adapter/LinuxResourceAdapter$AcctIter.class
              9586 Mon Aug 29 10:44:20 CEST 2011 com/waveset/adapter/LinuxResourceAdapter$BlockAcctIter.class
              9414 Mon Aug 29 10:44:20 CEST 2011 com/waveset/adapter/LinuxResourceAdapter$LinuxAccountSupplier.class
              61477 Mon Aug 29 10:44:20 CEST 2011 com/waveset/adapter/LinuxResourceAdapter.class
              2998 Mon Aug 29 10:44:20 CEST 2011 com/waveset/adapter/RedHatLinuxResourceAdapter.class
              2652 Mon Aug 29 10:44:20 CEST 2011 com/waveset/adapter/SUSELinuxResourceAdapter.class

              this is located under $WSHOME/WEB-INF/lib/