Closed as149 closed 3 years ago
Hi! Right now the OC login needs to be an email address, and with the same password it logs into RC. OC provides the user with an optional email field (through personal config). Do your users log into RC with that email and the same OC password? Or RC credentials are a completely different set?
Hi, yes login credentials in RC are the same as in OC. Til now all users login to OC with username without "@domain". Even I login in OC with my email-address, Roundcube-App says still that my Username isn't an email address. So Roundcube App doesn't use the login I actually use (username with @domain) in OC, but the login saved in OC's database (username without @domain).
That's right, RC app uses OC uid, which is your login (without the domain: johndoe), that's why it doesn't log in. I need to setup a test environment first, but I'll add it anyway.
So, the case to implement would be like this:
Hi, It Sounds good. That's what I'm looking for.
Hi. You can take data from the owncloud database table os_accounts column email.
YOU can use the function getEMailAddress
What is needed to implement this project?
I have OC (RC , and other) users from LDAP (AD) -> only username auth. E-mail is not set in OC.
Any update on this?
@as149 @flionet89 Here's a PR with the code to be tested for this feature.
Could you please test it? If it passes, I can merge and release a new version.
I tried to use the new version. It does not work. If login and email are the same then it works. If different, then no.
Just in case, when using the email user, the login to OC (UID) can't be an email address, because if it is, it'll use it. Also, could you paste the log messages please?
Hi. LOG
{"reqId":"9u04rwBm9JFHgKAC6QLO","level":2,"time":"2020-04-02T06:17:15+00:00","remoteAddr":"192.168.3.9","user":"borodinryu","app":"roundcube","method":"GET","url":"\/apps\/roundcube\/","message":"OCA\RoundCube\BackLogin::sendRequest: Opening url '?_task=login' failed with '
That error is related to configuration: Did you set at least the default RC path? e.g.: roundcube1/ See the readme for more details.
I use roundcube 1.4.1 Proxying is configured on nginx. Mail site open.
Unfortunately does not work. It works according to the rules of the main plugin. If someone has earned write. Maybe I'm doing something wrong.
Hello. After the modification, the script started working.
PR was merged.
Hi, all my Owncloud-User have Usernames without "@domainname". So I can't open the Roundcube-App. It apperas the error message "Username 'USERNAME' is not an email address." The older Roundcube App by hypery2k has Usersettings, where you can set a different Username for Roundcube. Owncloud itself have no option to change Usernames. So I would have to recreate all users. Is it possible to implement Usersettings again? Greetings stizi