Skip to content

Commit

Permalink
Save drive letter that we encrypted the home folder to
Browse files Browse the repository at this point in the history
For future reference, esp. by Keenou-UI
  • Loading branch information
jetwhiz committed Nov 9, 2015
1 parent 730990a commit 1f356fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Plugins/Contrib/CryptoContainer/CryptoContainer/PluginImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@ public BooleanResult AuthenticatedUserGateway(SessionProperties properties)
//Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\" + sidString, "ProfileImagePath", targetDrive + @":\");


// Save where we mounted the encrypted volume
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Keenou\" + sidString, "encDrive", targetDrive);


// Remove old directory junction (if it's there)
if (Directory.Exists(homeFolder) && !File.Exists(homeFolder + @"\" + "NTUSER.DAT"))
{
Expand Down
5 changes: 3 additions & 2 deletions pGina/src/Core/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static void Init()
s_settings.SetDefault("MaxClients", 25);
s_settings.SetDefault("TraceMsgTraffic", false);
s_settings.SetDefault("SessionHelperExe", "pGina.Service.SessionHelper.exe");
s_settings.SetDefault("Motd", "pGina Version: %v");
s_settings.SetDefault("Motd", "Keenou-pGina Version: %v");
s_settings.SetDefault("GinaPassthru", false);
s_settings.SetDefault("ChainedGinaPath", "MSGINA.DLL");
s_settings.SetDefault("EnableSpecialActionButton", false);
Expand All @@ -67,11 +67,12 @@ public static void Init()
// Default setup is local machine plugin as enabled for auth and gateway
// Modified to include CryptoContainer Gateway first
s_settings.SetDefault("IPluginAuthentication_Order", new string[] { "12FA152D-A2E3-4C8D-9535-5DCD49DFCB6D" });
s_settings.SetDefault("IPluginAuthorization_Order", new string[] { "12FA152D-A2E3-4C8D-9535-5DCD49DFCB6D" });
s_settings.SetDefault("IPluginAuthenticationGateway_Order", new string[] { "14EFCEF3-4D67-44C6-9F28-BB80F1A33827", "12FA152D-A2E3-4C8D-9535-5DCD49DFCB6D" });
s_settings.SetDefault("14EFCEF3-4D67-44C6-9F28-BB80F1A33827",
(int)(Core.PluginLoader.State.GatewayEnabled));
s_settings.SetDefault("12FA152D-A2E3-4C8D-9535-5DCD49DFCB6D",
(int)(Core.PluginLoader.State.AuthenticateEnabled | Core.PluginLoader.State.AuthorizeEnabled | Core.PluginLoader.State.GatewayEnabled));
(int)(Core.PluginLoader.State.AuthenticateEnabled | Core.PluginLoader.State.AuthorizeEnabled | Core.PluginLoader.State.GatewayEnabled | Core.PluginLoader.State.ChangePasswordEnabled));

s_settings.SetDefault("UseOriginalUsernameInUnlockScenario", false);
s_settings.SetDefault("LogonProgressMessage", "Logging on %u...");
Expand Down

0 comments on commit 1f356fb

Please sign in to comment.