[319] in Info-AFS_Redistribution
Re: the dangers of not using unlog
daemon@ATHENA.MIT.EDU (Cal_Thixton@next.com)
Fri Sep 20 00:07:00 1991
Date: Thu, 19 Sep 91 23:16:22 EDT
From: Cal_Thixton@next.com
To: Wallace Colyer <wally+@andrew.cmu.edu>
Cc: Info-AFS@transarc.com, Peter Honeyman <honey@citi.umich.edu>,
I still find it hard to use any of the ka_*() stuff since there are no man
pages anywhere and even the src examples are not that great. But anyway,
what is a 'pag'? and for that matter 'instance'?
thanks
cal
p.s. and has anyone ever wondered why it takes 13 libraries just to use
this one routine?
Begin forwarded message:
Date: Thu, 19 Sep 1991 19:23:12 -0400 (EDT)
From: Wallace Colyer <wally+@andrew.cmu.edu>
To: Info-AFS@transarc.com, Peter Honeyman <honey@citi.umich.edu>,
wdg@unccvax.uncc.edu
Subject: Re: the dangers of not using unlog
Authenticating from within a program is very easy. All you have to do
is call the routine ka_UserAuthenticate:
if(ka_UserAuthenticate(pwd->pw_name, /*instance*/"",
/*cell*/0, password, /*sepag*/1,
&errorstring)) {
printf("Error authenticating: %s\n",
errorstring);
}
This a great routine to use if you want to create your own su or any
other program that needs to authenticate.
If you do not want another pag just replace the 1 in the setpag line with 0.
You'll need a libpath like (order is very important):
AFSLIBS = ${LIBDIR}afs/libkauth.a ${LIBDIR}libubik.a ${LIBDIR}afs/libprot.a
\
${LIBDIR}librxkad.a ${LIBDIR}librx.a ${LIBDIR}liblwp.a \
${LIBDIR}afs/libauth.a ${LIBDIR}afs/libsys.a \
${LIBDIR}librxkad.a ${LIBDIR}libdes.a \
${LIBDIR}afs/libcmd.a ${LIBDIR}afs/libcom_err.a
${LIBDIR}afs/util.a
If you still want to see the code for guardian I can find a copy that is
public for you.
-Wallace