Hi crowd!
I am testing a new Nextcloud installation (AIO 6.2.1, Nextcloud 27.0.0) with docker on Debian 11.
The goal is to use Authentik as LDAP backend instead of Active Directory. An LDAP outpost has been deployed and the LDAP configuration is validated all the way through. I can log in with LDAP users. So far so good.
When opening the āUsersā screen (/settings/users) however, this shows an āInternal Server Errorā page. Controls that should show lists of available users or groups -like to setup group folders- stay empty.
Nextcloud log entry when trying to display users:
PHP ldap_search(): Search: Operations error at /var/www/html/apps/user_ldap/lib/LDAP.php#306
and
[index] Error: Exception: LDAP Operations error at <>
- /var/www/html/apps/user_ldap/lib/LDAP.php line 411
OCA\User_LDAP\LDAP->processLDAPError(ā*** sensitive parameters replaced ", " sensitive parameters replaced ***ā, 1, āOperations errorā)- /var/www/html/apps/user_ldap/lib/LDAP.php line 308
OCA\User_LDAP\LDAP->postFunctionCall(ā*** sensitive parameters replaced ***ā)- /var/www/html/apps/user_ldap/lib/LDAP.php line 214
OCA\User_LDAP\LDAP->invokeLDAPMethod(ā*** sensitive parameters replaced ***ā)- <>
OCA\User_LDAP\LDAP->search(ā*** sensitive parameters replaced ", " sensitive parameters replaced ", " sensitive parameters replaced ", " sensitive parameters replaced ", " sensitive parameters replaced ", " sensitive parameters replaced ", " sensitive parameters replaced ", " sensitive parameters replaced ***ā)- /var/www/html/apps/user_ldap/lib/Access.php line 1065
call_user_func_array([["OCA\User_LDA ⦠ā], [ā*** sensitive ⦠"])- /var/www/html/apps/user_ldap/lib/Access.php line 1068
OCA\User_LDAP\Access->OCA\User_LDAP{closure}(ā*** sensitive parameters replaced ***ā)- /var/www/html/apps/user_ldap/lib/Access.php line 1126
OCA\User_LDAP\Access->invokeLDAPMethod(ā*** sensitive parameters replaced ***ā)- /var/www/html/apps/user_ldap/lib/Access.php line 1290
OCA\User_LDAP\Access->executeSearch(ā*** sensitive parameters replaced ", " sensitive parameters replaced ", " sensitive parameters replaced ", " sensitive parameters replaced ", " sensitive parameters replaced ***ā)- /var/www/html/apps/user_ldap/lib/Access.php line 1007
OCA\User_LDAP\Access->search(ā*** sensitive parameters replaced ", " sensitive parameters replaced ", " sensitive parameters replaced ", null, " sensitive parameters replaced ***ā)- /var/www/html/apps/user_ldap/lib/Access.php line 935
OCA\User_LDAP\Access->searchGroups(ā*** sensitive parameters replaced ", " sensitive parameters replaced ", null, " sensitive parameters replaced ***ā)- /var/www/html/apps/user_ldap/lib/Group_LDAP.php line 1090
OCA\User_LDAP\Access->fetchListOfGroups(ā*** sensitive parameters replaced ", " sensitive parameters replaced ", null, " sensitive parameters replaced ***ā)- /var/www/html/apps/user_ldap/lib/Group_Proxy.php line 270
OCA\User_LDAP\Group_LDAP->getGroups(ā*** sensitive parameters replaced ", null, " sensitive parameters replaced ***ā)- /var/www/html/lib/private/Group/Manager.php line 246
OCA\User_LDAP\Group_Proxy->getGroups(ā*** sensitive parameters replaced ", " sensitive parameters replaced ", " sensitive parameters replaced ***ā)- /var/www/html/lib/private/Group/MetaData.php line 188
OC\Group\Manager->search(ā*** sensitive parameters replaced ***ā)- /var/www/html/lib/private/Group/MetaData.php line 93
OC\Group\MetaData->getGroups(ā*** sensitive parameters replaced ***ā)- /var/www/html/apps/settings/lib/Controller/UsersController.php line 198
OC\Group\MetaData->get()- /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 230
OCA\Settings\Controller\UsersController->usersList()- /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 137
OC\AppFramework\Http\Dispatcher->executeController(["OCA\Settings\ ⦠"], āusersListā)- /var/www/html/lib/private/AppFramework/App.php line 183
OC\AppFramework\Http\Dispatcher->dispatch(["OCA\Settings\ ⦠"], āusersListā)- /var/www/html/lib/private/Route/Router.php line 315
OC\AppFramework\App::main(āOCA\Settings\ ⦠rā, āusersListā, ["OC\AppFramewo ⦠"], [āsettings.Users.usersListā])- /var/www/html/lib/base.php line 1064
OC\Route\Router->match(ā/settings/usersā)- /var/www/html/index.php line 36
OC::handleRequest()GET /settings/users
from ************* by admin at 2023-06-30T22:42:26+00:00
Trying to list users or adding users to a group with occ also throws an error
In LDAP.php line 379:
LDAP Operations error
I have added the ālegacy supportā line to the location block of NGINX reverse proxy in front of the containers.
In advanced settings for the LDAP app following changes were made:
-User Display Name Field: name
-Base User Tree: ou=users,dc=ldap,dc=goauthentik,dc=io
-User Search Attributes: name
-Group Display Name Field: cn
-Base Group Tree: ou=groups,dc=ldap,dc=goauthentik,dc=io
-Group Search Attributes: cn
And enabled ānested groupsā (which does not seem to be working, had to all child groups in the LDAP filters to make them show up in the count in the āgroupsā page)
On the Expert page, āInternal Username Attributeā is changed to uid.
All other config is pretty much AIO out-of-the-box.
With this configuration, the user and group counts on the configuration pages are correct, the login tests succeed and users can actually log in with their usernames correctly displayed and everything looking good. Just the user management is not available as admin.
If there anything I can test or information I can supply to shed some light on this issue, would love to get this working!
Thanks in advance