Skip to content

LDAP settings cant edit or clone #24786

@schleyk

Description

@schleyk

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Enable "LDAP user and group backend" from Nextcloud App Sotre and connect to LDAP Server.

Expected behaviour

LDAP settings sould be editable in admin menu after setting up an LDAP Server Backend

Actual behaviour

  • cant edit or clone exist ldap server settings after create.
  • cant select "Users / Login Attributes / Groups" inside the LDAP settings menu.
    grafik

Server configuration

Operating system:
Ubuntu 20.04 LTS

Web server:
NGINX 1.18.0

Database:
MariaDB 10.5.8

PHP version:
7.4.13 (PHP-FPM)

Nextcloud version: (see Nextcloud admin page)
20.0.4

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

Where did you install Nextcloud from:
https://download.nextcloud.com/server/releases/

Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
Enabled:
  - accessibility: 1.6.0
  - activity: 2.13.4
  - bruteforcesettings: 2.0.1
  - cloud_federation_api: 1.3.0
  - comments: 1.10.0
  - dav: 1.16.2
  - federatedfilesharing: 1.10.2
  - files: 1.15.0
  - files_downloadactivity: 1.9.0
  - files_pdfviewer: 2.0.1
  - files_rightclick: 0.17.0
  - files_sharing: 1.12.1
  - files_trackdownloads: 1.9.0
  - files_trashbin: 1.10.1
  - files_versions: 1.13.0
  - files_videoplayer: 1.9.0
  - logreader: 2.5.0
  - lookup_server_connector: 1.8.0
  - nextcloud_announcements: 1.9.0
  - notifications: 2.8.0
  - oauth2: 1.8.0
  - onlyoffice: 6.2.0
  - password_policy: 1.10.1
  - photos: 1.2.1
  - privacy: 1.4.0
  - provisioning_api: 1.10.0
  - serverinfo: 1.10.0
  - settings: 1.2.0
  - survey_client: 1.8.0
  - systemtags: 1.10.0
  - tasks: 0.13.6
  - text: 3.1.0
  - theming: 1.11.0
  - twofactor_backupcodes: 1.9.0
  - updatenotification: 1.10.0
  - user_ldap: 1.10.2
  - viewer: 1.4.0
  - workflowengine: 2.2.0
Disabled:
  - admin_audit
  - contactsinteraction
  - dashboard
  - encryption
  - federation
  - files_external
  - firstrunwizard
  - recommendations
  - richdocuments
  - sharebymail
  - spreed
  - support
  - user_status
  - weather_status

Nextcloud configuration:

Config report
system
{
    "system": {
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "apps_paths": [
            {
                "path": "\/nextcloud\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/apps2",
                "url": "\/apps2",
                "writable": true
            }
        ],
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "Europe\/Berlin",
        "logdateformat": "Y-m-d H:i:s",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***"
        ],
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "default_language": "de",
        "skeletondirectory": "",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "20.0.4.0",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "loglevel": 0,
        "maintenance": false,
        "mail_smtpsecure": "tls",
        "mysql.utf8mb4": true,
        "theme": ""
    }
}

Are you using external storage, if yes which one: local/smb/sftp/...
smb

Are you using encryption: yes/no
no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP with ActiveDirectory

LDAP configuration (delete this part if not used)

LDAP config
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Configuration                 | s01                                                                                                                                                                                       |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| hasMemberOfFilterSupport      | 1                                                                                                                                                                                         |
| homeFolderNamingRule          |                                                                                                                                                                                           |
| lastJpegPhotoLookup           | 0                                                                                                                                                                                         |
| ldapAgentName                 | CN=svc-ldap-cloud,OU=ServiceAccounts,OU=corp,DC=corp,DC=local                                                                                                                       |
| ldapAgentPassword             | ***                                                                                                                                                                                       |
| ldapAttributesForGroupSearch  |                                                                                                                                                                                           |
| ldapAttributesForUserSearch   |                                                                                                                                                                                           |
| ldapBackupHost                |                                                                                                                                                                                           |
| ldapBackupPort                |                                                                                                                                                                                           |
| ldapBase                      | DC=corp,DC=local                                                                                                                                                                       |
| ldapBaseGroups                | DC=corp,DC=local                                                                                                                                                                       |
| ldapBaseUsers                 | DC=corp,DC=local                                                                                                                                                                       |
| ldapCacheTTL                  | 600                                                                                                                                                                                       |
| ldapConfigurationActive       | 1                                                                                                                                                                                         |
| ldapDefaultPPolicyDN          |                                                                                                                                                                                           |
| ldapDynamicGroupMemberURL     |                                                                                                                                                                                           |
| ldapEmailAttribute            | mail                                                                                                                                                                                      |
| ldapExperiencedAdmin          | 0                                                                                                                                                                                         |
| ldapExpertUUIDGroupAttr       |                                                                                                                                                                                           |
| ldapExpertUUIDUserAttr        |                                                                                                                                                                                           |
| ldapExpertUsernameAttr        |                                                                                                                                                                                           |
| ldapExtStorageHomeAttribute   |                                                                                                                                                                                           |
| ldapGidNumber                 | gidNumber                                                                                                                                                                                 |
| ldapGroupDisplayName          | cn                                                                                                                                                                                        |
| ldapGroupFilter               |                                                                                                                                                                                           |
| ldapGroupFilterGroups         |                                                                                                                                                                                           |
| ldapGroupFilterMode           | 0                                                                                                                                                                                         |
| ldapGroupFilterObjectclass    |                                                                                                                                                                                           |
| ldapGroupMemberAssocAttr      |                                                                                                                                                                                           |
| ldapHost                      | ldaps://srv-dc01.corp.local                                                                                                                                                            |
| ldapIgnoreNamingRules         |                                                                                                                                                                                           |
| ldapLoginFilter               | (&(&(|(objectclass=person))(|(|(memberof=CN=GRP-Cloud,OU=Gruppen,OU=corp,DC=corp,DC=local)(primaryGroupID=10282))))(|(samaccountname=%uid)(|(mailPrimaryAddress=%uid)(mail=%uid)))) |
| ldapLoginFilterAttributes     |                                                                                                                                                                                           |
| ldapLoginFilterEmail          | 1                                                                                                                                                                                         |
| ldapLoginFilterMode           | 0                                                                                                                                                                                         |
| ldapLoginFilterUsername       | 1                                                                                                                                                                                         |
| ldapMatchingRuleInChainState  | unknown                                                                                                                                                                                   |
| ldapNestedGroups              | 0                                                                                                                                                                                         |
| ldapOverrideMainServer        |                                                                                                                                                                                           |
| ldapPagingSize                | 500                                                                                                                                                                                       |
| ldapPort                      | 636                                                                                                                                                                                       |
| ldapQuotaAttribute            |                                                                                                                                                                                           |
| ldapQuotaDefault              |                                                                                                                                                                                           |
| ldapTLS                       | 0                                                                                                                                                                                         |
| ldapUserAvatarRule            | default                                                                                                                                                                                   |
| ldapUserDisplayName           | displayname                                                                                                                                                                               |
| ldapUserDisplayName2          |                                                                                                                                                                                           |
| ldapUserFilter                | (&(|(objectclass=person))(|(|(memberof=CN=GRP-Cloud,OU=Gruppen,OU=corp,DC=corp,DC=local)(primaryGroupID=10282))))                                                                   |
| ldapUserFilterGroups          | GRP-Cloud                                                                                                                                                                                 |
| ldapUserFilterMode            | 0                                                                                                                                                                                         |
| ldapUserFilterObjectclass     | person                                                                                                                                                                                    |
| ldapUuidGroupAttribute        | auto                                                                                                                                                                                      |
| ldapUuidUserAttribute         | auto                                                                                                                                                                                      |
| turnOffCertCheck              | 0                                                                                                                                                                                         |
| turnOnPasswordChange          | 0                                                                                                                                                                                         |
| useMemberOfToDetectMembership | 1                                                                                                                                                                                         |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+


Client configuration

Browser:
Firefox / Chrome / Edge

Operating system:
Windows 10 - 20H2

Logs

Web server error log

Web server error log
Not relevant

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"lPWpN8LAj********","level":0,"time":"2020-12-20 18:28:10","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"Run OCA\\Text\\Cron\\Cleanup job with ID 4066","userAgent":"--","version":"20.0.4.0"}
{"reqId":"lPWpN8LAj********","level":0,"time":"2020-12-20 18:28:10","remoteAddr":"","user":"--","app":"text","method":"","url":"--","message":"Run cleanup job for text sessions","userAgent":"--","version":"20.0.4.0"}
{"reqId":"lPWpN8LAj********","level":0,"time":"2020-12-20 18:28:10","remoteAddr":"","user":"--","app":"text","method":"","url":"--","message":"Resetting document 54025","userAgent":"--","version":"20.0.4.0"}
{"reqId":"lPWpN8LAj********","level":0,"time":"2020-12-20 18:28:10","remoteAddr":"","user":"--","app":"text","method":"","url":"--","message":"Resetting document 54025","userAgent":"--","version":"20.0.4.0"}
{"reqId":"lPWpN8LAj********","level":0,"time":"2020-12-20 18:28:10","remoteAddr":"","user":"--","app":"text","method":"","url":"--","message":"Removed 1 inactive sessions","userAgent":"--","version":"20.0.4.0"}
{"reqId":"lPWpN8LAj********","level":0,"time":"2020-12-20 18:28:10","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"Finished OCA\\Text\\Cron\\Cleanup job with ID 4066 in 0 seconds","userAgent":"--","version":"20.0.4.0"}
{"reqId":"sbk1GDZF2********","level":0,"time":"2020-12-20 18:32:12","remoteAddr":"****124.236","user":"--","app":"files_sharing","method":"HEAD","url":"/","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)","version":"20.0.4.0"}
{"reqId":"sbk1GDZF2********","level":0,"time":"2020-12-20 18:32:12","remoteAddr":"****124.236","user":"--","app":"onlyoffice","method":"HEAD","url":"/","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)","version":"20.0.4.0"}
{"reqId":"WCboolC8a********","level":0,"time":"2020-12-20 18:32:13","remoteAddr":"****124.236","user":"--","app":"files_sharing","method":"HEAD","url":"/login","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)","version":"20.0.4.0"}
{"reqId":"WCboolC8a********","level":0,"time":"2020-12-20 18:32:13","remoteAddr":"****124.236","user":"--","app":"onlyoffice","method":"HEAD","url":"/login","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)","version":"20.0.4.0"}

Browser log

Browser log
Insert your browser log here, this could for example include:
$ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 4 main.js:1:1406304
jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 4 main.js:1:1406304
Content Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource auf data: blockiert ("media-src").
No OC found main.js:1:323267
JQMIGRATE: Migrate is installed, version 1.4.1 main.js:1:917588
jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. main.js:1:1406304
$ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 4 main.js:1:1406304
Notifications permissions not yet requested notifications-main.js:303:5999
jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. main.js:1:1406304
jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 7 main.js:1:1406304
session heartbeat polling started main.js:1:711132
Files_PDFViewer initialized for public page 
Object { isPublicPage: null, canDownload: true, isSecureViewerAvailable: false }
files_pdfviewer-public.js:44:67
$ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 84 main.js:1:1406304
$ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 2 main.js:1:1406304
$ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 33 main.js:1:1406304
jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 136 main.js:1:1406304
Source-Map-Fehler: Error: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Ressourcen-Adresse: https://cloud.corp.local/core/js/dist/main.js?v=71ba11ee-106
Source-Map-Adresse: main.js.map

jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 4 main.js:1:1406304
[DEBUG] unified-search: Unified Search initialized with the following providers 
Object { 0: {…}, 1: {…}, 2: {…}, 3: {…}, 4: {…}, 5: {…}, 6: {…}, app: "unified-search", uid: "82D96D81-45AE-48A7-A0B3-9FE9D75332BC" }
unified-search.js:1:271870
jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 8 main.js:1:1406304
Source-Map-Fehler: Error: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Ressourcen-Adresse: https://cloud.corp.local/apps/notifications/js/notifications-main.js?v=71ba11ee-106
Source-Map-Adresse: notifications-main.js.map?v=7e353c6fdd2e67ae30c6

Source-Map-Fehler: Error: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Ressourcen-Adresse: https://cloud.corp.local/apps/files_pdfviewer/js/files_pdfviewer-public.js?v=71ba11ee-106
Source-Map-Adresse: files_pdfviewer-public.js.map?v=03ce5620648cf05e5494

$ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 20 main.js:1:1406304
Source-Map-Fehler: Error: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Ressourcen-Adresse: https://cloud.corp.local/core/js/dist/unified-search.js?v=71ba11ee-106
Source-Map-Adresse: unified-search.js.map


Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapbugneeds info

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions