public/api/create_user.php aktualisiert

Inserted default OU
This commit is contained in:
blaerf 2025-12-14 07:00:41 +00:00
parent 69182e5378
commit a3bee1815f

View File

@ -33,6 +33,14 @@ if ($sam === '' || $pass === '') {
exit; exit;
} }
if ($ou === '') {
$defaultOu = (string)($config['powershell']['default_ou'] ?? '');
if ($defaultOu !== '') {
$ou = $defaultOu;
}
}
// Build payload // Build payload
$payload = [ $payload = [
'samaccountname' => $sam, 'samaccountname' => $sam,