From 85b83aff5f7f756ffa7c7365a224769a22f1026f Mon Sep 17 00:00:00 2001 From: Pierre Penninckx Date: Thu, 2 May 2024 00:19:33 -0700 Subject: [PATCH] example_configs: add user_id mapping for nextcloud This allows both LDAP and SSO backends to have consistent usernames --- example_configs/nextcloud.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/example_configs/nextcloud.md b/example_configs/nextcloud.md index 3e5013e..8c29c2f 100644 --- a/example_configs/nextcloud.md +++ b/example_configs/nextcloud.md @@ -74,6 +74,7 @@ occ ldap:set-config s01 ldapUserDisplayName displayname occ ldap:set-config s01 ldapUserFilterMode 1 occ ldap:set-config s01 ldapUuidGroupAttribute auto occ ldap:set-config s01 ldapUuidUserAttribute auto +occ ldap:set-config s01 ldapExpertUsernameAttr user_id ``` With a bit of of luck, you should be able to log in your nextcloud instance with LLDAP accounts in the `nextcloud_users` group. @@ -120,6 +121,10 @@ For example: ``` ![groups configuration page](images/nextcloud_groups.png) +### Expert + +Set `Internal Username` to `user_id`. This is needed to that the user ID used by Nextcloud corresponds to the `user_id` field and not the `UUID` field. + ## Sharing restrictions Go to Settings > Administration > Sharing and check following boxes :