[OpenAFS-devel] OpenAFS 1.2.5 - build of pam_afs.krb.so (krb4) is still broken

Rudolph T Maceyko rtm@cert.org
Tue, 11 Jun 2002 13:21:21 -0400


--==========1810789384==========
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

The attached patch didn't make it into the 1.2.4 or 1.2.5 releases, but 
it is still needed.

Without this patch, using pam_afs.krb.so results in $KRBTKFILE being 
set to /tmp/tkt0 for every user.

All I did to make the original patch work for 1.2.5 was remove a chunk 
of the Makefile.in patch that had alread been applied.

I've used the patch on Red Hat Linux 7.2 (x86) and am currently 
building for 7.3.

-Rudy
--==========1810789384==========
Content-Type: text/plain; charset=iso-8859-1;
 name="openafs-1.2.5-pam_afs.krb.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="openafs-1.2.5-pam_afs.krb.patch";
 size=4619

*** openafs-1.2.3-org/src/pam/Makefile.in	Mon Feb 18 13:55:18 2002
--- openafs-1.2.3/src/pam/Makefile.in	Mon Feb 18 14:06:04 2002
***************
*** 38,49 ****
  LDFLAGS =3D ${SHARE_LDFLAGS}
     LIBS =3D ${TOP_LIBDIR}/libkauth.a ${LIBSA} ${TOP_LIBDIR}/libauth.a =
\
  	  ${AFSLIBS} ${PAMLIBS} @LIB_AFSDB@
    KLIBS =3D ${TOP_LIBDIR}/libkauth.krb.a ${LIBSA} =
${TOP_LIBDIR}/libauth.krb.a \
  	  ${AFSLIBS} ${PAMLIBS} @LIB_AFSDB@
!  SHOBJS =3D afs_auth.o afs_account.o afs_session.o afs_password.o \
! 	  afs_pam_msg.o afs_message.o afs_util.o =
AFS_component_version_number.o
     OBJS =3D $(SHOBJS) test_pam.o
  INCLUDES=3D-I${TOP_SRCDIR}/config -I${TOP_INCDIR} \
  	-I/usr/include -I/usr/include/sys
  CFLAGS =3D  ${DEBUG} ${INCLUDES} ${PAM_CFLAGS}
 =20
--- 38,49 ----
  LDFLAGS =3D ${SHARE_LDFLAGS}
     LIBS =3D ${TOP_LIBDIR}/libkauth.a ${LIBSA} ${TOP_LIBDIR}/libauth.a =
\
  	  ${AFSLIBS} ${PAMLIBS} @LIB_AFSDB@
    KLIBS =3D ${TOP_LIBDIR}/libkauth.krb.a ${LIBSA} =
${TOP_LIBDIR}/libauth.krb.a \
  	  ${AFSLIBS} ${PAMLIBS} @LIB_AFSDB@
!  SHOBJS =3D afs_account.o afs_session.o afs_password.o \
! 	  afs_pam_msg.o afs_message.o AFS_component_version_number.o
     OBJS =3D $(SHOBJS) test_pam.o
  INCLUDES=3D-I${TOP_SRCDIR}/config -I${TOP_INCDIR} \
  	-I/usr/include -I/usr/include/sys
  CFLAGS =3D  ${DEBUG} ${INCLUDES} ${PAM_CFLAGS}
 =20
***************
*** 53,92 ****
  	${CC} ${CFLAGS} -c afs_setcred.c -o afs_setcred.o
 =20
  afs_setcred_krb.o: afs_setcred.c afs_pam_msg.h afs_message.h =
afs_util.h
  	${CC} ${CFLAGS} -DAFS_KERBEROS_ENV -c afs_setcred.c -o =
afs_setcred_krb.o
 =20
! pam_afs.so.1: $(SHOBJS) afs_setcred.o
  	set -x; \
  	case "$(SYS_NAME)" in \
  	hp_ux*) \
! 		$(LD) $(LDFLAGS) -c mapfile.hp -o $@ afs_setcred.o \
  			$(SHOBJS) $(LIBS) ;; \
  	sun*_5*) \
! 		$(LD) $(LDFLAGS) -M mapfile -o $@ afs_setcred.o \
  			$(SHOBJS) $(LIBS) ;; \
  	*linux*) \
! 		$(CC) $(LDFLAGS) -o $@ afs_setcred.o $(SHOBJS) $(LIBS) ;;\
  	*fbsd*) \
! 		$(CC) $(LDFLAGS) -o $@ afs_setcred.o $(SHOBJS) $(LIBS) ;;\
  	* ) \
  		echo No link line for system $(SYS_NAME). ;; \
  	esac
 =20
! pam_afs.krb.so.1: $(SHOBJS) afs_setcred_krb.o
  	set -x; \
  	case "$(SYS_NAME)" in \
  	hp_ux*) \
  		$(LD) $(LDFLAGS) -c mapfile.hp -o $@ \
! 			afs_setcred_krb.o $(SHOBJS) $(LDFLAGS) $(KLIBS) ;; \
  	sun*_5*) \
  		$(LD) $(LDFLAGS) -M mapfile -o $@ \
! 			afs_setcred_krb.o $(SHOBJS) $(LDFLAGS) $(KLIBS) ;; \
  	*linux*) \
! 		$(CC) $(LDFLAGS) -o $@ afs_setcred_krb.o $(SHOBJS) $(KLIBS) ;;\
  	*fbsd*) \
! 		$(CC) $(LDFLAGS) -o $@ afs_setcred_krb.o $(SHOBJS) $(KLIBS) ;;\
  	* ) \
  		echo No link line for system $(SYS_NAME). ;; \
  	esac
 =20
  test_pam: test_pam.o
--- 53,104 ----
  	${CC} ${CFLAGS} -c afs_setcred.c -o afs_setcred.o
 =20
  afs_setcred_krb.o: afs_setcred.c afs_pam_msg.h afs_message.h =
afs_util.h
  	${CC} ${CFLAGS} -DAFS_KERBEROS_ENV -c afs_setcred.c -o =
afs_setcred_krb.o
 =20
! afs_auth.o: afs_auth.c afs_pam_msg.h afs_message.h afs_util.h
! 	${CC} ${CFLAGS}  -c afs_auth.c -o afs_auth.o
!=20
! afs_auth_krb.o: afs_auth.c afs_pam_msg.h afs_message.h afs_util.h
! 	${CC} ${CFLAGS} -DAFS_KERBEROS_ENV  -c afs_auth.c -o afs_auth_krb.o
!=20
! afs_util.o: afs_util.c afs_util.h
! 	${CC} ${CFLAGS} -c afs_util.c -o afs_util.o
!=20
! afs_util_krb.o: afs_util.c afs_util.h
! 	${CC} ${CFLAGS} -DAFS_KERBEROS_ENV -c afs_util.c -o afs_util_krb.o
!=20
! pam_afs.so.1: $(SHOBJS) afs_setcred.o afs_auth.o afs_util.o
  	set -x; \
  	case "$(SYS_NAME)" in \
  	hp_ux*) \
! 		$(LD) $(LDFLAGS) -c mapfile.hp -o $@ afs_setcred.o afs_auth.o =
afs_util.o\
  			$(SHOBJS) $(LIBS) ;; \
  	sun*_5*) \
! 		$(LD) $(LDFLAGS) -M mapfile -o $@ afs_setcred.o afs_auth.o =
afs_util.o\
  			$(SHOBJS) $(LIBS) ;; \
  	*linux*) \
! 		$(CC) $(LDFLAGS) -o $@ afs_setcred.o afs_auth.o afs_util.o =
$(SHOBJS) $(LIBS) ;;\
  	*fbsd*) \
! 		$(CC) $(LDFLAGS) -o $@ afs_setcred.o afs_auth.o afs_util.o =
$(SHOBJS) $(LIBS) ;;\
  	* ) \
  		echo No link line for system $(SYS_NAME). ;; \
  	esac
 =20
! pam_afs.krb.so.1: $(SHOBJS) afs_setcred_krb.o afs_auth_krb.o =
afs_util_krb.o
  	set -x; \
  	case "$(SYS_NAME)" in \
  	hp_ux*) \
  		$(LD) $(LDFLAGS) -c mapfile.hp -o $@ \
! 			afs_setcred_krb.o afs_auth_krb.o afs_util_krb.o $(SHOBJS) =
$(LDFLAGS) $(KLIBS) ;; \
  	sun*_5*) \
  		$(LD) $(LDFLAGS) -M mapfile -o $@ \
! 			afs_setcred_krb.o afs_auth_krb.o afs_util_krb.o $(SHOBJS) =
$(LDFLAGS) $(KLIBS) ;; \
  	*linux*) \
! 		$(CC) $(LDFLAGS) -o $@ afs_setcred_krb.o afs_auth_krb.o =
afs_util_krb.o $(SHOBJS) $(KLIBS) ;;\
  	*fbsd*) \
! 		$(CC) $(LDFLAGS) -o $@ afs_setcred_krb.o afs_auth_krb.o =
afs_util_krb.o $(SHOBJS) $(KLIBS) ;;\
  	* ) \
  		echo No link line for system $(SYS_NAME). ;; \
  	esac
 =20
  test_pam: test_pam.o

--==========1810789384==========--