public/api/create_user.php aktualisiert
Inserted default OU
This commit is contained in:
parent
69182e5378
commit
a3bee1815f
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user