LeonardoRM / owncloud-roundcube

OwnCloud app to integrate RoundCube Webmail
GNU Affero General Public License v3.0
5 stars 14 forks source link

Username not an Email-Address #4

Closed as149 closed 3 years ago

as149 commented 5 years ago

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

LeonardoRM commented 5 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?

as149 commented 5 years ago

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).

LeonardoRM commented 5 years ago

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:

as149 commented 5 years ago

Hi, It Sounds good. That's what I'm looking for.

flionet89 commented 5 years ago

Hi. You can take data from the owncloud database table os_accounts column email.

flionet89 commented 5 years ago

YOU can use the function getEMailAddress

flionet89 commented 5 years ago

What is needed to implement this project?

yawamdam commented 4 years ago

I have OC (RC , and other) users from LDAP (AD) -> only username auth. E-mail is not set in OC.

as149 commented 4 years ago

Any update on this?

LeonardoRM commented 4 years ago

@as149 @flionet89 Here's a PR with the code to be tested for this feature.

8 FEAT/4-email-as-username

Could you please test it? If it passes, I can merge and release a new version.

flionet89 commented 4 years ago

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.

LeonardoRM commented 4 years ago

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?

flionet89 commented 4 years ago

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 ' malformed'"} {"reqId":"9u04rwBm9JFHgKAC6QLO","level":3,"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::login: Could not get login page."}

LeonardoRM commented 4 years ago

That error is related to configuration: Did you set at least the default RC path? e.g.: roundcube1/ See the readme for more details.

flionet89 commented 4 years ago

I use roundcube 1.4.1 Proxying is configured on nginx. Mail site open. изображение

flionet89 commented 4 years ago

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.

flionet89 commented 3 years ago

Hello. After the modification, the script started working.

LeonardoRM commented 3 years ago

PR was merged.