[388] in Info-AFS_Redistribution
Re: Using XDM and xlogin for logging in.
daemon@ATHENA.MIT.EDU (Dave "Louie" LaPlant)
Fri Nov 8 13:23:29 1991
From: laplant@ads.com (Dave "Louie" LaPlant)
To: amjudge@swift.cs.tcd.ie (Alan Judge)
Date: Fri, 8 Nov 91 9:04:50 PST
Cc: info-afs@transarc.com
In-Reply-To: <9111081151.aa29935@parade.cs.tcd.ie>; from "Alan Judge" at Nov 8, 91 11:51 am
>
> Has anyone made the necessary changes to X11 XDM or xlogin so that an
> AFS tokens is obtained during the login process?
>
> Is this a relatively simple change, with a call to some afs routine
> and linking to the afs library, or is it more complex?
> --
> Alan
>
It's just a call to an afs routine. In the file verify.c, in the subroutine
verify:
/* This is orignal
if (strcmp (crypt (greet->password, sp->sp_pwdp), sp->sp_pwdp))
*/
if (ka_UserAuthenticate(greet->name,"",0,greet->password,0,&errorstring))
#else
/* This is orignal
if (strcmp (crypt (greet->password, p->pw_passwd), p->pw_passwd))
*/
if (ka_UserAuthenticate(greet->name,"",0,greet->password,0,&errorstring))
#endif
{
Debug ("verify failed\n");
bzero(greet->password, strlen(greet->password));
return 0;
}
Debug ("verify succeeded\n");
And here's the libraries you need to include:
AFSLIBDIR = /usr/afsws/lib/
AFSLIBS = ${AFSLIBDIR}afs/libkauth.a ${AFSLIBDIR}libubik.a \
${AFSLIBDIR}afs/libprot.a \
${AFSLIBDIR}librxkad.a ${AFSLIBDIR}librx.a ${AFSLIBDIR}liblwp.a \
${AFSLIBDIR}afs/libauth.a ${AFSLIBDIR}afs/libsys.a \
${AFSLIBDIR}librxkad.a ${AFSLIBDIR}libdes.a \
${AFSLIBDIR}afs/libcmd.a ${AFSLIBDIR}afs/libcom_err.a \
${AFSLIBDIR}afs/util.a
So, your cc command will look something like this:
$(CC) -o $@ $(LDOPTIONS) $(OBJS1) $(LOCAL_LIBRARIES) $(LDLIBS) ${LIBS} ${AFSLIBS} $(SYSLIBS) $(EXTRA_LOAD_FLAGS)
--------------------------------------------------------------
Dave "Louie" LaPlant Phone: (415) 960-7311
Systems Programmer email: laplant@ads.com
Advanced Decision Systems