Bug 138355. Delay persistence until home directory is created.
prevent closing session prematurely (pam_sscs.c)
This commit is contained in:
parent
aeb68c11aa
commit
aa9c895a41
@ -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
|
||||
|
||||
|
8
c_micasad/cache/SecretStore.cs
vendored
8
c_micasad/cache/SecretStore.cs
vendored
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user