Why does Poll tries to resolve the poll GUID in LDAP?

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.6
  • Operating system and version (e.g., Ubuntu 24.04):
    • Rocky Linux 8
  • Web server and version (e.g, Apache 2.4.25):
    • Apache 2.4.37
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • HAProxy 3.1
  • PHP version (e.g, 8.3):
    • 8.2.27
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • not sure, just noticed it in the logs
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • rpm packages
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

When accessing a public URL of a poll I see in the logs, that the Poll app tries to resolve the GUID of the poll as a user in LDAP.

Steps to replicate it (hint: details matter!):

  1. install NC and configure LDAP as a user source
  2. create a public poll
  3. access the URL and monitor the nextcloud.log

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

{"reqId":"Z9ayif9c2oEASecPjuOiUQAAAAE","level":0,"time":"March 16, 2025 11:14:17","remoteAddr":"XXXXX","user":"--","app":"user_ldap","method":"GET","url":"/index.php/apps/polls/s/aDDQUKTR/share?time=1742123654725","message":"Checking if aDDQUKTR exists","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3.1 Safari/605.1.15","version":"30.0.7.2","data":{"app":"user_ldap"}}
{"reqId":"Z9ayif9c2oEASecPjuOiUQAAAAE","level":0,"time":"March 16, 2025 11:14:17","remoteAddr":"XXXXX","user":"--","app":"user_ldap","method":"GET","url":"/index.php/apps/polls/s/aDDQUKTR/share?time=1742123654725","message":"Calling LDAP function ldap_explode_dn with parameters [\"aDDQUKTR\",0]","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3.1 Safari/605.1.15","version":"30.0.7.2","data":{"app":"user_ldap"}}
{"reqId":"Z9ayif9c2oEASecPjuOiUQAAAAE","level":0,"time":"March 16, 2025 11:14:17","remoteAddr":"XXXXX","user":"--","app":"user_ldap","method":"GET","url":"/index.php/apps/polls/s/aDDQUKTR/share?time=1742123654725","message":"No DN found for aDDQUKTR on localhost","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3.1 Safari/605.1.15","version":"30.0.7.2","data":{"app":"user_ldap"}}

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.xxx"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "30.0.7.2",
        "overwrite.cli.url": "https:\/\/cloud.xxx",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "dbdriveroptions": {
            "1009": "\/etc\/pki\/ca-trust\/source\/anchors\/MyRootCA.pem",
            "1014": false
        },
        "installed": true,
        "maintenance": false,
        "theme": "",
        "allow_local_remote_servers": true,
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [
            "admin"
        ],
        "twofactor_enforced_excluded_groups": [],
        "skeletondirectory": "",
        "logdateformat": "F d, Y H:i:s",
        "default_language": "de",
        "default_locale": "de_CH",
        "loglevel": 0,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "default_phone_region": "CH",
        "forbidden_filename_basenames": [
            "con",
            "prn",
            "aux",
            "nul",
            "com0",
            "com1",
            "com2",
            "com3",
            "com4",
            "com5",
            "com6",
            "com7",
            "com8",
            "com9",
            "com\u00b9",
            "com\u00b2",
            "com\u00b3",
            "lpt0",
            "lpt1",
            "lpt2",
            "lpt3",
            "lpt4",
            "lpt5",
            "lpt6",
            "lpt7",
            "lpt8",
            "lpt9",
            "lpt\u00b9",
            "lpt\u00b2",
            "lpt\u00b3"
        ],
        "forbidden_filename_characters": [
            "<",
            ">",
            ":",
            "\"",
            "|",
            "?",
            "*",
            "\\",
            "\/"
        ],
        "forbidden_filename_extensions": [
            " ",
            ".",
            ".filepart",
            ".part"
        ],
        "maintenance_window_start": 2,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        }
    }
}

Apps

Enabled:
  - activity: 3.0.0
  - app_api: 4.0.6
  - approval: 2.1.0
  - bruteforcesettings: 3.0.0
  - calendar: 5.1.3
  - calendar_resource_management: 0.9.0
  - circles: 30.0.0
  - cloud_federation_api: 1.13.0
  - collectives: 2.16.1
  - comments: 1.20.1
  - contacts: 7.0.4
  - dashboard: 7.10.0
  - dav: 1.31.1
  - deck: 1.14.4
  - drawio: 3.0.3
  - encryption: 2.18.0
  - federatedfilesharing: 1.20.0
  - files: 2.2.0
  - files_accesscontrol: 1.20.1
  - files_downloadlimit: 3.0.0
  - files_pdfviewer: 3.0.0
  - files_reminders: 1.3.0
  - files_retention: 1.19.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - files_versions: 1.23.0
  - groupfolders: 18.1.1
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - mail: 4.2.6
  - notes: 4.11.0
  - notifications: 3.0.0
  - notify_push: 1.0.0
  - oauth2: 1.18.1
  - password_policy: 2.0.0
  - polls: 7.4.1
  - privacy: 2.0.0
  - provisioning_api: 1.20.0
  - recommendations: 3.0.0
  - related_resources: 1.5.0
  - richdocuments: 8.5.4
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - spreed: 20.1.5
  - support: 2.0.0
  - systemtags: 1.20.0
  - tasks: 0.16.1
  - text: 4.1.0
  - theming: 2.6.0
  - twofactor_admin: 4.7.1
  - twofactor_backupcodes: 1.19.0
  - twofactor_totp: 12.0.0-dev
  - updatenotification: 1.20.0
  - user_ldap: 1.21.0
  - user_status: 1.10.0
  - viewer: 3.0.0
  - webhook_listeners: 1.1.0-dev
  - welcome: 1.2.1
  - whiteboard: 1.0.5
  - workflowengine: 2.12.0
Disabled:
  - admin_audit: 1.20.0
  - contactsinteraction: 1.11.0 (installed 1.11.0)
  - federation: 1.20.0 (installed 1.14.0)
  - files_external: 1.22.0
  - files_fulltextsearch: 31.0.0 (installed 31.0.0)
  - firstrunwizard: 3.0.0 (installed 2.13.0)
  - fulltextsearch: 30.0.1 (installed 30.0.1)
  - nextcloud_announcements: 2.0.0 (installed 1.13.0)
  - photos: 3.0.2 (installed 1.6.0)
  - survey_client: 2.0.0 (installed 1.12.0)
  - suspicious_login: 8.0.0
  - twofactor_nextcloud_notification: 4.0.0
  - weather_status: 1.10.0 (installed 1.4.0)