revert deleted html file and moved one folder
This commit is contained in:
taarly 2025-12-12 09:32:47 +00:00
parent 376f6ad13f
commit d6baaad963
2 changed files with 42 additions and 43 deletions

View File

@ -1,45 +1,3 @@
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>AD User anlegen</title>
</head>
<body>
<h1>AD User anlegen</h1>
<form method="post" action="ad_create_user.php">
<p>
<label>Username (sAMAccountName)<br>
<input name="username" required maxlength="32">
</label>
</p>
<p>
<label>Vorname<br>
<input name="vorname" required maxlength="64">
</label>
</p>
<p>
<label>Nachname<br>
<input name="nachname" required maxlength="64">
</label>
</p>
<p>
<label>Passwort<br>
<input name="passwort" type="password" required minlength="8" maxlength="128">
</label>
</p>
<p>
<label>Benutzergruppe (Gruppenname / DN)<br>
<input name="gruppe" required maxlength="128" placeholder="z.B. 'IT-Users'">
</label>
</p>
<button type="submit">Anlegen</button>
</form>
</body>
</html>
<?php
declare(strict_types=1);
@ -63,7 +21,7 @@ if ($username === '' || $vorname === '' || $nachname === '' || $passwort === ''
try {
$ps = new PowerShellService();
$script = __DIR__ . '/../../scripts/powershell/New-AdUserFromPhp.ps1';
$script = __DIR__ . '/../scripts/powershell/New-AdUserFromPhp.ps1';
$res = $ps->runScript($script, [
'Username' => $username,

View File

@ -0,0 +1,41 @@
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>AD User anlegen</title>
</head>
<body>
<h1>AD User anlegen</h1>
<form method="post" action="ad_create_user.php">
<p>
<label>Username (sAMAccountName)<br>
<input name="username" required maxlength="32">
</label>
</p>
<p>
<label>Vorname<br>
<input name="vorname" required maxlength="64">
</label>
</p>
<p>
<label>Nachname<br>
<input name="nachname" required maxlength="64">
</label>
</p>
<p>
<label>Passwort<br>
<input name="passwort" type="password" required minlength="8" maxlength="128">
</label>
</p>
<p>
<label>Benutzergruppe (Gruppenname / DN)<br>
<input name="gruppe" required maxlength="128" placeholder="z.B. 'IT-Users'">
</label>
</p>
<button type="submit">Anlegen</button>
</form>
</body>
</html>