And here’s the very very nasty deal: you will have to run FOGCrypt.exe on the SAME computer as you want to decrypt on. I did run FOGCrypt.exe on different computers (Linux in this case), and it simply does not encrypt/decrypt the same. I don’t know why.
This may be an implementation issue in mono, maybe 32/64 bit??
But that’s all that there was to it. Bummer, this whole thing cost me a big amount of time of getting fog up and running. I would love to contribute back some patches and knowledge. But can’t get access to the Wiki to cleanup some obsolete comments.
And how do I propose patches? Is that against the git branch? For example the AbstractFOGService uses the wrong variable name, here’s patch:
[CODE]diff --git a/FOGService/src/AbstractFogService/AbstractFOGService.cs b/FOGService/src/AbstractFogService/AbstractFOGService.cs
index f7cbeae…332b029 100755
— a/FOGService/src/AbstractFogService/AbstractFOGService.cs
+++ b/FOGService/src/AbstractFogService/AbstractFOGService.cs
@@ -265,9 +265,10 @@ namespace FOG
f.Delete();
}
-
objReader = new StreamWriter(strLogPath, true);
-
objReader.WriteLine(" " + DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString() + " " + moduleName + " " + strlog);
-
objReader.Close();
-
using (StreamWriter writer = new StreamWriter(strLogPath, true))
-
{
-
writer.WriteLine(" " + DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString() + " " + moduleName + " " + strlog);
-
}
}
}
catch
[/CODE]
And this one to give better logging on what is exactly wrong instead of an error code:
[CODE]diff --git a/FOGService/src/FOG_HostNameChanger/MOD_HostNameChanger.cs b/FOGService/src/FOG_HostNameChanger/MOD_HostNameChanger.cs
index ae3de28…c39c315 100755
— a/FOGService/src/FOG_HostNameChanger/MOD_HostNameChanger.cs
+++ b/FOGService/src/FOG_HostNameChanger/MOD_HostNameChanger.cs
@@ -47,6 +47,8 @@ namespace FOG
public const int AccessDenied = 5;
public const int BadNetPath = 53;
public const int WrongPassword = 1323;
@@ -289,7 +291,7 @@ namespace FOG
{
try
{
@@ -437,7 +439,11 @@ namespace FOG
strUser = strU;
if (strP != null && strP != "")
@@ -599,6 +605,10 @@ namespace FOG
return "Domain Error! (‘Bad Netpath’ Code: " + code + ") ";
case NERR.WrongPassword:
return "Domain Error! (‘Wrong Password’ Code: " + code + ") ";
-
case NERR.LogonFailure:
-
return "Domain Error! ('Logon failure, unknown user name or bad password' Code: " + code + ") ";
-
case NERR.BadDomain:
-
return "Domain Error! ('The specified domain either does not exist or could not be contacted' Code: " + code + ") ";
case NERR.DCNotFound:
return "Domain Error! ('DCNotFound' Code: " + code + ") ";
case NERR.SetupAlreadyJoined:
[/CODE]
And I would love to be allowed to add a patch that forbids people to use a DNS domain name in the active directory settings, or forbids to use the ‘’ character in the user name, both won’t work.