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 authored and backportbot[bot] committed Oct 2, 2025
commit b42955456eec6e52b4ddc62424b71d1dc748c922
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