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

Lost connection to LDAP server #3655

Closed
nikaro opened this issue Feb 28, 2017 · 4 comments
Closed

Lost connection to LDAP server #3655

nikaro opened this issue Feb 28, 2017 · 4 comments

Comments

@nikaro
Copy link

nikaro commented Feb 28, 2017

Steps to reproduce

  1. Have a working LDAP backend configuration on 11.0.1
  2. Upgrade to 11.0.2
  3. Try to connect or reconfigure LDAP settings

Expected behaviour

I should be able to use the LDAP backend.

Actual behaviour

Internal error if i try to connect with a LDAP user.
If i try to reconfigure LDAP settings i get "Lost connection to LDAP server" error.

Server configuration

Operating system: Ubuntu 16.04

Web server: Apache 2.4

Database: MariaDB

PHP version: 7.0

Nextcloud version: 11.0.2

Updated from an older Nextcloud/ownCloud or fresh install: fresh install

Where did you install Nextcloud from: Nextcloud downloaded archive

List of activated apps:

App list
Enabled:
  - activity: 2.4.1
  - announcementcenter: 3.0.0
  - bookmarks: 0.9.1
  - calendar: 1.5.0
  - comments: 1.1.0
  - contacts: 1.5.3
  - dav: 1.1.1
  - external: true
  - federatedfilesharing: 1.1.1
  - federation: 1.1.1
  - files: 1.6.1
  - files_markdown: 1.0.1
  - files_pdfviewer: 1.0.1
  - files_sharing: 1.1.1
  - files_texteditor: 2.2
  - files_trashbin: 1.1.0
  - files_versions: 1.4.0
  - files_videoplayer: 1.0.0
  - firstrunwizard: 2.0
  - keeweb: 0.3.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.0.0
  - news: 10.1.0
  - notifications: 1.0.1
  - provisioning_api: 1.1.0
  - rainloop: 4.26.1
  - serverinfo: 1.1.1
  - sharebymail: 1.0.1
  - survey_client: 0.1.5
  - systemtags: 1.1.3
  - tasks: 0.9.4
  - theming: 1.1.1
  - twofactor_backupcodes: 1.0.0
  - updatenotification: 1.1.1
  - user_ldap: 1.1.2
  - workflowengine: 1.1.1
Disabled:
  - admin_audit
  - encryption
  - files_accesscontrol
  - files_automatedtagging
  - files_external
  - files_retention
  - gallery
  - nextcloud_announcements
  - password_policy
  - spreed
  - templateeditor
  - user_external
  - user_saml

The content of config/config.php:

Config report
{
    "system": {
        "instanceid": "oc28jm16gcpf",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "apps.ltpsn.org"
        ],
        "datadirectory": "\/srv\/nextcloud\/data",
        "overwrite.cli.url": "https:\/\/apps.ltpsn.org",
        "dbtype": "mysql",
        "version": "11.0.2.7",
        "dbname": "nextcloud",
        "dbhost": "localhost",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "maintenance": false,
        "updater.secret": "***REMOVED SENSITIVE VALUE***",
        "loglevel": 2
    }
}

Are you using external storage, if yes which one: no

Are you using encryption: no

Are you using an external user-backend, if yes which one: LDAP

LDAP configuration (delete this part if not used)

LDAP config
+-------------------------------+------------------------------------------------------------+
| Configuration                 |                                                            |
+-------------------------------+------------------------------------------------------------+
| hasMemberOfFilterSupport      |                                                            |
| hasPagedResultSupport         |                                                            |
| homeFolderNamingRule          |                                                            |
| lastJpegPhotoLookup           | 0                                                          |
| ldapAgentName                 |                                                            |
| ldapAgentPassword             | ***                                                        |
| ldapAttributesForGroupSearch  |                                                            |
| ldapAttributesForUserSearch   |                                                            |
| ldapBackupHost                |                                                            |
| ldapBackupPort                |                                                            |
| ldapBase                      | dc=ltpsn,dc=org                                            |
| ldapBaseGroups                | dc=ltpsn,dc=org                                            |
| ldapBaseUsers                 | dc=ltpsn,dc=org                                            |
| ldapCacheTTL                  | 600                                                        |
| ldapConfigurationActive       | 1                                                          |
| ldapDynamicGroupMemberURL     |                                                            |
| ldapEmailAttribute            | mail                                                       |
| ldapExperiencedAdmin          | 0                                                          |
| ldapExpertUUIDGroupAttr       |                                                            |
| ldapExpertUUIDUserAttr        |                                                            |
| ldapExpertUsernameAttr        |                                                            |
| ldapGroupDisplayName          | cn                                                         |
| ldapGroupFilter               | (&(|(objectclass=groupOfNames)))                           |
| ldapGroupFilterGroups         |                                                            |
| ldapGroupFilterMode           | 0                                                          |
| ldapGroupFilterObjectclass    | groupOfNames                                               |
| ldapGroupMemberAssocAttr      | member                                                     |
| ldapHost                      | directory.ltpsn.org                                        |
| ldapIgnoreNamingRules         |                                                            |
| ldapLoginFilter               | (&(|(objectclass=inetOrgPerson))(|(uid=%uid)(|(sn=%uid)))) |
| ldapLoginFilterAttributes     | sn                                                         |
| ldapLoginFilterEmail          | 0                                                          |
| ldapLoginFilterMode           | 0                                                          |
| ldapLoginFilterUsername       | 1                                                          |
| ldapNestedGroups              | 0                                                          |
| ldapOverrideMainServer        |                                                            |
| ldapPagingSize                | 500                                                        |
| ldapPort                      | 389                                                        |
| ldapQuotaAttribute            |                                                            |
| ldapQuotaDefault              |                                                            |
| ldapTLS                       | 0                                                          |
| ldapUserDisplayName           | displayname                                                |
| ldapUserDisplayName2          |                                                            |
| ldapUserFilter                | (|(objectclass=inetOrgPerson))                             |
| ldapUserFilterGroups          |                                                            |
| ldapUserFilterMode            | 0                                                          |
| ldapUserFilterObjectclass     | inetOrgPerson                                              |
| ldapUuidGroupAttribute        | auto                                                       |
| ldapUuidUserAttribute         | auto                                                       |
| turnOffCertCheck              | 0                                                          |
| turnOnPasswordChange          | 0                                                          |
| useMemberOfToDetectMembership | 1                                                          |
+-------------------------------+------------------------------------------------------------+

Client configuration

Browser: Firefox

Operating system: Ubuntu 16.04

Logs

Web server error log

Web server error log
no error

Nextcloud log (data/nextcloud.log)

Nextcloud log
no error
@MorrisJobke
Copy link
Member

Looks like the connection to your LDAP server is not stable. Sadly we can't do much here, right @blizzz

@blizzz
Copy link
Member

blizzz commented Apr 5, 2017

@MorrisJobke ack

@blizzz
Copy link
Member

blizzz commented Apr 5, 2017

There are also no relevant changes between 11.0.1 and 11.0.2.

@blizzz blizzz closed this as completed Apr 5, 2017
@nikaro
Copy link
Author

nikaro commented Apr 5, 2017

@MorrisJobke may be… It was blocking for me, so i migrated to "classic" database users provisioned through the API. Since nobody seems to be affected by the same issue than me, and that i can not anymore provide feedback on it, i think we can close it.

I see that @blizzz just did it. Thank you guys.

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

4 participants