Open jdhirst opened 5 years ago
@juliushaertl @jancborchardt what about this ? when you asked to force the social account based on current nextcloud account, you were saying that this can be fixed within the LDAP setup ?
Indeed, this can be fixed in LDAP setup, however it requires using a Nextcloud name mapping which will always map to a social username.
Apart from not being a universal identified, (which could cause issues with duplicates depending on how the administrator manages their directory), this means that it can only be configured on a new instance as it would require removing all users and re-adding them with the new identifiers.
Can we not simply have this configurable? (For example, admins could have an option to use the Nextcloud username for social accounts, or to use their login name, or even the first part of their email address. This would allow administrators to use the social app in their current deployed instances.
@jdhirst1 we generally aim to have as few settings and configuration options as possible to make it just work. Is it possible for example to:
I have almost no knowledge in LDAP, but the code of the Social app allow to define a different username than the userid when creating a social account. We just need to define a way to link a user to the wanted social-username in a configurable way.
I had the same problem. You need to go to the LDAP Settings and into Expert mode. Then you can override the default UUIDs:
Unfortunetally, you will loose the connection between user and data. So you will get new users and you have to copy the files manually to the specific user folder afterwards.
@phaus thanks for your answer, would it be possible to assign the username to a custom variable and get it from the front-end ?
@phaus thanks for your answer, would it be possible to assign the username to a custom variable and get it from the front-end ?
There is no such option in Nextcloud. Keep in mind that the userID could always be super cryptic. This is the reason why we have also a login name (which is by default the email address if it is unique) and the display name. There is no way around this.
cc @schiessle @nickvergessen @rullzer Same stuff that is also with the federation ID present: the userID is the internal representation and it was a bad habit to use it in user facing parts of our system. It could be cryptic, long and only works by accident to login. We really need to think about this a bit more. :(
In federated sharing there is a similar problem, and a – given ugly – workaround to use and resolved the (last) loginname. It's stored in the user session. This also means it is (without further magic, there's nothing in place to reverse lookup a login attribute) only known after a first login.
Hi guys. My nextcloud backend is not syncing the "ou = user" userbase, but workstation import is done "ou = stations".
hi, just adding my US$0.02++
, could it just be as simple as
if using ldap
set username to %uid
or something to that effect?
@victort Hi man, how are you? Really worked after setting user to use% uid
yeah. then i have to redo my whole setup, when all the uuids are wiped and suddenly none of the files or calendars map anymore.
also, i'd like (to figure out how) to get it to not say @localhost
while i'm at it.
yay, figured it out. (it was the overwrite.cli.url
variable in config.php
)
Describe the bug When using an Active Directory LDAP backend, NextCloud social shows user as "objectGuid@server.tld". This works, however it is quite unweildy as nobody wants to be known as @5DD3ED74-0B77-4501-B8DE-D3F5687B6F99@server.tld.
To Reproduce Enable LDAP authentication with Active Directory, and install and enable social app. All user ids including federated sharing are based upon objectGUID rather than the samAccountName or other configurable value.
Expected behavior The username used to login should be used to create the social ID rather than the objectGuid from LDAP.
Server details
**Social app version:** 0.1.2 **Operating system**: CentOS 7.6.1810 **Web server:** Nginx 1.14.1-centos7.18120419 **Database:** MySQL Community 5.5.60-1.el7_5 **PHP version:** 7.2.13 **Nextcloud version:** (see Nextcloud admin page) 15.0.0