Skip to content
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

Since the upgrade from Owncloud to Nextcloud (11 and later), not all groups resolve #10431

Closed
gvansanden opened this issue Jul 27, 2018 · 4 comments

Comments

@gvansanden
Copy link

We are using Nextcloud on Ubuntu 16.04 against OpenLDAP

Steps to reproduce

  1. Install Nextcloud 11 or later
    2.Point to openldap

Expected behaviour

All groups resolve as before

Actual behaviour

Only a limited amount of groups resolve, command line listing ends in a timeout error after a long time

Server configuration

Operating system:
Ubuntu server 16.04 LTS

Web server:
Apache2

Database:
MySQL

PHP version:
7.0.15

Nextcloud version: (see Nextcloud admin page)
13.0.5 (any version since 11

Updated from an older Nextcloud/ownCloud or fresh install:
update from NC 11

Where did you install Nextcloud from:
tar file

Issue fixed by editing apps/user_ldap/lib/Group_LDAP.php
change line 831 from
str_replace('%uid', $member, $this->access->connection->ldapLoginFilter),
to
str_replace('%uid', trim($member), $this->access->connection->ldapLoginFilter),

The trim fixes it

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #4464 (Random LDAP issue after upgrading to owncloud/nextcloud), #104 (NextCloud / OwnCloud), #4721 (Cannot Upgrade from Owncloud 10.0.0.12 to Nextcloud 11.0.3), #96 (Last message during upgrade says ownCloud instead of Nextcloud), and #3109 (Unable to send e-mail since Nextcloud 11).

@rullzer
Copy link
Member

rullzer commented Jul 30, 2018

@nextcloud/ldap

@blizzz
Copy link
Member

blizzz commented Jul 31, 2018

@gvansanden since you have the fix at hand, could you open a pull request? :)

@MorrisJobke
Copy link
Member

@gvansanden since you have the fix at hand, could you open a pull request? :)

See #10775

@MorrisJobke MorrisJobke added this to the Nextcloud 14 milestone Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants