jsxc / xmpp-cloud-auth

:key: Authentication hub for Nextcloud+JSXC→Prosody, ejabberd, saslauthd, Postfix
https://www.jsxc.org
MIT License
59 stars 18 forks source link

Nextcloud username capitalization issue #37

Closed hftl-kalle closed 5 years ago

hftl-kalle commented 6 years ago

Using ejabber and Nextcloud the following issue occurs. If the user logs into Nextcloud with a username that is not all lower caps, a different user is created/used with the same name for use in jsxc. This user cannot add any other users and it has no valid user icon whereas the lower caps user would have the usericon used in Nextcloud.

This does not happen if you login after logging out when using jsxc. Any capitalization in the username results in the correct username/user being used for jsxc/ejabber

MarcelWaldvogel commented 6 years ago

I would call this an ejabberd problem.

XEP-0029 says:

Case is preserved, but comparisons will be made in case-normalized canonical form.

Could you please report this to ejabberd? I will be thinking whether there would be any adverse effects if we just lower-cased the JID as part of xcauth

MarcelWaldvogel commented 5 years ago

Closing due to inactivity