Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(user_ldap): Fix configuration creation and copy
The endpoint was not correctly registering the new prefix.

Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Oct 1, 2025
commit 12e2a0e2840eefedc0ee1120bbacc8cc479bb6dc
6 changes: 1 addition & 5 deletions apps/user_ldap/ajax/getNewServerConfigPrefix.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
\OC_JSON::callCheck();

$helper = Server::get(Helper::class);
$serverConnections = $helper->getServerConfigurationPrefixes();
sort($serverConnections);
$lk = array_pop($serverConnections);
$ln = (int)str_replace('s', '', $lk);
$nk = 's' . str_pad((string)($ln + 1), 2, '0', STR_PAD_LEFT);
$nk = $helper->getNextServerConfigurationPrefix();

$resultData = ['configPrefix' => $nk];

Expand Down
Loading