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
custom-login-mapping does not work #1012
Comments
If I remember correctly, the plug-in works the other way around. Login with email address in RainLoop is mapped to an IMAP user. You want to login with a user, mapped to an IMAP email login. I don't think that's possible. |
@ervee , thank you for your response. Appreciate it. Maybe I am wrong, I am not RainLoop expert :( Anybody has got any idea how to do it? |
Hi, the "Use short login" just strips the @domain.tld from the login email address and passes the part before @domain.tld to the IMAP Server for login. The Plugin goes a step further. If you put this in the plugin config: What if you disable "short login" and put this in the plugin: |
@ervee , thank you for your fast response! Logs from RainLoop: [11:51:33.875][ef3baaba] INFO[DATA]: [DATE:03.05.16][RL:1.9.4.402][PHP:5.4.45-0+deb7u2][IP:::ffff:10.0.0.59][PID:18815][nginx/1.2.1][fpm-fcgi] [11:51:34.713][d7796480] INFO[DATA]: [DATE:03.05.16][RL:1.9.4.402][PHP:5.4.45-0+deb7u2][IP:::ffff:10.0.0.59][PID:18968][nginx/1.2.1][fpm-fcgi] [11:51:35.118][a0e07e51] INFO[DATA]: [DATE:03.05.16][RL:1.9.4.402][PHP:5.4.45-0+deb7u2][IP:::ffff:10.0.0.59][PID:18992][nginx/1.2.1][fpm-fcgi] [11:51:35.314][455fbdd5] INFO[DATA]: [DATE:03.05.16][RL:1.9.4.402][PHP:5.4.45-0+deb7u2][IP:::ffff:10.0.0.59][PID:18815][nginx/1.2.1][fpm-fcgi] [11:51:35.620][ce0ddda3] INFO[DATA]: [DATE:03.05.16][RL:1.9.4.402][PHP:5.4.45-0+deb7u2][IP:::ffff:10.0.0.59][PID:18968][nginx/1.2.1][fpm-fcgi] [11:51:36.983][36133277] INFO[DATA]: [DATE:03.05.16][RL:1.9.4.402][PHP:5.4.45-0+deb7u2][IP:::ffff:10.0.0.59][PID:18992][nginx/1.2.1][fpm-fcgi] [11:51:38.784][da221e47] INFO[DATA]: [DATE:03.05.16][RL:1.9.4.402][PHP:5.4.45-0+deb7u2][IP:::ffff:10.0.0.59][PID:18815][nginx/1.2.1][fpm-fcgi] [11:52:11.485][fda45d4d] INFO[DATA]: [DATE:03.05.16][RL:1.9.4.402][PHP:5.4.45-0+deb7u2][IP:::ffff:10.0.0.59][PID:19016][nginx/1.2.1][fpm-fcgi] Configuration of plugin-custom-login-mapping: Any ideas? Thank you! |
So the plugin does not work for user to email mapping. Too bad. Then I'm out of ideas. Other than have users login to OwnCloud with the email address. But you don't want that. Perhaps RainLoop can use the user e-mail address from OwnCloud, I don't know. @RainLoop will have to comment on that. |
RainLoop is also available from ownCloud site: https://apps.owncloud.com/content/show.php/RainLoop+Webmail?content=165254 There is information:
I have provided my e-mail addres in the e-mail section of ownCloud, but still no luck. @RainLoop is something wrong with my ownCloud instance or am I doing somethin wrong? |
First, a quick explanation of how RainLoop works in your case:
or if "Try to determine user domain" is enabled RainLoop try to append "web domain" to your login. So, if you do not want to use Default Domain configuration you cannot login into RainLoop. "custom-login-mapping" plugin uses for other things: For example, if your email: "user1@domain.com", but IMAP waits "user_1_domain_com" from you. |
@RainLoop thank you for your response. Now it is clear for me. ownCloud (user): In the Settings > Personal > Type your mail server email (login) and password for autologin Is it possible to use credentials from ownCloud to log in to RainLoop? For example use e-mail address from Personal tab instead of using username? I saw in logs that ownCloud tries to pass login as email address to RainLoop. |
I think I have the meaning of the plugin right, but it still does not work. The situation: Without using the plugin, I am able to get into my account and read and send e-mails, if I actually use jano1234@example.com as e-mail address when adding the account to RainLoop. But in this case jano1234@example.com is also the From: address in the sent e-mails. I can set the Reply-To: to the correct address, but many e-mail clients do not respect this and even in cases when they do, the recipient still sees my email as received from nonexistent address jano1234@example.com. So I installed the plugin and set the rule according the hint in the window (email:user) to: But when I try to add the account by the address Jan.Novak@example.com with the plugin configured, I always get authentication failed, so it seems the plugin just does not work as stated in the issue title. If I use the username jano1234@example.com to create the account (but it surely is not right, since you are asked to fill e-mail, not username), then the situation is exactly the same as without the plugin as described above, i.e. wrong from: address - so the plugin has no effect either. ` Next MailSo\Imap\Exceptions\LoginBadCredentialsException: MailSo-Imap-Exceptions-LoginBadCredentialsException (ImapClient.php ~ 312) in /usr/share/rainloop/app/libraries/MailSo/Imap/ImapClient.php:312 Next MailSo\Imap\Exceptions\LoginBadCredentialsException: MailSo-Imap-Exceptions-LoginBadCredentialsException (ImapClient.php ~ 312) in /usr/share/rainloop/app/libraries/MailSo/Imap/ImapClient.php:312 Next RainLoop\Exceptions\ClientException: AuthError[102] in /usr/share/rainloop/app/libraries/RainLoop/Actions.php:2097 ` |
Hello,
I have installed plugin custom-login-mapping v1.0 from admin panel and... it does not work.
I have mapped as follows:
user@domain.tld:user
and in log file:
[20:42:43.359][51abd159] INFO[DATA]: [DATE:27.04.16][RL:1.9.4.402][PHP:5.4.45-0+deb7u2][IP:::ffff:10.0.0.59][PID:20747][nginx/1.2.1][fpm-fcgi]
[20:42:43.359][51abd159] INFO[DATA]: [Suhosin:off][APC:on][MB:on][PDO:mysql,pgsql,sqlite][ownCloud:true][Streams:tcp,udp,unix,udg,ssl,sslv3,tls]
[20:42:43.359][51abd159] REQUEST[NOTE]: [POST] https://domain.tld/index.php/apps/rainloop/app/?/Ajax/&q[]=/0/
[20:42:43.361][51abd159] AJAX[NOTE]: Action: DoAdminPluginSettingsUpdate
[20:42:43.362][51abd159] POST[DATA]: {"Name":"custom-login-mapping","_mapping":"usr@domain.tld:user","Action":"AdminPluginSettingsUpdate","XToken":"31ac7615dde67fda4de7f70b7ba5c05d"}
[20:42:43.368][51abd159] AJAX[DATA]: {"Action":"AdminPluginSettingsUpdate","Result":true,"Time":27}
[20:42:43.371][51abd159] INFO[MEMORY]: Memory peak usage: 6MB
[20:42:43.371][51abd159] INFO[TIME]: Time delta: 0.028517961502075
[20:42:50.872][1136c6fc] INFO[DATA]: [DATE:27.04.16][RL:1.9.4.402][PHP:5.4.45-0+deb7u2][IP:::ffff:10.0.0.59][PID:20747][nginx/1.2.1][fpm-fcgi]
[20:42:50.872][1136c6fc] INFO[DATA]: [Suhosin:off][APC:on][MB:on][PDO:mysql,pgsql,sqlite][ownCloud:true][Streams:tcp,udp,unix,udg,ssl,sslv3,tls]
[20:42:50.873][1136c6fc] REQUEST[NOTE]: [GET] https://domain.tld/index.php/apps/rainloop/app/?OwnCloudAuth
[20:42:50.874][1136c6fc] LOGIN[DATA]: The email address "user" is not complete
[20:42:51.876][1136c6fc] INFO[NOTICE]: exception 'RainLoop\Exceptions\ClientException' with message 'InvalidInputArgument[903]' in /media/c58a500a-c7fe-4ca7-a15b-24ee7fe94bfd/ownCloud/apps/rainloop/app/rainloop/v/1.9.4.402/app/libraries/RainLoop/Actions.php:2152
I am using ownCloud with Rainloop and I want to achive logging with ownCloud login (user) to rainloop. I do not want to use email address as login in ownCloud and cannot set default domain in RainLoop because people who are using RainLoop has got different domains with their emails account.
Could you please help or fix custom-login-mapping? It seems that this plugin is not working properly :(
The text was updated successfully, but these errors were encountered: