-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] LDAP e-mails in viewed in comma seperated numbers #9794
Comments
Hi @Wouter0100, where exactly is this to be seen? Your screenshot unfortunately doesn't show the broader context of where that is. Cheers |
@TwizzyDizzy every single place where the e-mail adresses are shown. The context of the screenshot was in my profile when clicking on my own user in the Administration section under Users, but it also visible in the livechat when showing e-mails to users, other lists and so on. |
Thanks! Unfortunately I cannot reproduce your issue in 0.61.2. My users also come from LDAP (MS Active Directory). Cheers |
Hmm - thanks for testing! I also find this really strange, as at first it did work properly, but since some months ago stopped working properly (in earlier versions of Rocket.Chat, but I'm not sure which). When looking into the DB it seems to be stored as a binary. Could this also maybe related to the notifications issues we're seeing in #9755? Where for example a worker crashes when sending e-mail notifications, and does also not send the mobile ones (just some guess work, as I haven't looked into the code). |
Are you sure? Usually the address is not of type As for #9755 and just from my gut feeling: I don't think so. Cheers |
Thanks for looking into this! Yes - it seems to be the printed ISCII indeed, because the first characters seems to match ( When overwriting the e-mailadres in any place, it syncs back to the binary format the next sync. So as far as we currently conclude: it's stored in binary (atleast, Robo 3t says so) and is printed in ISCII. Thanks! |
When receiving the binary from Mongo, it's returned as follows:
X'es replaced, but it's base64. Not sure if that's Mongo's way of returning binary data, but when decoding the base64 to text it matches my e-mailadress. |
Hi @Wouter0100 ... this is intersting indeed. I would first like you to add your MongoDB version (as will I tomorrow). As I see it, there are - in theory and assuming that my setup is the correct(er) one because for me it works - those possibilities:
I think this is the right time to get someone from @RocketChat/core aboard. Cheers PS: Apart from anything else: you "ISCII" seems to be no spelling error, what's its relation to ASCII? |
Hey @TwizzyDizzy, thanks. I'm running Mongo 3.6.2 in a Docker container, setup by a docker compose file - which in theory should be compatible, I guess. As far as I currently understand Mongo, the field type is determined by Rocket and not explicitly set like a RDBMS. Because if this, as far I understand, the error is most likely to come from Rocket.JS or my LDAP which may serve the passwords in a particular way, which is interpreted as binary or so. Ah, - ISCII wasn't a spelling error, more a mind-mistake as I thought it was written that way out of me head. I meant ASCII! 👍 |
If that's the case ("field type is determined by Rocket"), then I agree with your assessment. My MongoDB version is 2.6.12. Cheers |
Description:
E-mails are viewed in comma seperated numbers. I have for example 2 e-mails attached to my accounts, sync'ed from LDAP:
When I overwrite my e-mail to be readable, on the next background sync it just becomes numbers again. Seems to be stored in binary or so. LDAP is correct and shows the mails in plain text.
Server Setup Information:
Steps to Reproduce:
Expected behavior:
Syncs plain text email adresses.
Actual behavior:
Syncs binary or comma seperated list of numbers for email adresses.
Relevant logs:
Using FreeIPA as LDAP provider.
The text was updated successfully, but these errors were encountered: