Closed violoncelloCH closed 5 years ago
as already reported in nextcloud/server#9504
nextcloud/server#14522 describes an other side effect coming from this issue...
I'm experimenting this issue also. I'm using Samba (winbind) users. In my case also the disabled users are users that have logged in with the email AND in other times with their user (not the segment including and after the @ symbol).
Sorry for opening the issue again. In my nextcloud installation i still have this issue. Using the OC_User_IMAP backend. I have 3 native users created in nextcloud and 30+ (with disabled) users login to nextcloud using this backend.
Nextcloud Version: Nextcloud Hub 4 (26.0.7) User External version: user_external: 3.2.0
Logs:
Total user count was negative (users: 3, disabled: 10)
{"reqId":"gbIX8PV2UfmcDLlG9nW1","level":2,"time":"2023-10-06T05:47:37+00:00","remoteAddr":"123.123.123.123","user":"user","app":"support","method":"GET","url":"/settings/admin/logging","message":"Total user count was negative (users: 3, disabled: 10)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.47","version":"26.0.7.0","data":{"app":"support"},"id":"651f9f80aaae3"}
Affected apps
user_external
Steps to reproduce
Expected behaviour
all users should count the total of all usersers regardless of the backend
Actual behaviour
only local users are counted, users from external user backend (webdav) are not
Server configuration
Operating system: ubuntu 16.04
Web server: apache2
Database: mariaDB
PHP version: 7.2
Nextcloud version: 13.0.2
Updated from an older Nextcloud/ownCloud or fresh install: fresh
Where did you install Nextcloud from: nextcloud.com download
Signing status:
Signing status
``` No errors have been found. ```List of activated apps:
App list
``` Enabled: - activity: 2.6.1 - admin_notifications: 1.0.1 - bruteforcesettings: 1.0.3 - comments: 1.3.0 - dav: 1.4.6 - federatedfilesharing: 1.3.1 - federation: 1.3.0 - files: 1.8.0 - files_automatedtagging: 1.3.0 - files_external: 1.4.1 - files_pdfviewer: 1.2.1 - files_rightclick: 0.8.4 - files_sharing: 1.5.0 - files_texteditor: 2.5.1 - files_trashbin: 1.3.0 - files_versions: 1.6.0 - files_videoplayer: 1.2.0 - firstrunwizard: 2.2.1 - gallery: 18.0.0 - groupfolders: 1.2.0 - logreader: 2.0.0 - lookup_server_connector: 1.1.0 - metadata: 0.6.0 - nextcloud_announcements: 1.2.0 - notifications: 2.1.2 - oauth2: 1.1.0 - password_policy: 1.3.0 - provisioning_api: 1.3.0 - quota_warning: 1.2.0 - ransomware_protection: 1.1.0 - serverinfo: 1.3.0 - sharebymail: 1.3.0 - survey_client: 1.1.0 - systemtags: 1.3.0 - theming: 1.4.1 - twofactor_backupcodes: 1.2.3 - updatenotification: 1.3.0 - user_external: 0.4 - workflowengine: 1.3.0 Disabled: - admin_audit - encryption - files_accesscontrol - user_ldap ```Nextcloud configuration:
Config report
``` { "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "***REMOVED SENSITIVE VALUE***" ], "auth.bruteforce.protection.enabled": true, "0": [ ".htaccess", "Thumbs.db", "thumbs.db" ], "cron_log": true, "activity_expire_days": 33, "datadirectory": "***REMOVED SENSITIVE VALUE***", "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "13.0.2.1", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "enable_previews": true, "enabledPreviewProviders": [ "OC\\Preview\\PNG", "OC\\Preview\\JPEG", "OC\\Preview\\GIF", "OC\\Preview\\BMP", "OC\\Preview\\XBitmap", "OC\\Preview\\Movie", "OC\\Preview\\PDF", "OC\\Preview\\MP3", "OC\\Preview\\TXT", "OC\\Preview\\MarkDown" ], "preview_max_x": 1024, "preview_max_y": 768, "preview_max_scale_factor": 1, "filesystem_check_changes": 0, "filelocking.enabled": "true", "htaccess.RewriteBase": "\/", "integrity.check.disabled": false, "knowledgebaseenabled": false, "logfile": "\/var\/nc_data\/nextcloud.log", "loglevel": 0, "logtimezone": "Europe\/Berlin", "log_rotate_size": 104857600, "maintenance": false, "memcache.local": "\\OC\\Memcache\\APCu", "memcache.locking": "\\OC\\Memcache\\Redis", "overwriteprotocol": "https", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "password": "***REMOVED SENSITIVE VALUE***", "port": 0, "timeout": 0 }, "quota_include_external_storage": false, "share_folder": "", "skeletondirectory": "\/srv\/nextclouddata\/presets\/", "theme": "", "trashbin_retention_obligation": "auto, 7", "updater.release.channel": "stable", "mail_smtpmode": "smtp", "mail_smtpauthtype": "LOGIN", "user_backends": [ { "class": "\\OCA\\User_External\\WebDAVAuth", "arguments": [ "***REMOVED SENSITIVE VALUE***" ] } ], "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauth": 1, "mail_smtpport": "465", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_smtpsecure": "ssl", "mail_smtphost": "***REMOVED SENSITIVE VALUE***" } } ```Are you using external storage, if yes which one: webdav
Are you using encryption: no
Are you using an external user-backend, if yes which one: Webdav
Client configuration
Browser: Firefox 59
Operating system: Win 10
Logs
Web server error log
Web server error log
``` Insert your webserver log here ```Nextcloud log (data/nextcloud.log)
Nextcloud log
``` Insert your Nextcloud log here ```Browser log
Browser log
``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```