8. Solaris 2.7 Client

Attempt to get mir.csu.umist.ac.uk, Solaris 2.7, working as an authentication client for RedHat 7.2 OpenLDAP server.

8.1. Initial Investigation

8.2. Library Compilation

8.3. Configuration

 ldapsearch -h 130.88.100.87 -p389 -s sub -b "o=talbycsuumist,c=gb" "uid=si4"
works fine.

8.4. Debugging and Library Jiggery-Pokery

Neither finger and telnet work; trussed finger and found that a call to /usr/lib/liblber.so.2 fails; and

    ldd nss_ldap.so
produces
    libldap.so.2 =>  /usr/lib/libldap.so.2
    liblber.so.2 =>  (file not found)
    ...
    ...
so
    ln -s /usr/local/lib/liblber.so.2.0.15 liblber.so.2
and then nothing works! Finger bus-faults; all logins fail. Oh shit! Library conflicts...

Solved it! Here it is the library configuration for Solaris 2.7:

One needs to do a certain about of jiggery-pokery with the .sos and their links. In particular, notice the difference between libldap.so.2 and libldap.so.3: the former is and OpenLDAP library; the latter is Sun's (Solaris 2.7) library --- some apps and utils like one, some the other.

All this was found by trussing finger.

 	
  ls -l /lib/*ldap*

      32 Jun 11 13:30 /lib/libldap.so.2 -> /usr/local/lib/libldap.so.2.0.15
  214540 Sep  1  1998 /lib/libldap.so.3
    9927 Sep  1  1998 /lib/llib-lldap
      18 May  8 11:44 /lib/nss_ldap.so -> /lib/nss_ldap.so.1
  813496 May  8 11:44 /lib/nss_ldap.so.1


  ls -l /usr/lib/*ldap*

      32 Jun 11 13:30 /usr/lib/libldap.so.2 -> /usr/local/lib/libldap.so.2.0.15
  214540 Sep  1  1998 /usr/lib/libldap.so.3
    9927 Sep  1  1998 /usr/lib/llib-lldap
      18 May  8 11:44 /usr/lib/nss_ldap.so -> /lib/nss_ldap.so.1
  813496 May  8 11:44 /usr/lib/nss_ldap.so.1


 ls -l /usr/lib/*lber*

      32 Jun 11 13:31 /usr/lib/liblber.so.2 -> /usr/local/lib/liblber.so.2.0.15


 ls -l /usr/local/lib/*ldap*

    2054984 May  8 11:19 /usr/local/lib/libldap.a
        712 May  8 11:19 /usr/local/lib/libldap.la
         17 May  8 11:19 /usr/local/lib/libldap.so -> libldap.so.2.0.15
         17 May  8 11:19 /usr/local/lib/libldap.so.2 -> libldap.so.2.0.15
    2001560 May  8 11:19 /usr/local/lib/libldap.so.2.0.15
    2132132 May  8 11:19 /usr/local/lib/libldap_r.a
        724 May  8 11:19 /usr/local/lib/libldap_r.la
         19 May  8 11:19 /usr/local/lib/libldap_r.so -> libldap_r.so.2.0.15
         19 May  8 11:19 /usr/local/lib/libldap_r.so.2 -> libldap_r.so.2.0.15
    2071636 May  8 11:19 /usr/local/lib/libldap_r.so.2.0.15

...previousup (conts)next...



About this document:

Produced from the SGML: /home/isd/public_html/_ldap_authentication/_reml_grp/index.reml
On: 5/7/2004 at 13:33:51
Options: reml2 -i noindex -l long -o html -p multiple