Bug 138355. Delay persistence until home directory is created.

prevent closing session prematurely (pam_sscs.c)
This commit is contained in:
Jim Norman 2005-12-14 18:01:18 +00:00
parent aeb68c11aa
commit aa9c895a41
3 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Dec 14 10:57:46 MST 2005 - jnorman@novell.com
-Bug 138355. Delay persistence until home directory is created.
prevent closing session prematurely (pam_sscs.c)
-------------------------------------------------------------------
Wed Dec 14 10:22:46 MST 2005 - jluciani@novell.com

View File

@ -124,6 +124,14 @@ namespace sscs.cache
CSSSLogger.DbgLog("StartPersistenceByDesktopPasswd - No Home directory yet");
return false;
}
else
{
if (!Directory.Exists(GetUserHomeDirectory()))
{
CSSSLogger.DbgLog("StartPersistenceByDesktopPasswd - Home directory is not created yet");
return false;
}
}
try

View File

@ -202,7 +202,7 @@ PAM_EXTERN int pam_sm_close_session(pam_handle_t *pamh,int flags,int argc
break;
}
retVal = (*pNSSCSCloseSecretStoreCache) (ssContext,1,NULL);
retVal = (*pNSSCSCloseSecretStoreCache) (ssContext,0,NULL);
if( retVal != 0 )
{
pam_sscs_log(LOG_ERR,"Closing SecretStore for the user %s failed.\n",passwdEntry->pw_name);