Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

Login failed despite correct credentials #2205

Open
alve89 opened this issue Nov 4, 2016 · 6 comments
Open

Login failed despite correct credentials #2205

alve89 opened this issue Nov 4, 2016 · 6 comments

Comments

@alve89
Copy link

alve89 commented Nov 4, 2016

Affected apps

user_imap (self wrote, developed from user_external)

Expected behaviour

The user should be logged in after submitting the valid credentials

Actual behaviour

The logs say:
Warning core Login failed: 'first.last(Remote IP: '195...***')
that's it.

After submitting the login form the user is redirected back to the login form without any message that the credentials were invalid (URL: https://myowncloud.tld/temp/index.php/login?redirect_url=%252Ftemp%252Findex.php%252Fapps%252Ffiles%252F

So the login seems to be correct?!

The app does a little more than just logging in:

  • Store user to oc_users (not external! With this I have a full compatible user for everything, its password is '')
  • Set the users displayname in oc_users
  • Store the users email address in oc_preferences
  • Create all groups the user is in (data from an external user-details-server)
  • Add user to this groups

The app worked with oC 8.2.5 and does now not work with 9.1.1.

Server configuration

Operating system: Linux 3.13 (?)

Web server: Apache 2.0

Database: MySQL 5.6.33

PHP version: 7.0

ownCloud version: 9.1.1

Client configuration

Browser: FF 45.4.0

Operating system: Win 7

Logs

ownCloud log (data/owncloud.log)

Warning 	core 	Login failed: 'first.last(Remote IP: '195.***.***.***') 
@PVince81
Copy link
Contributor

PVince81 commented Nov 4, 2016

@mklemme1 @kosli @cweiske are you also seeing this with 9.1.1 ?

@mklemme1
Copy link

mklemme1 commented Nov 4, 2016

As far as I see this is a self-made app, not the stock IMAP app or my extension.
We are using my extension to apps/user_external/lib/imap.php with 9.1.1 without problems.

@alve89
Copy link
Author

alve89 commented Nov 4, 2016

Did owncloud 9 or 9.1.1 bring some new restrictions for logging in users? E.g. that the users need to be stored in users_external... Does someone know anything about this?

@PVince81
Copy link
Contributor

PVince81 commented Nov 7, 2016

@alve89 no but 9.1.1 brought some refactoring of the login code to make room for two factor auth. There should be no additional restrictions.

@alve89
Copy link
Author

alve89 commented Nov 7, 2016

@PVince81 Ok, that's weird and I don't get why it doesn't work then anymore, but I found an alternative solution with the "normal" way of storing users.

@cweiske
Copy link
Contributor

cweiske commented Feb 23, 2017

I have the same issue with user_external after upgrading from owncloud 9.0.x to 9.1.x - IMAP logins do not work anymore, despite having the correct credentials.

I even get redirected to the calendar app after login, but /index.php/apps/calendar/ redirects back to /login.


Solution: My user was in oc_users AND in oc_users_external. I guess previously if one backend failed, the next was used. Now that's not true anymore; if one fails because of "wrong password", the next is not tried as it was before.

Removing the old entry from oc_users made login work again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants