[Owncloud] ldap user and data folder name

Arthur Schiwon blizzz at owncloud.com
Wed Aug 14 10:05:30 UTC 2013


On Mi, 2013-08-14 at 02:14 -0700, Vieri wrote:
> Hi,
> 
> I noticed that when an LDAP user logs into owncloud a user "home"
> directory is created in the data subdir. The folder name is the "LDAP
> user name" (Active Directory's sAMAccountName in my case) just like for
> the "local" admin user. However, if the LDAP user logs in and adds an
> external mount point (SMB share) then a new "user dir" is created in
> the data subdir. 

I tried it (though not with SMB but WebDAV) but I got not a second
folder.

> This time, instead of the username an ID is used (eg.
> DFA761B9-4B3C-4E35-9FA9-B84ECBCE53F2). 

What are the contents of this folder?
Can it be it is just some left over from testing configurations or so?
Can you move it somewhere else and see whether it will be recreated?

> So for any given LDAP user there
> will always be 2 subdirs in 'data'. This is wrong of course... And I'm
> sure I've made a dumb mistake in my LDAP configuration. For starters
> I'm unsure as to what I should specify in the Expert tab as far as
> UUIDs are concerned. Since I'm only using one LDAP server and one
> domain, I'm sure I won't ever have 2 subfolders within 'data' with the
> same name. So I guess I can safely disable using the LDAP UUID
> attribute. Should I be setting "Internal Username Attribute" or "UUID
> Attribute" to sAMAccountName?

Just leave it as it is.

> Here are my LDAP settings:
> Base DN: cn=users,dc=domain,dc=org
> User DN: cn=ADuser,cn=users,dc=domain,dc=org
> User Login Filter: (&(memberof=cn=vpn,cn=users,dc=domain,dc=org)(sAMAccountName=%uid))
> User List Filter: (&(memberof=cn=vpn,cn=users,dc=domain,dc=org)(objectClass=person))
> Group Filter: objectClass=group
> User Display Name Field: displayname
> Base User Tree: cn=users,dc=domain,dc=org
> User Home Folder Naming Rule: sAMAccountName
> The "expert" settings are unset (default).

Looks good!

Cheers
Arthur

> 
> I'm still using 5.0.9 (not had time to update to 5.0.10 but I don't think it matters for this particular issue).
> 
> Thanks,
> 
> Vieri
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud





More information about the Owncloud mailing list