LDAP users cannot log into Android App

ldap
help

#1

Please help us by providing the following info.

Steps to reproduce
1. Log into Android app using an LDAP user

Expected behaviour
Should let me in like it does for a local owncloud account using Android App or using LDAP account on web interface.

Actual behaviour
Get "Server took too long to respond message" in the app and Invalid Credentials in the Owncloud log.

Mobile client configuration
Client OS (iOS, Android, ...): Android
Client version: 2.1.1

Server configuration
Operating system: CentOS
Web server: Apache
Database: sqlite
PHP version: 7.0.10
ownCloud version (see ownCloud admin page): 8.2.7
Updated from an older ownCloud or fresh install: updated
ownCloud log (data/owncloud.log):

{"reqId":"X9cB0WrXgY03RBOKR2aM","remoteAddr":"66.87.149.233","app":"PHP","message":"Function ldap_sort() is deprecated at \/var\/www\/html\/owncloud\/apps\/user_ldap\/lib\/ldap.php#264","level":3,"time":"2016-09-06T15:02:20+00:00"}
{"reqId":"X9cB0WrXgY03RBOKR2aM","remoteAddr":"66.87.149.233","app":"PHP","message":"Function ldap_sort() is deprecated at \/var\/www\/html\/owncloud\/apps\/user_ldap\/lib\/ldap.php#264","level":3,"time":"2016-09-06T15:02:20+00:00"}
{"reqId":"X9cB0WrXgY03RBOKR2aM","remoteAddr":"66.87.149.233","app":"PHP","message":"Function ldap_sort() is deprecated at \/var\/www\/html\/owncloud\/apps\/user_ldap\/lib\/ldap.php#264","level":3,"time":"2016-09-06T15:02:20+00:00"}
{"reqId":"X9cB0WrXgY03RBOKR2aM","remoteAddr":"66.87.149.233","app":"PHP","message":"Function ldap_sort() is deprecated at \/var\/www\/html\/owncloud\/apps\/user_ldap\/lib\/ldap.php#264","level":3,"time":"2016-09-06T15:02:20+00:00"}
{"reqId":"X9cB0WrXgY03RBOKR2aM","remoteAddr":"66.87.149.233","app":"PHP","message":"Function ldap_sort() is deprecated at \/var\/www\/html\/owncloud\/apps\/user_ldap\/lib\/ldap.php#264","level":3,"time":"2016-09-06T15:02:20+00:00"}
{"reqId":"X9cB0WrXgY03RBOKR2aM","remoteAddr":"66.87.149.233","app":"PHP","message":"Function ldap_sort() is deprecated at \/var\/www\/html\/owncloud\/apps\/user_ldap\/lib\/ldap.php#264","level":3,"time":"2016-09-06T15:02:20+00:00"}
{"reqId":"X9cB0WrXgY03RBOKR2aM","remoteAddr":"66.87.149.233","app":"PHP","message":"Function ldap_sort() is deprecated at \/var\/www\/html\/owncloud\/apps\/user_ldap\/lib\/ldap.php#264","level":3,"time":"2016-09-06T15:02:20+00:00"}
{"reqId":"X9cB0WrXgY03RBOKR2aM","remoteAddr":"66.87.149.233","app":"PHP","message":"Function ldap_sort() is deprecated at \/var\/www\/html\/owncloud\/apps\/user_ldap\/lib\/ldap.php#264","level":3,"time":"2016-09-06T15:02:20+00:00"}
{"reqId":"X9cB0WrXgY03RBOKR2aM","remoteAddr":"66.87.149.233","app":"PHP","message":"Function ldap_sort() is deprecated at \/var\/www\/html\/owncloud\/apps\/user_ldap\/lib\/ldap.php#264","level":3,"time":"2016-09-06T15:02:20+00:00"}
{"reqId":"X9cB0WrXgY03RBOKR2aM","remoteAddr":"66.87.149.233","app":"PHP","message":"Function ldap_sort() is deprecated at \/var\/www\/html\/owncloud\/apps\/user_ldap\/lib\/ldap.php#264","level":3,"time":"2016-09-06T15:02:20+00:00"}
{"reqId":"X9cB0WrXgY03RBOKR2aM","remoteAddr":"66.87.149.233","app":"user_ldap","message":"Bind failed: 49: Invalid credentials","level":2,"time":"2016-09-06T15:02:25+00:00"}
{"reqId":"X9cB0WrXgY03RBOKR2aM","remoteAddr":"66.87.149.233","app":"core","message":"Login failed: 'jmlynch' (Remote IP: '66.87.149.233')","level":2,"time":"2016-09-06T15:02:25+00:00"}

Special configurations (external storage, external authentication, reverse proxy, server-side-encryption):