In regard to: pam_krb5 problems on Solaris 8 (repost sans MIME), Graham...:

>gcc -o pam_krb5.so.1 -G pam_krb5_auth.o pam_krb5_pass.o pam_krb5_acct.o
>pam_krb5_sess.o support.o -lpam -lnsl -lsocket -L/usr/local/lib -lkrb5
>-lk5crypto -lcom_err

>Sep 12 22:06:56 monster login: [ID 487707 auth.error] load_modules: can not open 
>module /usr/lib/security/pam_krb5.so.1


This is likely happening because pam_krb5.so.1 that you compiled depends on
symbols in the krb5 libraries, but those libraries may not be in
your loader's default search path.  You can verify this by running

        ldd /usr/lib/security/pam_krb5.so.1

and seeing if there are any libraries that are not found.  If so, that's
the problem.

You would fix it by either building the pam_krb5.so.1 with a runtime loader
path (an rpath or DT_RPATH) that augments where the loader searches for needed
shared objects or by just augmenting the runtime loader's search path in
general (for all dynamic objects).

For building pam_krb5.so.1 with a special DT_RPATH, look at the man pages
for `ld' (especially the `-R' option and the LD_RUN_PATH env var).  You can
examine the DT_RPATH in a shared object via `dump -Lv'.

For augmenting the system-wide runtime loader paths, look at the man page
for `crle'.

Tim
-- 
Tim Mooney                              [EMAIL PROTECTED]
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

Reply via email to