Hello guys i have nextcloud set up syncing with ldap and also have SSO enabled via keycoak
The keycloak server syncs with the very same ldap server nextcloud syncs.
The problem is that upon importing users nextcloud understands them as two different accounts even though they have the same username/email etc .Everything is identical since they are coming from the same ldap database.
E.G
This user is the same both in nc & keycloack but its understanded as 2 different accounts who has same name,email just the id added from the keycloak.
How can i marge those accounts , am only asking since rocket.chat does this automatically so it should be possible in here as well but i can’t think how.
In the “Intergation LDAP/AD” menu from the Admin user, if you go in the “Expert” tab, it is possible to change the UUID used to creat the account by something else like “uid”.
In the “Social Login / Custom OpenID Connect” menu, the “” Internal name" will be used to creat the user by adding " Internal name"-“uid”
But I don’t succed to :
add a fixed chain befor “uid” in the Expert menu (something like "keycloak-"uid instead of uid)
creat a social Login without “Internal name”
any idea to have the same identifier with “Intergation LDAP/AD” and “Social Login” ?
A work around that “works”…
In the ldap creat a custom fields “nextcloudUid”
put inside for each user that have a account in nextcloud “keycloak-uid” with the uid of the current user.
=> and in nextcloud / LDAP / expert menu, add in the UUID fiel “nextcloudUid”
and both keycloak and Ldap login goes to the same account…
it is partialy Sloved because you have for each user to set the new fieldd nextcloudUid …