Browse Source
Merge pull request #55475 from nextcloud/fix/fix-user_ldap-configuration_creation
fix(user_ldap): Fix configuration creation and copy
pull/55434/head
Côme Chilliet
5 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
5 deletions
-
apps/user_ldap/ajax/getNewServerConfigPrefix.php
|
|
@ -15,11 +15,7 @@ use OCP\Server; |
|
|
|
\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]; |
|
|
|
|
|
|
|