pam_sm_setcred coredumps on solaris with dtlogin
Brought to you by:
balsa
On Solaris dtlogin coredumps in function
pm_sm_authenticate if dtlogin is reset either by the
end of a dt session or be manualy restarting dtlogin.
After this the X session hangs.
The reason is a call to krb5_parse_name with parameter
user = NULL because the previos call to pam_get_item
fails and leaves user uninitialized without setting an
error code to prc.
This happens on Solaris 9 with heimdal kerberso 0.6.2.
The patch solves this by initilizing the variables
context and principal with NULL and by explicitly
testing user against NULL and setting prc =
PAM_USER_UNKNOWN
Patch against HEAD Revision 1.34 of pam_krb5afs.c
Logged In: YES
user_id=1115632
I apologize: the function is pam_sm_setcred not
pam_sm_authenticate. Sorry about that.
Logged In: YES
user_id=1115632
Is anybody still active on this project?
Pleasy reply.
Thank you.