[OpenAFS-devel] pam_afs.so in 64 bit version for sparcv9?

Charles Clancy mgrtcc@cs.rose-hulman.edu
Mon, 23 Jul 2001 17:13:43 -0500


> Thanks again, that worked. Unfortunately I'm getting the same 
> error message 
> when trying to use the module :-(

Alright -- this one isn't missing symbols:
/afs/cs.rose-hulman.edu/openafs/source/openafs-1.1.1/sun4x_58/dest/lib/s
parcv9/pam_afs.so.1

To make this work, I compiled libdes, libafsrpc, libafsauthent, and
libcom_err with the -xarch=64 option, and then changed the following
lines in src/pam/Makefile:
AFSLIBS = ${LIBDIR}libafsauthent.a ${LIBDIR}libafsrpc.a
${LIBDIR}libdes.a \
          ${LIBDIR}libcom_err.a
   LIBS = ${AFSLIBS} ${PAMLIBS} -lresolv

However, I can't get it to authenticate.  I wrote a simple PAM
application that does authentication and account management.  The
pam_test that comes with OpenAFS doesn't seem to prompt for a
password...

With this in /etc/pam.conf:
afstest         auth    required
/usr/lib/security/$ISA/pam_afs.so.1
afstest         account required
/usr/lib/security/$ISA/pam_afs.so.1

/usr/lib/security/pam_afs.so.1 = OpenAFS 1.0.4 precompiled 32-bit
/usr/lib/security/sparcv9/pam_afs.so.1 = OpenAFS 1.1.1 selfcompiled
64-bit

Running:
$ ./pwauth-32
Username: mgrtcc
Password: (password)
Success

$ ./pwauth-64
Username: mgrtcc
Password: (password)
Failed

And I see the following in syslog:
Jul 23 16:58:48 voodoo pwauth-64[9105]: [ID 427203 user.debug]
pam_authenticate: error Authentication failed

It works fine with the OpenAFS 1.0.4 pam_afs.so.1, but not with the
OpenAFS 1.1.1 sparcv9/pam_afs.so.1.  I'm still running the OpenAFS 1.0.4
client on this system, so I don't know if it's related to the kernel
module version.  I shouldn't think so.  I know I used pam_afs.so.1 from
AFS 3.4a on both 3.4a and 3.5 systems in the past.
_________________________________________
Charles Clancy, mgrtcc@cs.rose-hulman.edu
sysadmin emeritus - RHIT Computer Science