From a3bee1815f548b534224a58508130ba53ac690a1 Mon Sep 17 00:00:00 2001 From: blaerf Date: Sun, 14 Dec 2025 07:00:41 +0000 Subject: [PATCH] public/api/create_user.php aktualisiert Inserted default OU --- public/api/create_user.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/api/create_user.php b/public/api/create_user.php index 5a83c59..9780627 100644 --- a/public/api/create_user.php +++ b/public/api/create_user.php @@ -33,6 +33,14 @@ if ($sam === '' || $pass === '') { exit; } +if ($ou === '') { + $defaultOu = (string)($config['powershell']['default_ou'] ?? ''); + if ($defaultOu !== '') { + $ou = $defaultOu; + } +} + + // Build payload $payload = [ 'samaccountname' => $sam,