Unable to login using LDAP Credentials #25588

mzaian opened this Issue Jul 24, 2016 · 5 comments


None yet

3 participants

mzaian commented Jul 24, 2016

After upgrading from 9.0.3 to 9.0.4 my users are unable to login using their LDAP credentials.

The Apache server error log files shows the following repeatedly :-

PHP Fatal error: Call to undefined method OCA\user_ldap\lib\user\OfflineUser::composeAndStoreDisplayName() in /var/www/owncloud/apps/user_ldap/user_ldap.php on line 386

Server configuration

Ubuntu 14.04.4 LTS

Web server:
PHP version:
PHP 5.5.9-1ubuntu4.16
ownCloud version: (see ownCloud admin page)
9.0.4 Stable
Updated from an older ownCloud or fresh install:
Updated since version 5.*

List of activated apps:


  • activity: 2.2.1
  • comments: 0.2
  • dav: 0.1.6
  • federatedfilesharing: 0.1.0
  • federation: 0.0.4
  • files: 1.4.4
  • files_pdfviewer: 0.8.1
  • files_sharing: 0.9.1
  • files_texteditor: 2.1
  • files_trashbin: 0.8.0
  • files_versions: 1.2.0
  • files_videoplayer: 0.9.8
  • firstrunwizard: 1.1
  • gallery: 14.5.0
  • notifications: 0.2.3
  • provisioning_api: 0.4.1
  • systemtags: 0.2
  • templateeditor: 0.1
  • updatenotification: 0.1.0
  • user_ldap: 0.8.0
  • announcementcenter
  • dashboard
  • documents
  • encryption
  • external
  • files_antivirus
  • files_external
  • user_external
  • videos


"system": {
"instanceid": "oc2a931c8470",
"passwordsalt": "_REMOVED SENSITIVE VALUE",
"datadirectory": "/data/owncloud/data",
"dbtype": "mysql",
"version": "",
"dbname": "owncloud",
"dbhost": "localhost",
"dbtableprefix": "oc
"installed": true,
"loglevel": "4",
"log_rotate_size": 104857600,
"ldapIgnoreNamingRules": false,
"theme": "",
"maintenance": false,
"trusted_domains": [
"share_folder": "/Shared",
"mail_smtpmode": "sendmail",
"mail_from_address": "owncloud-test",
"mail_domain": "MY-DOMAIN-REMOVED",
"trashbin_retention_obligation": "auto",
"versions_retention_obligation": "auto",
"updatechecker": false,
"appstore.experimental.enabled": false

Are you using encryption: yes/no

ghost commented Jul 24, 2016

Looks to me like a duplicate of #23248

mzaian commented Jul 24, 2016

Just to mention i think its totally different because i do not have owncloud news app enabled nor android users. Login is not working for LDAP users url or desktop client.


Looks to me like a duplicate of #23248



Please help testing - #25598


owncloud 9.0.4 same issue after UG 8.2.7 To 9.0.4
*#sudo -u apache php ldap:search cam
is OK for the ldap user cam
but for the ldap user bor
*#sudo -u apache php ldap:search bor
it returns this issue : PHP Fatal error: Call to undefined method OCA\user_ldap\lib\user\OfflineUser::composeAndStoreDisplayName() in /var/www/owncloud/apps/user_ldap/user_ldap.php on line 386
I guess it was a issue somewhere in the database mysql. The user bor said me, he used an old owwncloud client (1.7 ?)
First, I delete the user
#sudo -u apache php occ ldap:check-user d0b57bd4-...
#sudo -u apache php occ user:delete d0b57bd4-...
Nothing's changed
To debug,I log the query in mariadb (general_log=1)
And I delete entry related to the user in tables :
DELETE * FROM oc_ldap_user_mapping WHERE ldap_dn like '%bor%'
DELETE * FROM oc_preferences WHERE userid = 'd0b57bd4-...'
DELETE * FROM oc_ldap_group_mapping WHERE ldap_dn like '%bor%'
DELET * FROM oc_share WHERE uid_owner = 'db53b542-...' : this was the issue. This user db53b542-... was sharing a file with him, and after deleting ths share, the ldap::search return his displayName

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment