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;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($ou === '') {
|
||||||
|
$defaultOu = (string)($config['powershell']['default_ou'] ?? '');
|
||||||
|
if ($defaultOu !== '') {
|
||||||
|
$ou = $defaultOu;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Build payload
|
// Build payload
|
||||||
$payload = [
|
$payload = [
|
||||||
'samaccountname' => $sam,
|
'samaccountname' => $sam,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user