pull up r18379 from trunk
authorTom Yu <tlyu@mit.edu>
Tue, 25 Jul 2006 02:32:04 +0000 (02:32 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 25 Jul 2006 02:32:04 +0000 (02:32 +0000)
commit05e55d3c8fff279e891156833bdabda18c93d214
treef070973ee875a088e1ed7ce4a0b3c3059365db5b
parent65b4a182349ab63236e1528a529c2e663760ac8e
pull up r18379 from trunk

 r18379@cathode-dark-space:  jaltman | 2006-07-24 02:58:23 -0400
 ticket: new
 subject: Windows Integrated Login Fixes for KFW 3.1
 tags: pullup
 component: windows

     KFW integrated login was failing when the user is
     not a power user or administrator.  This was occurring
     because the temporary file ccache was being created in
     a directory the user could not read.  While fixing this
     it was noticed that the ACLs on the ccache were too broad.
     Instead of applying a fix to the FILE: krb5_ccache
     implementation it was decided that simply applying a new
     set of ACLs (SYSTEM and "user" with no inheritance) to
     the file immediately after the krb5_cc_initialize() call
     would close the broadest security issues.

     The file is initially created in the SYSTEM %TEMP% directory
     with "SYSTEM" ACL only.  Then it is moved to the user's %TEMP%
     directory with "SYSTEM" and "user" ACLs.  Finally, after
     copying the credentials to the API: ccache, the file is deleted.

ticket: 4048

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-5@18386 dc483132-0cff-0310-8789-dd5450dbe970
src/windows/kfwlogon/Makefile.in
src/windows/kfwlogon/kfwcommon.c
src/windows/kfwlogon/kfwcpcc.c
src/windows/kfwlogon/kfwlogon.c
src/windows/kfwlogon/kfwlogon.h