Login failed even with correct password

Ask all your questions regarding OC 8.0 and 8.1 Please read the Support Forum Rules
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
scorbot-er
Newbie
Posts: 4
Joined: Mon Jun 20, 2016 4:38 pm
ownCloud version: 8.0.3
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4.37

Login failed even with correct password

Postby scorbot-er » Mon Jun 20, 2016 4:51 pm

Hi,
some users can't access anymore even if password is correct and even if I reset it as administrator.

I didn't update the 8.0 fresh install, so I really don't know why this is happening.

Steps to reproduce
1. Access to login page
2. Insert correct username and password

Expected behaviour
The user logs in

Actual behaviour
The user is informed that username or password are wrong

Server configuration
Operating system: Ubuntu 14
Web server: Apache
Database: MySQL
PHP version: 5.4.37
ownCloud version (see ownCloud admin page): 8.0
Updated from an older ownCloud or fresh install: Fresh Install
ownCloud log (data/owncloud.log): Login failed: 'mickeymouse' (Remote IP: 'xxx.xxx.xxx.xxx', X-Forwarded-For: '')

tflidd
Forum Moderator
Posts: 7159
Joined: Sat Dec 07, 2013 7:27 pm
ownCloud version: 8.2.3
Webserver: Apache
Database: MySQL
OS: Linux

Re: Login failed even with correct password

Postby tflidd » Mon Jun 20, 2016 5:19 pm

Does the password contain special characters?

scorbot-er
Newbie
Posts: 4
Joined: Mon Jun 20, 2016 4:38 pm
ownCloud version: 8.0.3
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4.37

Re: Login failed even with correct password

Postby scorbot-er » Mon Jun 20, 2016 5:25 pm

No...

tflidd
Forum Moderator
Posts: 7159
Joined: Sat Dec 07, 2013 7:27 pm
ownCloud version: 8.2.3
Webserver: Apache
Database: MySQL
OS: Linux

Re: Login failed even with correct password

Postby tflidd » Mon Jun 20, 2016 5:46 pm

Have you enabled the user_external app (you shouldn't)? Are there other errors in your logfile (webserver logfiles)? Can you see any difference between the users who can login and those who can't?

If possible, you should run the latest version of owncloud 8.0 which is 8.0.13. But this shouldn't be related to your problem.

scorbot-er
Newbie
Posts: 4
Joined: Mon Jun 20, 2016 4:38 pm
ownCloud version: 8.0.3
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4.37

Re: Login failed even with correct password

Postby scorbot-er » Mon Jun 20, 2016 7:53 pm

1. I've not enabled the user_external app
2. No error in the apache error_log
3. No differences between these users and the others

I sincerely don't know how to find where the problem is

tflidd
Forum Moderator
Posts: 7159
Joined: Sat Dec 07, 2013 7:27 pm
ownCloud version: 8.2.3
Webserver: Apache
Database: MySQL
OS: Linux

Re: Login failed even with correct password

Postby tflidd » Tue Jun 21, 2016 8:44 am

Right now, I have no further idea. And it makes no difference if you login via webinterface, webdav, oc-client, ...?
There were some reports with problems related to mobile logins: https://github.com/owncloud/core/issues/18014
In that case an update to a newer owncloud version helped.

Verify that you use OC 8.0.13, update if this is not the case and then report to the developers on github. For OC 8.0, there are only security fixes, so perhaps you have to upgrade even further to 8.1 or even 8.2 (https://github.com/owncloud/core/wiki/M ... e-Schedule) to get a possible bug fixed.

scorbot-er
Newbie
Posts: 4
Joined: Mon Jun 20, 2016 4:38 pm
ownCloud version: 8.0.3
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4.37

Re: Login failed even with correct password

Postby scorbot-er » Tue Jun 21, 2016 8:53 am

Then I fixed it!
I accessed the Owncloud Db table "oc_users" and discovered the password field of those users facing the problem was empty! And no way to fill it using the web interface. So, directly working on the db table "oc_users", I copied the crypted password of my account into the password field of the record related to those accounts facing the problem. Then, using the web interface and my password, I managed to access the profile of those usersand finally I changed their password. From there on, it is finally saving passwords.


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Server 8.0 and 8.1”

Who is online

Users browsing this forum: No registered users and 2 guests