nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.33k stars 4.06k forks source link

Lost connection to LDAP server #30230

Closed Chartman123 closed 1 year ago

Chartman123 commented 2 years ago

Steps to reproduce

Run cron jobs and see log file

Expected behaviour

No errors about lost LDAP connections

Actual behaviour

Errors about lost LDAP connections on different cron actions

Server configuration detail

Operating system: Linux 5.3.18-59.37-default #1 SMP Mon Nov 22 12:29:04 UTC 2021 (d10168e) x86_64

Webserver: Apache/2.4.51 (Debian) (apache2handler)

Database: pgsql PostgreSQL 13.5 (Debian 13.5-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit

PHP version:

8.0.13 Modules loaded: Core, date, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, fileinfo, filter, ftp, hash, iconv, json, mbstring, SPL, PDO, pdo_sqlite, session, posix, Reflection, standard, SimpleXML, Phar, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, apache2handler, apcu, bcmath, exif, gd, gmp, imagick, intl, ldap, memcached, pcntl, pdo_mysql, pdo_pgsql, redis, sodium, zip, Zend OPcache

Nextcloud version: 23.0.0 - 23.0.0.10

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

Where did you install Nextcloud from: official Docker

Signing status Array ( )
List of activated apps ``` Enabled: - accessibility: 1.9.0 - activity: 2.15.0 - announcementcenter: 6.1.1 - approval: 1.0.9 - bruteforcesettings: 2.2.0 - calendar: 3.0.1 - circles: 23.0.0 - cloud_federation_api: 1.6.0 - collectives: 0.16.22 - comments: 1.13.0 - contacts: 4.0.6 - contactsinteraction: 1.4.0 - dashboard: 7.3.0 - dav: 1.21.0 - deck: 1.6.0 - federatedfilesharing: 1.13.0 - federation: 1.13.0 - files: 1.18.0 - files_automatedtagging: 1.13.0 - files_pdfviewer: 2.4.0 - files_rightclick: 1.2.0 - files_sharing: 1.15.0 - files_trashbin: 1.13.0 - files_versions: 1.16.0 - files_videoplayer: 1.12.0 - firstrunwizard: 2.12.0 - forms: 2.4.0 - groupfolders: 11.1.0 - impersonate: 1.10.0 - integration_whiteboard: 0.0.14 - issuetemplate: 0.7.0 - logreader: 2.8.0 - lookup_server_connector: 1.11.0 - mail: 1.11.1 - metadata: 0.15.0 - nextcloud_announcements: 1.12.0 - notifications: 2.11.1 - notify_push: 0.3.0 - oauth2: 1.11.0 - onlyoffice: 7.2.1 - password_policy: 1.13.0 - polls: 3.4.0 - privacy: 1.7.0 - provisioning_api: 1.13.0 - recommendations: 1.2.0 - serverinfo: 1.13.0 - settings: 1.5.0 - sharebymail: 1.13.0 - spreed: 13.0.0 - survey_client: 1.11.0 - suspicious_login: 4.1.0 - systemtags: 1.13.0 - text: 3.4.0 - theming: 1.14.0 - twofactor_backupcodes: 1.12.0 - twofactor_nextcloud_notification: 3.3.1 - twofactor_totp: 6.2.0 - updatenotification: 1.13.0 - user_ldap: 1.13.0 - user_status: 1.3.1 - viewer: 1.7.0 - weather_status: 1.3.0 - workflowengine: 2.5.0 Disabled: - admin_audit - encryption - files_external - photos - support ```
Configuration (config/config.php) ``` { "htaccess.RewriteBase": "\/", "memcache.local": "\\OC\\Memcache\\APCu", "apps_paths": [ { "path": "\/var\/www\/html\/apps", "url": "\/apps", "writable": false }, { "path": "\/var\/www\/html\/custom_apps", "url": "\/custom_apps", "writable": true } ], "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "cloud.tsmd.de" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "pgsql", "version": "23.0.0.10", "overwrite.cli.url": "https:\/\/cloud.tsmd.de", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "app_install_overwrite": [ "occweb", "forms", "groupfolders", "announcementcenter", "metadata", "polls", "integration_whiteboard", "bruteforcesettings", "issuetemplate" ], "maintenance": false, "loglevel": 2, "theme": "", "mail_smtpmode": "smtp", "mail_smtpsecure": "ssl", "mail_sendmailmode": "smtp", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauthtype": "LOGIN", "mail_smtpauth": 1, "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "forwarded_for_headers": [ "X-Forwarded-For", "HTTP_X_FORWARDED_FOR" ], "overwritehost": "cloud.tsmd.de", "overwriteprotocol": "https", "default_language": "de", "default_locale": "de_DE", "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "skeletondirectory": "\/var\/www\/html\/data\/skeleton", "updater.release.channel": "stable", "memcache.distributed": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 6379 }, "trashbin_retention_obligation": "auto,30", "versions_retention_obligation": "auto,30", "default_phone_region": "DE", "data-fingerprint": "681e3987b71dbcf8a80c491511dce9f8", "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory", "onlyoffice": { "jwt_header": "Jwt-Authorization" } } ```

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

Are you using encryption:

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

LDAP configuration (delete this par if not used) ``` background_sync_interval: 43200 background_sync_offset: 0 background_sync_prefix: s01 cleanUpJobOffset: 0 enabled: yes installed_version: 1.13.0 s01_lastChange: 1639256894 s01has_memberof_filter_support: 1 s01home_folder_naming_rule: s01last_jpegPhoto_lookup: 0 s01ldap_agent_password: *** s01ldap_attributes_for_group_search: s01ldap_attributes_for_user_search: s01ldap_backup_host: s01ldap_backup_port: s01ldap_base: dc=tsmd,dc=doerflas s01ldap_base_groups: ou=Groups,dc=tsmd,dc=doerflas s01ldap_base_users: ou=Users,dc=tsmd,dc=doerflas s01ldap_cache_ttl: 600 s01ldap_configuration_active: 1 s01ldap_default_ppolicy_dn: s01ldap_display_name: displayname s01ldap_dn: cn=admin,dc=tsmd,dc=doerflas s01ldap_dynamic_group_member_url: s01ldap_email_attr: mail s01ldap_experienced_admin: 0 s01ldap_expert_username_attr: uid s01ldap_expert_uuid_group_attr: s01ldap_expert_uuid_user_attr: s01ldap_ext_storage_home_attribute: s01ldap_gid_number: gidNumber s01ldap_group_display_name: cn s01ldap_group_filter: s01ldap_group_filter_mode: 0 s01ldap_group_member_assoc_attribute: uniqueMember s01ldap_groupfilter_groups: s01ldap_groupfilter_objectclass: s01ldap_host: ldap://ldap s01ldap_login_filter: (&(&(|(objectclass=inetOrgPerson))(|(memberof=cn=Nextcloud Users,ou=Nextcloud,ou=Groups,dc=tsmd,dc=doerflas)))(uid=%uid)) s01ldap_login_filter_mode: 0 s01ldap_loginfilter_attributes: s01ldap_loginfilter_email: 1 s01ldap_loginfilter_username: 1 s01ldap_matching_rule_in_chain_state: unavailable s01ldap_nested_groups: 0 s01ldap_override_main_server: s01ldap_paging_size: 500 s01ldap_port: 389 s01ldap_quota_attr: s01ldap_quota_def: s01ldap_tls: s01ldap_turn_off_cert_check: 0 s01ldap_turn_on_pwd_change: 1 s01ldap_user_avatar_rule: default s01ldap_user_display_name_2: s01ldap_user_filter_mode: 0 s01ldap_userfilter_groups: Nextcloud Users s01ldap_userfilter_objectclass: inetOrgPerson s01ldap_userlist_filter: (&(|(objectclass=inetOrgPerson))(|(memberof=cn=Nextcloud Users,ou=Nextcloud,ou=Groups,dc=tsmd,dc=doerflas))) s01use_memberof_to_detect_membership: 1 types: authentication ```

Client configuration

Browser: Mozilla/5.0 (X11; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0

Operating system:

Logs

Web server error log ``` ```
Nextcloud log ``` {"reqId":"CMQUubCdMdO2itLuD8EO","level":3,"time":"2021-12-12T18:50:00+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Error while running background job (class: OCA\\Talk\\BackgroundJob\\RemoveEmptyRooms, arguments: )","userAgent":"--","version":"23.0.0.10","exception":{"Exception":"OC\\ServerNotAvailableException","Message":"Lost connection to LDAP server.","Code":0,"Trace":[{"file":"/var/www/html/apps/user_ldap/lib/LDAP.php","line":415,"function":"processLDAPError","class":"OCA\\User_LDAP\\LDAP","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"/var/www/html/apps/user_ldap/lib/LDAP.php","line":338,"function":"postFunctionCall","class":"OCA\\User_LDAP\\LDAP","type":"->","args":[]},{"file":"/var/www/html/apps/user_ldap/lib/LDAP.php","line":58,"function":"invokeLDAPMethod","class":"OCA\\User_LDAP\\LDAP","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/user_ldap/lib/Connection.php","line":662,"function":"bind","class":"OCA\\User_LDAP\\LDAP","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/user_ldap/lib/Connection.php","line":576,"function":"bind","class":"OCA\\User_LDAP\\Connection","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/user_ldap/lib/Connection.php","line":201,"function":"establishConnection","class":"OCA\\User_LDAP\\Connection","type":"->","args":[]},{"file":"/var/www/html/apps/user_ldap/lib/Connection.php","line":209,"function":"init","class":"OCA\\User_LDAP\\Connection","type":"->","args":[]},{"file":"/var/www/html/apps/user_ldap/lib/Access.php","line":1125,"function":"getConnectionResource","class":"OCA\\User_LDAP\\Connection","type":"->","args":[]},{"file":"/var/www/html/apps/user_ldap/lib/Access.php","line":283,"function":"invokeLDAPMethod","class":"OCA\\User_LDAP\\Access","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/user_ldap/lib/Access.php","line":221,"function":"executeRead","class":"OCA\\User_LDAP\\Access","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","","*** sensitive parameter replaced ***",500]},{"file":"/var/www/html/apps/user_ldap/lib/User_LDAP.php","line":319,"function":"readAttribute","class":"OCA\\User_LDAP\\Access","type":"->","args":["*** sensitive parameter replaced ***","","*** sensitive parameter replaced ***"]},{"function":"userExistsOnLDAP","class":"OCA\\User_LDAP\\User_LDAP","type":"->","args":[{"__class__":"OCA\\User_LDAP\\User\\User"}]},{"file":"/var/www/html/apps/user_ldap/lib/User_Proxy.php","line":81,"function":"call_user_func_array","args":[[{"__class__":"OCA\\User_LDAP\\User_LDAP"},"userExistsOnLDAP"],["sarah.meyer"]]},{"file":"/var/www/html/apps/user_ldap/lib/Proxy.php","line":171,"function":"walkBackends","class":"OCA\\User_LDAP\\User_Proxy","type":"->","args":["sarah.meyer","userExistsOnLDAP",["sarah.meyer"]]},{"file":"/var/www/html/apps/user_ldap/lib/User_Proxy.php","line":211,"function":"handleRequest","class":"OCA\\User_LDAP\\Proxy","type":"->","args":["sarah.meyer","userExistsOnLDAP",["sarah.meyer"]]},{"file":"/var/www/html/apps/user_ldap/lib/User_Proxy.php","line":187,"function":"userExistsOnLDAP","class":"OCA\\User_LDAP\\User_Proxy","type":"->","args":["sarah.meyer"]},{"file":"/var/www/html/lib/private/User/Manager.php","line":177,"function":"userExists","class":"OCA\\User_LDAP\\User_Proxy","type":"->","args":["sarah.meyer"]},{"file":"/var/www/html/lib/private/Files/Config/UserMountCache.php","line":214,"function":"get","class":"OC\\User\\Manager","type":"->","args":["sarah.meyer"]},{"function":"dbRowToMountInfo","class":"OC\\Files\\Config\\UserMountCache","type":"->","args":[{"0":"And 1 more entries, set log level to debug to see all entries","storage_id":1,"root_id":1372,"user_id":"sarah.meyer","mount_point":"/sarah.meyer/files/FG_Faschingsgilde/Anschreiben/","mount_id":null}]},{"file":"/var/www/html/lib/private/Files/Config/UserMountCache.php","line":351,"function":"array_map","args":[[{"__class__":"OC\\Files\\Config\\UserMountCache"},"dbRowToMountInfo"],[{"0":"And 1 more entries, set log level to debug to see all entries","storage_id":1,"root_id":1372,"user_id":"sarah.meyer","mount_point":"/sarah.meyer/files/FG_Faschingsgilde/Anschreiben/","mount_id":null},{"0":"And 1 more entries, set log level to debug to see all entries","storage_id":1,"root_id":1372,"user_id":"leopold.muessel","mount_point":"/leopold.muessel/files/FG_Faschingsgilde/Anschreiben/","mount_id":null},{"0":"And 1 more entries, set log level to debug to see all entries","storage_id":1,"root_id":1372,"user_id":"victoria.haaf","mount_point":"/victoria.haaf/files/FG_Faschingsgilde/Anschreiben/","mount_id":null},{"0":"And 1 more entries, set log level to debug to see all entries","storage_id":1,"root_id":1372,"user_id":"admin.mk","mount_point":"/admin.mk/files/FG_Faschingsgilde/Anschreiben/","mount_id":null},{"0":"And 1 more entries, set log level to debug to see all entries","storage_id":1,"root_id":1372,"user_id":"alina.winterholer","mount_point":"/alina.winterholer/files/FG_Faschingsgilde/Anschreiben/","mount_id":null},"And 46 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/html/custom_apps/spreed/lib/BackgroundJob/RemoveEmptyRooms.php","line":111,"function":"getMountsForFileId","class":"OC\\Files\\Config\\UserMountCache","type":"->","args":["1388"]},{"file":"/var/www/html/custom_apps/spreed/lib/BackgroundJob/RemoveEmptyRooms.php","line":90,"function":"deleteIfFileIsRemoved","class":"OCA\\Talk\\BackgroundJob\\RemoveEmptyRooms","type":"->","args":[{"__class__":"OCA\\Talk\\Room"}]},{"file":"/var/www/html/custom_apps/spreed/lib/Manager.php","line":137,"function":"callback","class":"OCA\\Talk\\BackgroundJob\\RemoveEmptyRooms","type":"->","args":[{"__class__":"OCA\\Talk\\Room"}]},{"file":"/var/www/html/custom_apps/spreed/lib/BackgroundJob/RemoveEmptyRooms.php","line":72,"function":"forAllRooms","class":"OCA\\Talk\\Manager","type":"->","args":[[{"__class__":"OCA\\Talk\\BackgroundJob\\RemoveEmptyRooms"},"callback"]]},{"file":"/var/www/html/lib/public/BackgroundJob/Job.php","line":79,"function":"run","class":"OCA\\Talk\\BackgroundJob\\RemoveEmptyRooms","type":"->","args":[null]},{"file":"/var/www/html/lib/public/BackgroundJob/TimedJob.php","line":63,"function":"execute","class":"OCP\\BackgroundJob\\Job","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]},{"file":"/var/www/html/cron.php","line":128,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]}],"File":"/var/www/html/apps/user_ldap/lib/LDAP.php","Line":376,"CustomMessage":"Error while running background job (class: OCA\\Talk\\BackgroundJob\\RemoveEmptyRooms, arguments: )"},"id":"61b647361cf79"} {"reqId":"CMQUubCdMdO2itLuD8EO","level":3,"time":"2021-12-12T18:50:00+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Error while running background job (class: OCA\\Settings\\BackgroundJobs\\VerifyUserData, arguments: Array\n(\n [verificationCode] => \n [data] => erwin.hagen@tsmd.de\n [type] => email\n [uid] => erwin.hagen\n [try] => 2\n [lastRun] => 1639331100\n)\n)","userAgent":"--","version":"23.0.0.10","exception":{"Exception":"OC\\ServerNotAvailableException","Message":"Lost connection to LDAP server.","Code":0,"Trace":[{"file":"/var/www/html/apps/user_ldap/lib/LDAP.php","line":415,"function":"processLDAPError","class":"OCA\\User_LDAP\\LDAP","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"/var/www/html/apps/user_ldap/lib/LDAP.php","line":338,"function":"postFunctionCall","class":"OCA\\User_LDAP\\LDAP","type":"->","args":[]},{"file":"/var/www/html/apps/user_ldap/lib/LDAP.php","line":58,"function":"invokeLDAPMethod","class":"OCA\\User_LDAP\\LDAP","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/user_ldap/lib/Connection.php","line":662,"function":"bind","class":"OCA\\User_LDAP\\LDAP","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/user_ldap/lib/Connection.php","line":576,"function":"bind","class":"OCA\\User_LDAP\\Connection","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/user_ldap/lib/Connection.php","line":201,"function":"establishConnection","class":"OCA\\User_LDAP\\Connection","type":"->","args":[]},{"file":"/var/www/html/apps/user_ldap/lib/Connection.php","line":209,"function":"init","class":"OCA\\User_LDAP\\Connection","type":"->","args":[]},{"file":"/var/www/html/apps/user_ldap/lib/Access.php","line":1125,"function":"getConnectionResource","class":"OCA\\User_LDAP\\Connection","type":"->","args":[]},{"file":"/var/www/html/apps/user_ldap/lib/Access.php","line":283,"function":"invokeLDAPMethod","class":"OCA\\User_LDAP\\Access","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/user_ldap/lib/Access.php","line":221,"function":"executeRead","class":"OCA\\User_LDAP\\Access","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","","*** sensitive parameter replaced ***",500]},{"file":"/var/www/html/apps/user_ldap/lib/User_LDAP.php","line":319,"function":"readAttribute","class":"OCA\\User_LDAP\\Access","type":"->","args":["*** sensitive parameter replaced ***","","*** sensitive parameter replaced ***"]},{"function":"userExistsOnLDAP","class":"OCA\\User_LDAP\\User_LDAP","type":"->","args":[{"__class__":"OCA\\User_LDAP\\User\\User"}]},{"file":"/var/www/html/apps/user_ldap/lib/User_Proxy.php","line":81,"function":"call_user_func_array","args":[[{"__class__":"OCA\\User_LDAP\\User_LDAP"},"userExistsOnLDAP"],["erwin.hagen"]]},{"file":"/var/www/html/apps/user_ldap/lib/Proxy.php","line":171,"function":"walkBackends","class":"OCA\\User_LDAP\\User_Proxy","type":"->","args":["erwin.hagen","userExistsOnLDAP",["erwin.hagen"]]},{"file":"/var/www/html/apps/user_ldap/lib/User_Proxy.php","line":211,"function":"handleRequest","class":"OCA\\User_LDAP\\Proxy","type":"->","args":["erwin.hagen","userExistsOnLDAP",["erwin.hagen"]]},{"file":"/var/www/html/apps/user_ldap/lib/User_Proxy.php","line":187,"function":"userExistsOnLDAP","class":"OCA\\User_LDAP\\User_Proxy","type":"->","args":["erwin.hagen"]},{"file":"/var/www/html/lib/private/User/Manager.php","line":177,"function":"userExists","class":"OCA\\User_LDAP\\User_Proxy","type":"->","args":["erwin.hagen"]},{"file":"/var/www/html/apps/settings/lib/BackgroundJobs/VerifyUserData.php","line":178,"function":"get","class":"OC\\User\\Manager","type":"->","args":["erwin.hagen"]},{"file":"/var/www/html/apps/settings/lib/BackgroundJobs/VerifyUserData.php","line":117,"function":"verifyViaLookupServer","class":"OCA\\Settings\\BackgroundJobs\\VerifyUserData","type":"->","args":[{"0":"And 1 more entries, set log level to debug to see all entries","verificationCode":"","data":"erwin.hagen@tsmd.de","type":"email","uid":"erwin.hagen","try":2},"email"]},{"file":"/var/www/html/lib/public/BackgroundJob/Job.php","line":79,"function":"run","class":"OCA\\Settings\\BackgroundJobs\\VerifyUserData","type":"->","args":[{"0":"And 1 more entries, set log level to debug to see all entries","verificationCode":"","data":"erwin.hagen@tsmd.de","type":"email","uid":"erwin.hagen","try":2}]},{"file":"/var/www/html/apps/settings/lib/BackgroundJobs/VerifyUserData.php","line":98,"function":"execute","class":"OCP\\BackgroundJob\\Job","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]},{"file":"/var/www/html/cron.php","line":128,"function":"execute","class":"OCA\\Settings\\BackgroundJobs\\VerifyUserData","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]}],"File":"/var/www/html/apps/user_ldap/lib/LDAP.php","Line":376,"CustomMessage":"Error while running background job (class: OCA\\Settings\\BackgroundJobs\\VerifyUserData, arguments: Array\n(\n [verificationCode] => \n [data] => erwin.hagen@tsmd.de\n [type] => email\n [uid] => erwin.hagen\n [try] => 2\n [lastRun] => 1639331100\n)\n)"},"id":"61b647361d07a"} ```
Browser log
Chartman123 commented 2 years ago

Still the same on 24

szaimen commented 1 year ago

Hi, please update to 24.0.8 or better 25.0.2 and report back if it fixes the issue. Thank you!

Chartman123 commented 1 year ago

@szaimen yes, I'm on 25.0.2 and still see lots of these messages

Chartman123 commented 1 year ago

@szaimen Still true for 26.0.0

Chartman123 commented 1 year ago

@szaimen I found some entries in the debug logs that might be interesting:

nextcloud.log ``` { "reqId": "Ht5vRtB5seIRX7xHnVCE", "level": 0, "time": "2023-04-04T19:25:01+00:00", "remoteAddr": "", "user": "--", "app": "user_ldap", "method": "", "url": "--", "message": "Calling LDAP function ldap_bind with parameters [{},\"***username_redacted***",\"***password_redacted***"]", "userAgent": "--", "version": "26.0.0.11", "data": { "app": "user_ldap" } } { "reqId": "Ht5vRtB5seIRX7xHnVCE", "level": 0, "time": "2023-04-04T19:25:01+00:00", "remoteAddr": "", "user": "--", "app": "user_ldap", "method": "", "url": "--", "message": "LDAP error Can't contact LDAP server (-1) after calling ldap_bind", "userAgent": "--", "version": "26.0.0.11", "data": { "app": "user_ldap" } } ```

The first parameter of the ldap_bind call is only {}. ldap_bind should take the result of an ldap_connect() as the first parameter. So I'm not sure if it's intended to be logged like this or if the instance of the LDAP\Connection would be represented otherwise in the log record.

Chartman123 commented 1 year ago

I think I found my problem... 🤦🏻‍♂️ The container that runs the cron tasks was missing the openldap network and therefore couldn't reach the openldap container. Since I've changed it, I couldn't see any new log entries...