[2311] in Kerberos
kerberizing xlock ???
daemon@ATHENA.MIT.EDU (Jim Hendrick)
Wed Oct 28 22:19:14 1992
Date: Wed, 28 Oct 92 21:56:48 EST
From: Jim Hendrick <hendrick@neptune.ctron.com>
To: kerberos@Athena.MIT.EDU
I am trying to figure out how to "correctly" kerberize xlock. I
have sources and would like to replace the authentication via
pw = getpwnam(cuserid(NULL));
strcpy(userpass, pw->pw_passwd);
...
done = !((strcmp(crypt(buffer, userpass), userpass))
&& (!allowroot || strcmp(crypt(buffer, rootpass), rootpass)));
etc. with the appropriate kerberized login verification. I have looked at the
sources to login and rlogin and think I should be able to use login to
authenticate this via appropriate calls but how? I don't mind writing the
code but I am new to kerberos and #1 don't want to open a hole or
#2 re-invent the wheel :-) If any of you have done this, please let me know
or else I will press onward as time permits and eventually (if successful)
post the finished sources or something . . .
Thanks
Jim