Folders under "data" are UUIDs when using LDAP as a backend?

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Item Value
Nextcloud version (eg, 29.0.5): 28.0.7
Operating system and version (eg, Ubuntu 24.04): CentOS 7
Apache or nginx version (eg, Apache 2.4.25): 2.4.6
PHP version (eg, 8.3): 8.1.29

The issue you are facing:

I have configured a FreeIPA LDAP backend as the authentication for our Nextcloud instance. However, instead of using usernames, email addresses, or the uid attribute from that LDAP instance, it uses some kind of UUID to name the folders in the nextcloud/data folder. Why?

Is this the first time you’ve seen this error? (Y/N):

Yes

Steps to replicate it:

  1. Connect Nextcloud to FreeIPA using the LDAP/SSO app.
  2. Perform an ls -laFh in your nextcloud/data folder.

This is standard behavior. This can be changed to follow the naming convention of your choosing.

1 Like

How? I’d prefer our system just use the uid LDAP attribute to name folders and users, but I don’t see anywhere in the LDAP config to make that possible, and I’ve looked.

Under the LDAP/AD system settings. Go to advanced settings in top right corner. Then go to folder attributes. There you can specific a naming attribute for your users.
Be warned though that it will NOT rename all existing folders, but all users created afterwards will have their Home folder named according to this setting.
It is possible to “fix” the existing folders, albeit it is a dirty hack that comes with some risk. I have done this - and written how on this community - so try and find that.

1 Like

https://docs.nextcloud.com/server/latest/admin_manual/configuration_user/user_auth_ldap.html#expert-settings

1 Like