Attempt unlocking all gnome-keyrings
This commit is contained in:
		| @@ -1,3 +1,8 @@ | |||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Fri Jan 20 13:20:34 MST 2006 - jnorman@novell.com | ||||||
|  |  | ||||||
|  | - Attempt unlocking all gnome-keyrings at login time. | ||||||
|  |  | ||||||
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ||||||
| Thu Jan 20 11:39:34 MST 2006 - jnorman@novell.com | Thu Jan 20 11:39:34 MST 2006 - jnorman@novell.com | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										15
									
								
								c_micasad/cache/SecretStore.cs
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								c_micasad/cache/SecretStore.cs
									
									
									
									
										vendored
									
									
								
							| @@ -35,6 +35,10 @@ using sscs.constants; | |||||||
| using sscs.lss; | using sscs.lss; | ||||||
| using sscs.crypto; | using sscs.crypto; | ||||||
|  |  | ||||||
|  | #if LINUX | ||||||
|  | using Novell.CASA.DataEngines.GK; | ||||||
|  | #endif | ||||||
|  |  | ||||||
| namespace sscs.cache | namespace sscs.cache | ||||||
| { | { | ||||||
|     class SecretStore |     class SecretStore | ||||||
| @@ -141,6 +145,17 @@ namespace sscs.cache | |||||||
| 		internal bool StartPersistenceByDesktopPasswd(string desktopPasswd) | 		internal bool StartPersistenceByDesktopPasswd(string desktopPasswd) | ||||||
|         { |         { | ||||||
| 			CSSSLogger.DbgLog("StartPersistenceByDesktopPasswd - Called"); | 			CSSSLogger.DbgLog("StartPersistenceByDesktopPasswd - Called"); | ||||||
|  | #if LINUX | ||||||
|  | 			// attempt unlock of gnome-keyring rings | ||||||
|  | 			try  | ||||||
|  | 			{ | ||||||
|  | 				GnomeKeyring.AttemptGKUnlock(desktopPasswd); | ||||||
|  | 			} | ||||||
|  | 			catch (Exception e) | ||||||
|  | 			{ | ||||||
|  | 				CSSSLogger.DbgLog(e.ToString()); | ||||||
|  | 			} | ||||||
|  | #endif | ||||||
| 			// make sure we have a user home directory | 			// make sure we have a user home directory | ||||||
| 			if (GetUserHomeDirectory() == null || GetUserHomeDirectory().Length < 1) | 			if (GetUserHomeDirectory() == null || GetUserHomeDirectory().Length < 1) | ||||||
| 			{				 | 			{				 | ||||||
|   | |||||||
| @@ -52,7 +52,7 @@ ifeq ($(module),adlib) | |||||||
| endif | endif | ||||||
|  |  | ||||||
| ifeq ($(module),csssd) | ifeq ($(module),csssd) | ||||||
|  CFLAGS = -lib:../c_micasad/test/dependencies/ /r:Mono.Posix.dll /r:nunit.core.dll /r:nunit.framework.dll /r:nunit.extensions.dll /r:nunit.util.dll /r:nunit.mocks.dll /r:nunit.mocks.dll -lib:"$(CSLIBDIR)" /r:Novell.CASA.Common.dll |  CFLAGS = -lib:../c_micasad/test/dependencies/ /r:Mono.Posix.dll /r:nunit.core.dll /r:nunit.framework.dll /r:nunit.extensions.dll /r:nunit.util.dll /r:nunit.mocks.dll /r:nunit.mocks.dll -lib:"$(CSLIBDIR)" /r:Novell.CASA.DataEngines.GnomeKeyring.dll /r:Novell.CASA.Common.dll | ||||||
|  OFILE = -out:"$(CSBINDIR)$@"exe |  OFILE = -out:"$(CSBINDIR)$@"exe | ||||||
|  EXT = bin |  EXT = bin | ||||||
| endif | endif | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user