[OpenAFS-devel] pam_afs.krb.so.1 ticket file naming problem (from OpenAFS 1.2.1 on)

Thomas Mueller thomas.mueller@hrz.tu-chemnitz.de
Fri, 2 Nov 2001 13:00:50 +0100 (MET)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--1837505224-1779504373-1004702450=:29329
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by merowech.hrz.tu-chemnitz.de id NAA00691

On Fri, 2 Nov 2001, Derrick J Brashear wrote:

>=20
> Previously the code in afs_auth.c which called ka_VerifyUserPassword
> set KA_USERAUTH_DOSETPAG in addition to KA_USERAUTH_VERSION whereas now=
=20
> setpag() is called explicitly. I believe if after the calls to setpag()=
 in=20
> afs_auth.c and afs_setcred.c you add:
>=20
> #ifdef AFS_KERBEROS_ENV
> 	ktc_newpag();
> #endif
>=20
> and compile, it will fix your problem.=20

Yes, you are right. - It was my fault, when I changed the original code.
Attached you will find a little patch to correct this and a other little
problem affected to the option "use_klog".
The patch is against the latest files from CVS.

Thomas.
--=20
-----------------------------------------------------------------------
Thomas M=FCller, TU Chemnitz, Universit=E4tsrechenzentrum, D-09107 Chemni=
tz
mail: Thomas.Mueller@hrz.tu-chemnitz.de
-----------------------------------------------------------------------

--1837505224-1779504373-1004702450=:29329
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="openafs-pam-krb.patch"
Content-ID: <Pine.LNX.4.33.0111021300500.29329@merowech.hrz.tu-chemnitz.de>
Content-Description: pam_afs.krb Patch
Content-Disposition: attachment; filename="openafs-pam-krb.patch"
Content-Transfer-Encoding: BASE64

ZGlmZiAtTmF1cncgb3BlbmFmcy0xLjIuMi5vcmlnL3NyYy9wYW0vTWFrZWZp
bGUuaW4gb3BlbmFmcy0xLjIuMi9zcmMvcGFtL01ha2VmaWxlLmluDQotLS0g
b3BlbmFmcy0xLjIu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