From 2b3cdd58d6c957d1839690bea54618d2900a2cc8 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 26 Feb 2025 18:11:29 +0100 Subject: [PATCH] chenged ldap_uid to preferred_username --- roles/docker-nextcloud/README.md | 5 +++++ roles/docker-nextcloud/templates/oidc.config.php.j2 | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/roles/docker-nextcloud/README.md b/roles/docker-nextcloud/README.md index 72aff6d3..a3d86c61 100644 --- a/roles/docker-nextcloud/README.md +++ b/roles/docker-nextcloud/README.md @@ -94,6 +94,11 @@ docker-compose exec -it -u www-data application /var/www/html/occ ``` ### User Administration +#### List Users +```bash +docker compose exec -it -u www-data application php occ user:list +``` + #### Create user via CLI ```bash docker compose exec -it -u www-data application php occ user:add {{username}} diff --git a/roles/docker-nextcloud/templates/oidc.config.php.j2 b/roles/docker-nextcloud/templates/oidc.config.php.j2 index 90e49a4b..73019de8 100644 --- a/roles/docker-nextcloud/templates/oidc.config.php.j2 +++ b/roles/docker-nextcloud/templates/oidc.config.php.j2 @@ -98,7 +98,7 @@ return array ( 'mail' => 'email', # 'quota' => 'nextcloudQuota', # Not implemented yet # 'home' => 'homeDirectory', # Not implemented yet - 'ldap_uid' => '{{ldap.attributes.user_id}}', + 'ldap_uid' => 'preferred_username', # 'groups' => 'ownCloudGroups', # Not implemented yet # 'login_filter' => 'realm_access_roles', // 'photoURL' => 'picture',