Share Files & LDAP

Please help us by providing the following info. Before posting please also check the pinned "Known issues" thread.

Steps to reproduce
1. Install LDAP and connect to Active Directory
2. Install Share Files

Expected behaviour
Users should be able to login and share files from Owncloud

Actual behaviour
Once Share Files is installed LDAP users can no longer login. They get a "Access forbidden CSRF check failed".
If I uninstall Share Files they can login in without any issues.
Local users can log in.

Server configuration
Operating system: CentOS 7.2
Web server: httpd-2.4.6-40.el7.centos.4.x86_64
Database: mariadb-5.5.47-1.el7_2.x86_64mariadb-5.5.47-1.el7_2.x86_64
PHP version: php56w-5.6.23-1.w7.x86_64
ownCloud version (see ownCloud admin page): ownCloud 9.1.0 (stable)
Updated from an older ownCloud or fresh install: Updated from 8.2, then 9.0 and then 9.1
ownCloud log (data/owncloud.log, see

Special configuration (external storage, external authentication, reverse proxy, server-side-encryption): No special config

Integrity status for oC9+

Login as admin user into your ownCloud and access
paste the results here.

Very likely related to this bugreport:

Seems to be the same problem.