Subversion Repositories Aucun

Compare Revisions

Regard whitespace Rev 221 → Rev 222

/branches/selfserve/GINA/SecurityHelper.cpp
57,7 → 57,7
 
if (!pRequest)
{
TRACE(eERROR, L"Out of memory, wtf?.\n");
TRACE(eERROR, L"Out of memory\n");
return 0;
}
 
96,7 → 96,7
 
if (!newStr)
{
TRACE(eERROR, L"Out of memory, wtf?.\n");
TRACE(eERROR, L"Out of memory.\n");
return FALSE;
}
 
345,7 → 345,7
 
*ppProfilePath = profilePath;
}
else TRACE(eERROR, L"Out of memory, wtf?.\n");
else TRACE(eERROR, L"Out of memory.\n");
 
return result;
}
381,9 → 381,9
 
result = TRUE;
}
else TRACE(eERROR, L"Out of memory, wtf?.\n");
else TRACE(eERROR, L"Out of memory.\n");
}
else TRACE(eERROR, L"Out of memory, wtf?.\n");
else TRACE(eERROR, L"Out of memory\n");
 
return result;
}
555,9 → 555,51
wcsncpy_s(mutable_password, LM20_PWLEN, randpasswd, _TRUNCATE);
ui.usri1003_password = mutable_password;
 
if(NetUserSetInfo(0, username, 1003, (LPBYTE)&ui, 0) == NERR_Success)
NET_API_STATUS apistatus;
 
apistatus = NetUserSetInfo(0, username, 1003, (LPBYTE)&ui, 0);
 
switch(apistatus)
{
case ERROR_ACCESS_DENIED:
TRACE(eERROR, L"The user does not have access to the requested information. (%d)\n", apistatus);
break;
 
case ERROR_INVALID_PARAMETER:
TRACE(eERROR, L"One of the function parameters is invalid. For more information, see the following Remarks section. (%d)\n", apistatus);
break;
 
case NERR_InvalidComputer:
TRACE(eERROR, L"The computer name is invalid. (%d)\n", apistatus);
break;
 
case NERR_NotPrimary:
TRACE(eERROR, L"The operation is allowed only on the primary domain controller of the domain. (%d)\n", apistatus);
break;
 
case NERR_SpeGroupOp:
TRACE(eERROR, L"The operation is not allowed on specified special groups, which are user groups, admin groups, local groups, or guest groups. (%d)\n", apistatus);
break;
 
case NERR_LastAdmin:
TRACE(eERROR, L"The operation is not allowed on the last administrative account. (%d)\n", apistatus);
break;
 
case NERR_BadPassword:
TRACE(eERROR, L"The share name or password is invalid. (%d)\n", apistatus);
break;
 
case NERR_PasswordTooShort:
TRACE(eERROR, L"The password is shorter than required. (The password could also be too long, be too recent in its change history, not have enough unique characters, or not meet another password policy requirement.) (%d)\n", apistatus);
break;
 
case NERR_UserNotFound:
TRACE(eERROR, L"The user name could not be found. (%d)\n", apistatus);
break;
 
case NERR_Success:
result = 1;
break;
}
 
return result;
/branches/selfserve/GINA/AnyUserUnlockGina.vcxproj
88,7 → 88,7
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<PreBuildEvent>
<Command>touch.exe build_stats.cpp</Command>
<Command>copy /b build_stats.cpp +,,</Command>
</PreBuildEvent>
<ClCompile>
<Optimization>Disabled</Optimization>
122,7 → 122,7
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<PreBuildEvent>
<Command>touch.exe build_stats.cpp</Command>
<Command>copy /b build_stats.cpp +,,</Command>
</PreBuildEvent>
<Midl>
<TargetEnvironment>X64</TargetEnvironment>
159,7 → 159,7
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<PreBuildEvent>
<Command>touch.exe build_stats.cpp</Command>
<Command>copy /b build_stats.cpp +,,</Command>
</PreBuildEvent>
<ClCompile>
<AdditionalIncludeDirectories>..\common;..\gina;..\wtl;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
190,7 → 190,7
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<PreBuildEvent>
<Command>touch.exe build_stats.cpp</Command>
<Command>copy /b build_stats.cpp +,,</Command>
</PreBuildEvent>
<Midl>
<TargetEnvironment>X64</TargetEnvironment>
/branches/selfserve/GINA/loggedout_dlg.cpp
252,6 → 252,10
{
TRACE(eINFO, L"Clicked OK but credential dialog is shown again.\n");
hwndPrompt = AddStaticPrompt(hwndDlg);
} else {
ShowWindow(GetDlgItem(hwndDlg, 1502), SW_SHOW); //Username
ShowWindow(GetDlgItem(hwndDlg, 1503), SW_SHOW); //Password
ShowWindow(GetDlgItem(hwndDlg, 1504), SW_SHOW); //Domain
}
 
break;
/branches/selfserve/GINA/GinaHook.c
300,7 → 300,7
 
TRACE(eDEBUG, L"WlxNegotiate\n");
 
SAFEDEBUGBREAK();
//SAFEDEBUGBREAK();
 
//
// Load MSGINA.DLL.
420,7 → 420,7
//*/
GetSelfServeSetting(L"Username", username, sizeof username / sizeof * username);
 
DebugBreak();
//DebugBreak();
 
//Change the selfserve user's password
if(SetSelfservePassword(username, gEncryptedRandomSelfservePassword + gEncryptedTag_len))