Add CASAcli to windows msi.

This commit is contained in:
Jim Norman 2007-07-10 17:37:58 +00:00
parent a15b5a7eda
commit e753b7a91d
5 changed files with 173 additions and 135 deletions

View File

@ -501,8 +501,12 @@ int main
printf("Try 'CASAcli -h' for more infomation\r\n");
return 0;
}
#ifdef WIN32
while ((c = sss_GetOpt(argc, argv, "lLoOhHsSgGdDrRn=N=k=K=u=U=v=V=")) != -1)
#endif
#ifdef LINUX
while ((c = sss_GetOpt(argc, argv, "lLoOhHsSgGdDrRn=N=k=K=u=U=")) != -1)
#endif
{
//printf("processing arg \r\n");
switch(c)
@ -548,6 +552,12 @@ int main
keyName = optArg;
break;
#ifdef WIN32
case 'v':
case 'V':
value = optArg;
break;
#endif
case 'u':
case 'U':
uid = optArg;
@ -557,11 +567,20 @@ int main
default:
printf("\r\n");
#ifdef WIN32
printf(" Description:\r\n");
printf(" This program is a simple utility to display, set, and delete\r\n");
printf(" credentials used by services on this computer. Because credentials\r\n");
printf(" are scoped by the LUID of the running process, you must run\r\n");
printf(" this utility as the same LUID as the service being configured.\r\n");
#endif
#ifdef LINUX
printf(" Description:\r\n");
printf(" This program is a simple utility to display, set, and delete\r\n");
printf(" credentials used by services on this computer. Because credentials\r\n");
printf(" are scoped by the UID of the running process, you must run\r\n");
printf(" this utility as the same UID as the service being configured.\r\n");
#endif
printf("\r\n");
printf(" Usage: CASAcli [OPTIONS]\r\n");
@ -576,7 +595,12 @@ int main
printf("\r\n");
printf(" -n [name] Specify the credential name\r\n");
printf(" -k [key] Specify the key name to set\r\n");
#ifdef WIN32
printf(" -v [value] Specify the value for this key being set\r\n");
#endif
#ifdef LINUX
printf(" -u [uid] Specify the UID of the process\r\n");
#endif
printf("\r\n");
printf(" -o Override services keychain and use current user(UID) keychain for operation\r\n");
@ -585,9 +609,14 @@ int main
printf(" Examples\r\n");
printf(" CASAcli -g -n MyCredential\r\n");
printf(" CASAcli -d -n MyCredential\r\n");
#ifdef WIN32
printf(" CASAcli -s -n MyCredential -k CN -v admin\r\n");
printf(" CASAcli -s -n MyCredential -k Password -v thepassword\r\n");
#endif
#ifdef LINUX
printf(" KEYVALUE=admin CASAcli -s -n MyCredential -k CN\r\n");
printf(" KEYVALUE=password CASAcli -s -n MyCredential -k Password\r\n");
#endif
printf("\r\n");
exit(0);
@ -650,6 +679,19 @@ int main
if (keyName != NULL)
{
printf("Setting %s\r\n", credName);
#ifdef WIN32
if (value != NULL)
{
WriteKey(value);
}
else
{
printf("No value set\r\n");
printf("Example: CASAcli -s -n Name -k cn -v Admin\r\n");
return;
}
#endif
#ifdef LINUX
keyvalue = getenv("KEYVALUE");
if (keyvalue != NULL)
{
@ -661,6 +703,8 @@ int main
printf("Example: KEYVALUE=admin CASAcli -s -n Name -k cn\r\n");
return;
}
#endif
}
else
{

View File

@ -15,14 +15,20 @@
{
"Entry"
{
"MsmKey" = "8:_01C1EAD583CE4AD39778A1F9EC86204D"
"OwnerKey" = "8:_UNDEFINED"
"MsmKey" = "8:_0170496EE5C04360DF5BA74B039C3EC9"
"OwnerKey" = "8:_C37A35F33FD14730BC7E7C47DF9C2DD1"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_093DBD038821017381C58C1600BB65FF"
"OwnerKey" = "8:_69B8715C6C864CE4BA0C8234D344175F"
"MsmKey" = "8:_0170496EE5C04360DF5BA74B039C3EC9"
"OwnerKey" = "8:_E4C5DD334E5102C69E18D3E50EB308F9"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_01C1EAD583CE4AD39778A1F9EC86204D"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
@ -33,42 +39,48 @@
}
"Entry"
{
"MsmKey" = "8:_4017F0313C0605FD76ED03402317EA35"
"MsmKey" = "8:_376CD5800C56A38949D745C960F2A7D4"
"OwnerKey" = "8:_C37A35F33FD14730BC7E7C47DF9C2DD1"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_3FAA064A5C5743BB8AD74340F1E51D54"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_53A2168DF64E4E9EB3FD5516424E732E"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_657D0EB8D0C363240B7BB4B3F8031609"
"OwnerKey" = "8:_C37A35F33FD14730BC7E7C47DF9C2DD1"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_657D0EB8D0C363240B7BB4B3F8031609"
"OwnerKey" = "8:_4017F0313C0605FD76ED03402317EA35"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_69B8715C6C864CE4BA0C8234D344175F"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_6C056EF6608CB813240B81AB2C290472"
"MsmKey" = "8:_893428C1DD551B5F07D2D004868270EF"
"OwnerKey" = "8:_C37A35F33FD14730BC7E7C47DF9C2DD1"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_893428C1DD551B5F07D2D004868270EF"
"OwnerKey" = "8:_E4C5DD334E5102C69E18D3E50EB308F9"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_893428C1DD551B5F07D2D004868270EF"
"OwnerKey" = "8:_0170496EE5C04360DF5BA74B039C3EC9"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_90C16B41FE7F435A8640BFDDD7C02619"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
@ -81,30 +93,12 @@
}
"Entry"
{
"MsmKey" = "8:_E7B4BD63601426E59942ECD9791C92FE"
"MsmKey" = "8:_E4C5DD334E5102C69E18D3E50EB308F9"
"OwnerKey" = "8:_C37A35F33FD14730BC7E7C47DF9C2DD1"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_E7B4BD63601426E59942ECD9791C92FE"
"OwnerKey" = "8:_4017F0313C0605FD76ED03402317EA35"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_E7B4BD63601426E59942ECD9791C92FE"
"OwnerKey" = "8:_657D0EB8D0C363240B7BB4B3F8031609"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_FCA9C6770F0FB28185373954659263CB"
"OwnerKey" = "8:_01C1EAD583CE4AD39778A1F9EC86204D"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_C37A35F33FD14730BC7E7C47DF9C2DD1"
"MsmSig" = "8:_UNDEFINED"
@ -112,33 +106,33 @@
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_376CD5800C56A38949D745C960F2A7D4"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_E4C5DD334E5102C69E18D3E50EB308F9"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_0170496EE5C04360DF5BA74B039C3EC9"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_893428C1DD551B5F07D2D004868270EF"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_11B0506C6E534CED95D82DA0A8EC9F82"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_6C056EF6608CB813240B81AB2C290472"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_4017F0313C0605FD76ED03402317EA35"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_657D0EB8D0C363240B7BB4B3F8031609"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_E7B4BD63601426E59942ECD9791C92FE"
"MsmSig" = "8:_UNDEFINED"
}
}
"Configurations"
{
@ -238,65 +232,14 @@
}
"File"
{
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_093DBD038821017381C58C1600BB65FF"
{
"SourcePath" = "8:micasa.dll"
"TargetName" = "8:micasa.dll"
"Tag" = "8:"
"Folder" = "8:_4913CF477F8E455DA2D13A4A6892F4F7"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
"ReadOnly" = "11:FALSE"
"Hidden" = "11:FALSE"
"System" = "11:FALSE"
"Permanent" = "11:FALSE"
"SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:TRUE"
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_4017F0313C0605FD76ED03402317EA35"
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_0170496EE5C04360DF5BA74B039C3EC9"
{
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
"AssemblyAsmDisplayName" = "8:Novell.CASA.Common, Version=1.6.2503.27769, Culture=neutral, processorArchitecture=MSIL"
"AssemblyAsmDisplayName" = "8:AppModule.NamedPipes, Version=1.6.0.31432, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_4017F0313C0605FD76ED03402317EA35"
{
"Name" = "8:Novell.CASA.Common.dll"
"Attributes" = "3:512"
}
}
"SourcePath" = "8:Novell.CASA.Common.dll"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_24B477312C8840DB8DF8C1E373E7FC6D"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
"ReadOnly" = "11:FALSE"
"Hidden" = "11:FALSE"
"System" = "11:FALSE"
"Permanent" = "11:FALSE"
"SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:FALSE"
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_657D0EB8D0C363240B7BB4B3F8031609"
{
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
"AssemblyAsmDisplayName" = "8:AppModule.NamedPipes, Version=1.6.0.27768, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_657D0EB8D0C363240B7BB4B3F8031609"
"_0170496EE5C04360DF5BA74B039C3EC9"
{
"Name" = "8:AppModule.NamedPipes.dll"
"Attributes" = "3:512"
@ -320,14 +263,14 @@
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_6C056EF6608CB813240B81AB2C290472"
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_376CD5800C56A38949D745C960F2A7D4"
{
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
"AssemblyAsmDisplayName" = "8:Novell.CASA.CASAPol, Version=1.6.2501.25984, Culture=neutral, processorArchitecture=MSIL"
"AssemblyAsmDisplayName" = "8:Novell.CASA.CASAPol, Version=1.6.2719.31433, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_6C056EF6608CB813240B81AB2C290472"
"_376CD5800C56A38949D745C960F2A7D4"
{
"Name" = "8:Novell.CASA.CASAPol.dll"
"Attributes" = "3:512"
@ -351,14 +294,14 @@
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_E7B4BD63601426E59942ECD9791C92FE"
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_893428C1DD551B5F07D2D004868270EF"
{
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
"AssemblyAsmDisplayName" = "8:AppModule.InterProcessComm, Version=1.6.0.25984, Culture=neutral, processorArchitecture=MSIL"
"AssemblyAsmDisplayName" = "8:AppModule.InterProcessComm, Version=1.6.0.31431, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_E7B4BD63601426E59942ECD9791C92FE"
"_893428C1DD551B5F07D2D004868270EF"
{
"Name" = "8:AppModule.InterProcessComm.dll"
"Attributes" = "3:512"
@ -382,12 +325,23 @@
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_FCA9C6770F0FB28185373954659263CB"
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_E4C5DD334E5102C69E18D3E50EB308F9"
{
"SourcePath" = "8:micasacache.dll"
"TargetName" = "8:micasacache.dll"
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
"AssemblyAsmDisplayName" = "8:Novell.CASA.Common, Version=1.6.2719.31432, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_E4C5DD334E5102C69E18D3E50EB308F9"
{
"Name" = "8:Novell.CASA.Common.dll"
"Attributes" = "3:512"
}
}
"SourcePath" = "8:Novell.CASA.Common.dll"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_4913CF477F8E455DA2D13A4A6892F4F7"
"Folder" = "8:_24B477312C8840DB8DF8C1E373E7FC6D"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
@ -398,7 +352,7 @@
"SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:TRUE"
"Exclude" = "11:FALSE"
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
@ -501,7 +455,7 @@
{
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_01C1EAD583CE4AD39778A1F9EC86204D"
{
"SourcePath" = "8:..\\..\\..\\..\\micasadk\\Debug\\micasa.dll"
"SourcePath" = "8:..\\..\\..\\..\\micasadk\\Release\\micasa.dll"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_4913CF477F8E455DA2D13A4A6892F4F7"
@ -529,7 +483,7 @@
}
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_11B0506C6E534CED95D82DA0A8EC9F82"
{
"SourcePath" = "8:..\\..\\..\\..\\sharp\\Novell.Casa\\obj\\Debug\\Novell.Casa.dll"
"SourcePath" = "8:..\\..\\..\\..\\sharp\\Novell.Casa.MiCasa\\obj\\Release\\Novell.Casa.MiCasa.dll"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_1362415FE8D943B49FA4E4380970C97B"
@ -555,9 +509,37 @@
{
}
}
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_3FAA064A5C5743BB8AD74340F1E51D54"
{
"SourcePath" = "8:..\\..\\..\\..\\cli\\release\\CASAcli.exe"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_24B477312C8840DB8DF8C1E373E7FC6D"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
"ReadOnly" = "11:FALSE"
"Hidden" = "11:FALSE"
"System" = "11:FALSE"
"Permanent" = "11:FALSE"
"SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:FALSE"
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
"ProjectOutputGroupRegister" = "3:1"
"OutputConfiguration" = "8:"
"OutputGroupCanonicalName" = "8:Built"
"OutputProjectGuid" = "8:{4AFEB4A4-C9D7-4EAD-BCE4-BA84E00ACA23}"
"ShowKeyOutput" = "11:TRUE"
"ExcludeFilters"
{
}
}
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_53A2168DF64E4E9EB3FD5516424E732E"
{
"SourcePath" = "8:..\\..\\..\\..\\micasacache\\Debug\\micasacache.dll"
"SourcePath" = "8:..\\..\\..\\..\\micasacache\\Release\\micasacache.dll"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_4913CF477F8E455DA2D13A4A6892F4F7"
@ -585,7 +567,7 @@
}
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_69B8715C6C864CE4BA0C8234D344175F"
{
"SourcePath" = "8:..\\..\\..\\..\\jwrapper\\jnsscs\\Debug\\jmicasa.dll"
"SourcePath" = "8:..\\..\\..\\..\\jwrapper\\jnsscs\\Release\\jmicasa.dll"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_4913CF477F8E455DA2D13A4A6892F4F7"
@ -613,7 +595,7 @@
}
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_90C16B41FE7F435A8640BFDDD7C02619"
{
"SourcePath" = "8:..\\..\\..\\..\\logincapture\\windows\\bin\\Debug\\lcredmgr.dll"
"SourcePath" = "8:..\\..\\..\\..\\logincapture\\windows\\bin\\Release\\lcredmgr.dll"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_24B477312C8840DB8DF8C1E373E7FC6D"
@ -641,7 +623,7 @@
}
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_C37A35F33FD14730BC7E7C47DF9C2DD1"
{
"SourcePath" = "8:..\\..\\..\\..\\micasad\\obj\\Debug\\micasad.exe"
"SourcePath" = "8:..\\..\\..\\..\\micasad\\obj\\Release\\micasad.exe"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_24B477312C8840DB8DF8C1E373E7FC6D"

View File

@ -62,6 +62,8 @@ Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "CASA", "CASA.vdproj", "{2D7
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "launcher", "..\..\..\..\launcher\launcher.csproj", "{D267C0E4-584C-4A9A-B189-50CEA39ACA4B}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CASAcli", "..\..\..\..\cli\CASAcli.vcproj", "{4AFEB4A4-C9D7-4EAD-BCE4-BA84E00ACA23}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -290,6 +292,16 @@ Global
{D267C0E4-584C-4A9A-B189-50CEA39ACA4B}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{D267C0E4-584C-4A9A-B189-50CEA39ACA4B}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{D267C0E4-584C-4A9A-B189-50CEA39ACA4B}.Release|Win32.ActiveCfg = Release|Any CPU
{4AFEB4A4-C9D7-4EAD-BCE4-BA84E00ACA23}.Debug|Any CPU.ActiveCfg = Debug|Win32
{4AFEB4A4-C9D7-4EAD-BCE4-BA84E00ACA23}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
{4AFEB4A4-C9D7-4EAD-BCE4-BA84E00ACA23}.Debug|Mixed Platforms.Build.0 = Debug|Win32
{4AFEB4A4-C9D7-4EAD-BCE4-BA84E00ACA23}.Debug|Win32.ActiveCfg = Debug|Win32
{4AFEB4A4-C9D7-4EAD-BCE4-BA84E00ACA23}.Debug|Win32.Build.0 = Debug|Win32
{4AFEB4A4-C9D7-4EAD-BCE4-BA84E00ACA23}.Release|Any CPU.ActiveCfg = Release|Win32
{4AFEB4A4-C9D7-4EAD-BCE4-BA84E00ACA23}.Release|Mixed Platforms.ActiveCfg = Release|Win32
{4AFEB4A4-C9D7-4EAD-BCE4-BA84E00ACA23}.Release|Mixed Platforms.Build.0 = Release|Win32
{4AFEB4A4-C9D7-4EAD-BCE4-BA84E00ACA23}.Release|Win32.ActiveCfg = Release|Win32
{4AFEB4A4-C9D7-4EAD-BCE4-BA84E00ACA23}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE