Windows client login fails since upgrade from 9.0.2 to 9.1.4

possible_bug
client
ldap
9.1.x
help

#1

Steps to reproduce
1. Upgrade from 9.0.2 to 9.1.4
2. Reboot Windows Desktop PC
3. ownCloud Desktop Client starts with asking for credentials
4. filling in credentials
5. Hit ok
6. ownCloud Client asks again for the credentials
7. Hitting OK with filled in credentials for 30 times and more, no connection
8. Remove Account from Client
9. Configure the same account again
10. At the end of configuration hitting "Connect" - Client is connected.

In addition: If I disconnect the account after a succesful login, then I´m in the Loop again and need to delete the account and configure it again.

Expected behaviour
Login to ownCloud site in the client is done in background - connection is established without the need of filling in credentials

Actual behaviour
I will be asked for credentials in a loop. Sometimes it works if I wait for several minutes after reboot of the PC and then I need to hit "ok" only once.

Client configuration
Client version: Tested with 2.2.3 / 2.2.4 / 2.3.0
Client operating system: Windows 7 x64

Server configuration
Operating system: Debian 8 Jessie
Web server: Apache 2.4.10-10+deb8u7
Database: mySQL 5.5.54-0+deb8u1
PHP version: 5.6.30+dfsg-0+deb8u1
ownCloud version (see ownCloud admin page): 9.1.4 stable
Updated from an older ownCloud or fresh install: Updated from 9.0.2 and before 8.x
Special configurations (external storage, external authentication, reverse proxy, server-side-encryption): LDAP auth.

ownCloud log (data/owncloud.log)
If I hit ok and the credentials aren´t accepted no log is written in the owncloud.log - sometimes later I get this errors:

{"reqId":"WNk7EgoAAgwAAEchB8oAAAAG","remoteAddr":"87.78.93.65","app":"user_ldap","message":"Configuration Error (prefix ): either no password is given for theuser agent or a password is given, but not anLDAP agent.","level":2,"time":"2017-03-27T18:17:22+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"--"}
{"reqId":"WNk7EgoAAgwAAEchB8oAAAAG","remoteAddr":"87.78.93.65","app":"core","message":"Login failed: 'ben' (Remote IP: '87.78.93.65')","level":2,"time":"2017-03-27T18:17:22+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"--"}
{"reqId":"WNk7EgoAAgwAAEchB8oAAAAG","remoteAddr":"87.78.93.65","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 401 Username or password was incorrect\",\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\NotAuthenticated\",\"Code\":0,\"Trace\":\"#0 [internal function]: Sabre\\\\DAV\\\\Auth\\\\Plugin->beforeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#1 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#2 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(446): Sabre\\\\Event\\\\EventEmitter->emit('beforeMethod', Array)\\n#3 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(248): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#4 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(57): Sabre\\\\DAV\\\\Server->exec()\\n#5 \\\/var\\\/www\\\/owncloud\\\/remote.php(164): require_once('\\\/var\\\/www\\\/ownclo...')\\n#6 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Auth\\\/Plugin.php\",\"Line\":188,\"User\":false}","level":0,"time":"2017-03-27T18:17:22+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"--"}
{"reqId":"WNk7HgoAAgwAAAu8xAoAAAAC","remoteAddr":"87.78.93.65","app":"user_ldap","message":"Configuration Error (prefix ): either no password is given for theuser agent or a password is given, but not anLDAP agent.","level":2,"time":"2017-03-27T18:17:34+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"--"}
{"reqId":"WNk7HgoAAgwAAAu8xAoAAAAC","remoteAddr":"87.78.93.65","app":"core","message":"Login failed: 'ben' (Remote IP: '87.78.93.65')","level":2,"time":"2017-03-27T18:17:34+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"--"}
{"reqId":"WNk7HgoAAgwAAAu8xAoAAAAC","remoteAddr":"87.78.93.65","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 401 Username or password was incorrect\",\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\NotAuthenticated\",\"Code\":0,\"Trace\":\"#0 [internal function]: Sabre\\\\DAV\\\\Auth\\\\Plugin->beforeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#1 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#2 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(446): Sabre\\\\Event\\\\EventEmitter->emit('beforeMethod', Array)\\n#3 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(248): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#4 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(57): Sabre\\\\DAV\\\\Server->exec()\\n#5 \\\/var\\\/www\\\/owncloud\\\/remote.php(164): require_once('\\\/var\\\/www\\\/ownclo...')\\n#6 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Auth\\\/Plugin.php\",\"Line\":188,\"User\":false}","level":0,"time":"2017-03-27T18:17:34+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"--"}
{"reqId":"WNk7QAoAAgwAAAu@jKsAAAAE","remoteAddr":"87.78.93.65","app":"user_ldap","message":"Configuration Error (prefix ): either no password is given for theuser agent or a password is given, but not anLDAP agent.","level":2,"time":"2017-03-27T18:18:08+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"--"}
{"reqId":"WNk7QAoAAgwAAAu@jKsAAAAE","remoteAddr":"87.78.93.65","app":"core","message":"Login failed: 'ben' (Remote IP: '87.78.93.65')","level":2,"time":"2017-03-27T18:18:08+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"--"}
{"reqId":"WNk7QAoAAgwAAAu@jKsAAAAE","remoteAddr":"87.78.93.65","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 401 Username or password was incorrect\",\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\NotAuthenticated\",\"Code\":0,\"Trace\":\"#0 [internal function]: Sabre\\\\DAV\\\\Auth\\\\Plugin->beforeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#1 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#2 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(446): Sabre\\\\Event\\\\EventEmitter->emit('beforeMethod', Array)\\n#3 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(248): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#4 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(57): Sabre\\\\DAV\\\\Server->exec()\\n#5 \\\/var\\\/www\\\/owncloud\\\/remote.php(164): require_once('\\\/var\\\/www\\\/ownclo...')\\n#6 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Auth\\\/Plugin.php\",\"Line\":188,\"User\":false}","level":0,"time":"2017-03-27T18:18:08+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"--"}
{"reqId":"WNk7XgoAAgwAAAu9Lx8AAAAB","remoteAddr":"87.78.93.65","app":"user_ldap","message":"Configuration Error (prefix ): either no password is given for theuser agent or a password is given, but not anLDAP agent.","level":2,"time":"2017-03-27T18:18:38+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"--"}
{"reqId":"WNk7XgoAAgwAAAu9Lx8AAAAB","remoteAddr":"87.78.93.65","app":"core","message":"Login failed: 'ben' (Remote IP: '87.78.93.65')","level":2,"time":"2017-03-27T18:18:38+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"--"}
{"reqId":"WNk7XgoAAgwAAAu9Lx8AAAAB","remoteAddr":"87.78.93.65","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 401 Username or password was incorrect\",\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\NotAuthenticated\",\"Code\":0,\"Trace\":\"#0 [internal function]: Sabre\\\\DAV\\\\Auth\\\\Plugin->beforeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#1 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#2 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(446): Sabre\\\\Event\\\\EventEmitter->emit('beforeMethod', Array)\\n#3 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(248): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#4 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(57): Sabre\\\\DAV\\\\Server->exec()\\n#5 \\\/var\\\/www\\\/owncloud\\\/remote.php(164): require_once('\\\/var\\\/www\\\/ownclo...')\\n#6 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Auth\\\/Plugin.php\",\"Line\":188,\"User\":false}","level":0,"time":"2017-03-27T18:18:38+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"--"}
{"reqId":"WNk7XwoAAgwAADPppGoAAAAF","remoteAddr":"87.78.93.65","app":"user_ldap","message":"Configuration Error (prefix ): either no password is given for theuser agent or a password is given, but not anLDAP agent.","level":2,"time":"2017-03-27T18:18:39+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"--"}
{"reqId":"WNk7XwoAAgwAADPppGoAAAAF","remoteAddr":"87.78.93.65","app":"core","message":"Login failed: 'ben' (Remote IP: '87.78.93.65')","level":2,"time":"2017-03-27T18:18:39+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"--"}
{"reqId":"WNk7XwoAAgwAADPppGoAAAAF","remoteAddr":"87.78.93.65","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 401 Username or password was incorrect\",\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\NotAuthenticated\",\"Code\":0,\"Trace\":\"#0 [internal function]: Sabre\\\\DAV\\\\Auth\\\\Plugin->beforeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#1 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#2 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(446): Sabre\\\\Event\\\\EventEmitter->emit('beforeMethod', Array)\\n#3 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(248): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#4 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(57): Sabre\\\\DAV\\\\Server->exec()\\n#5 \\\/var\\\/www\\\/owncloud\\\/remote.php(164): require_once('\\\/var\\\/www\\\/ownclo...')\\n#6 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Auth\\\/Plugin.php\",\"Line\":188,\"User\":false}","level":0,"time":"2017-03-27T18:18:39+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"--"}

If I delete the Account in the client and configure it again, connections works and I get this error, which is normal and can´t be solved (I tried every solution in the knowledgebase):

{"reqId":"WNk8NwoAAgwAAEchB9AAAAAG","remoteAddr":"87.78.93.65","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 401 No 'Authorization: Basic' header found. Either the client didn't send one, or the server is mis-configured\",\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\NotAuthenticated\",\"Code\":0,\"Trace\":\"#0 [internal function]: Sabre\\\\DAV\\\\Auth\\\\Plugin->beforeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#1 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#2 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(446): Sabre\\\\Event\\\\EventEmitter->emit('beforeMethod', Array)\\n#3 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(248): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#4 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(57): Sabre\\\\DAV\\\\Server->exec()\\n#5 \\\/var\\\/www\\\/owncloud\\\/remote.php(164): require_once('\\\/var\\\/www\\\/ownclo...')\\n#6 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Auth\\\/Plugin.php\",\"Line\":188,\"User\":false}","level":0,"time":"2017-03-27T18:22:15+02:00","method":"GET","url":"\/remote.php\/webdav\/","user":"--"}

Please paste possible errors in the following code block, see https://central.owncloud.org/t/how-to-find-webserver-or-oc-logfile-enable-php-logfile/808 for more info

No errors in Apache error.log
No errors in php.log

I can provide more informations if you will need them.

Thanks and best regards,
Ben


#2

Does it work on the webinterface? If not it's rather a LDAP problem.


#3

Hi,

yes, it works from the Webportal, it works from WebDav-Clients on Android and it works from the Windows client in some situations. So, this is no LDAP problem - as far as I can see. All points lead me to an issue in the Wndows-Client, but this is only an educated guess.

Thanks and best regards,
Ben


#4

Hey @leobase how did you perform the 9.0.2 -> 9.1.4 upgrade if I may ask. I'm trying to reproduce with an upgraded 9.0.4 -> 9.1.4 server but not being able. Thanks! :wink:


#5

Hi,

basically, I have done my OC installation through the debian paket-manager as described in the Installation Guide. As far as I can remember there was this problem with contacts and address-book migration if you upgrade from 9.0.2 to 9.1.4. So first I started the migration of address-books and contacts, then I updated the OC installation with the paket-manager. After that, I think there was an "oc" update script which I needed to execute too and then unconfigure the maintenance mode.

The update was done a few weeks ago, so I´m not really sure if this were the steps in the right order but I´ve read the update guide and have done it the way it was described there. (Yes the information, describing the migration of the address-books is really poor, but if you follow all the links (down in the rabbit hole^^) there is somewhere this information which script you have to execute before upgrading to 9.1.4). I searched it for a long time.

If this won´t help, give me some details where you stucked and I will have a look if I can find a solution for this :slight_smile:

Best regards,
Ben


#6

Can you directly connect via webdav? Try e.g. winSCP.


#7

Hi,

thanks for the idea, but I just tried it and WebDAV using WinSCP works perfectly.

Best regards,
Ben


#8

Hi,

today I tried the installation of the newest Windows-Client on a Win 7 Pro, where no ownCloud Client was installed before. Configuration of the server and first connection worked perfectly, synchronsisation done without issues. After a reboot of the Windows-PC the issue started there too.

This is the third Windows client with the same issue, it seems not related to the Windows-Installation or installed software.

Best regards,
Ben


#9

@guruz @dragotin Can you help here?


#10

Hello,

thanks for your help, please don´t hesitate to ask about debugs or tcpdumps or whatever you will need for analysis.

Best regards,
Ben


#11

Could you run the Credential manager from Windows control panel and check what/if it has something for ownCloud there?


#12

I´ve checked it, and yes, there were "generic credentials" for my ownCloud site. I stopped the ownCloud-Client, deleted the entries in the "Windows Credential Manager" for ownCloud and started the Windows-Client again. Unfortunately I have the same behaviour as before.


#13

Hello,

I´ve opened a bug report for this:

Best regards,
Ben


#14

No, as far as the maintaner says, this is not a bug and therefore this is not solved!

So, who can help me with that? What can I do, check, proof, change to get around that error?