New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to login using LDAP Credentials #25588

Closed
mzaian opened this Issue Jul 24, 2016 · 5 comments

Comments

Projects
None yet
3 participants
@mzaian

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:
Apache2
Database:
MYSQL
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:

Enabled:

  • 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
    Disabled:
  • announcementcenter
  • dashboard
  • documents
  • encryption
  • external
  • files_antivirus
  • files_external
  • user_external
  • videos

Configuration:-

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

Are you using encryption: yes/no
No

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Jul 24, 2016

Looks to me like a duplicate of #23248

ghost commented Jul 24, 2016

Looks to me like a duplicate of #23248

@mzaian

This comment has been minimized.

Show comment
Hide comment
@mzaian

mzaian 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.

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.

@DeepDiver1975

This comment has been minimized.

Show comment
Hide comment
@DeepDiver1975

DeepDiver1975 Jul 25, 2016

Member

Looks to me like a duplicate of #23248

yes

Member

DeepDiver1975 commented Jul 25, 2016

Looks to me like a duplicate of #23248

yes

@DeepDiver1975

This comment has been minimized.

Show comment
Hide comment
@DeepDiver1975

DeepDiver1975 Jul 25, 2016

Member

Please help testing - #25598

Member

DeepDiver1975 commented Jul 25, 2016

Please help testing - #25598

@philhenri34

This comment has been minimized.

Show comment
Hide comment
@philhenri34

philhenri34 Sep 16, 2016

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

philhenri34 commented Sep 16, 2016

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