user_oidc icon indicating copy to clipboard operation
user_oidc copied to clipboard

Nextcloud + Keycloak + Lowercase

Open brtptrs opened this issue 2 years ago • 2 comments

Hi,

we've decided to switch our NC authentication from username+password to openid-conect using Keycloak and user_oidc

Everything seemed to work fine but:

  1. In NC many of our usernames contain uppercase letters
  2. Keycloak converts all usernames to lowercase
  3. For users with uppercase usernames user_oidc creates new duplicate, lowercase accounts, instead of logging into the existing accounts
  4. Renaming users in NC is almost impossible since we have many users with lots of files

Can this behavior be changed?

brtptrs avatar Aug 01 '23 12:08 brtptrs

We've hacked away at the provisioning code and have come up with a solution that seems to work for us. Since we usually don't do Nextcloud coding, it would be great if someone could take a look at the patch, so see if it contains any major blunders.

camelcase-patch.zip

brtptrs avatar Aug 04 '23 10:08 brtptrs

Using this hack, the entries in the user_oidc table can differ from what is returned by Keycloak. Does this have any negative consequences?

brtptrs avatar Aug 04 '23 13:08 brtptrs