Menu

#2 pam_sm_setcred coredumps on solaris with dtlogin

open
Core Code (5)
5
2004-09-03
2004-09-03
Anonymous
No

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

Discussion

  • Nobody/Anonymous

    Patch against HEAD Revision 1.34 of pam_krb5afs.c

     
  • Anonymous

    Anonymous - 2004-09-03

    Logged In: YES
    user_id=1115632

    I apologize: the function is pam_sm_setcred not
    pam_sm_authenticate. Sorry about that.

     
  • Anonymous

    Anonymous - 2005-02-08

    Logged In: YES
    user_id=1115632

    Is anybody still active on this project?

    Pleasy reply.

    Thank you.

     

Log in to post a comment.