Initial AD bulk tool prototype

This commit is contained in:
mikisoq
2026-07-29 01:29:32 -01:00
parent 542aade40c
commit e65474beaf
12 changed files with 1372 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
namespace ADBulkTool.Models;
public sealed record AdConfig(
string Host,
int Port,
bool UseLdaps,
bool IgnoreCertificateErrors,
string SearchBaseDn,
string BindUsername,
string BindPassword);
+23
View File
@@ -0,0 +1,23 @@
namespace ADBulkTool.Models;
public static class BulkActionNames
{
public const string DisableUser = "Disable user";
public const string EnableUser = "Enable user";
public const string AddToGroup = "Add to group";
public const string RemoveFromGroup = "Remove from group";
public const string SetRandomPassword = "Set random password";
public const string ForcePasswordChange = "Set password change at next login";
public const string SetRandomPasswordAndForceChange = "Set random password + change at next login";
public static readonly string[] All =
{
DisableUser,
EnableUser,
AddToGroup,
RemoveFromGroup,
SetRandomPassword,
ForcePasswordChange,
SetRandomPasswordAndForceChange
};
}
+6
View File
@@ -0,0 +1,6 @@
namespace ADBulkTool.Models;
public sealed record UserLookupResult(
string DistinguishedName,
string SamAccountName,
int UserAccountControl);