deleted html file and moved one folder
This commit is contained in:
parent
cdbdb2df3b
commit
376f6ad13f
@ -1,41 +0,0 @@
|
|||||||
<!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>
|
|
||||||
@ -1,3 +1,45 @@
|
|||||||
|
<!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
|
<?php
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
@ -21,7 +63,7 @@ if ($username === '' || $vorname === '' || $nachname === '' || $passwort === ''
|
|||||||
try {
|
try {
|
||||||
$ps = new PowerShellService();
|
$ps = new PowerShellService();
|
||||||
|
|
||||||
$script = __DIR__ . '/../scripts/powershell/New-AdUserFromPhp.ps1';
|
$script = __DIR__ . '/../../scripts/powershell/New-AdUserFromPhp.ps1';
|
||||||
|
|
||||||
$res = $ps->runScript($script, [
|
$res = $ps->runScript($script, [
|
||||||
'Username' => $username,
|
'Username' => $username,
|
||||||
Loading…
Reference in New Issue
Block a user