ERROR: Could not connect to imap server via curl
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- php
调研方向
Start with the configured user_backends entry using OCA\UserExternal\IMAP and reproduce the failure through PROPFIND /remote.php/dav/. Compare the reported behavior for an IMAP user with a Nextcloud-interface user, then establish whether the expected authentication behavior is supported and what a completed fix or clarification would require.
由索引模型根据 Issue 内容生成。
描述
I want to add https://<domain>/remote.php/dav/ to a client with an user added in nextcloud interface, not an imap user one. I get:
{"reqId":"ZFJxBAOzaQ4z8pEBv7FpwwAAAiw","level":3,"time":"2023-05-03T14:35:12+00:00","remoteAddr":"***REMOVED SENSITIVE VALUE***2a01:4f9:2b:2a8b::defe:c8ed","user":"--","app":"user_external","method":"PROPFIND","url":"/remote.php/dav/","message":"ERROR: Could not connect to imap server via curl: ","userAgent":"sabre-dav/4.4.0 (http://sabre.io/)","version":"25.0.6.1","data":{"app":"user_external"}}
{"reqId":"ZFJxBAOzaQ4z8pEBv7FpwwAAAiw","level":3,"time":"2023-05-03T14:35:14+00:00","remoteAddr":"***REMOVED SENSITIVE VALUE***","user":"--","app":"user_external","method":"PROPFIND","url":"/remote.php/dav/","message":"ERROR: Could not connect to imap server via curl: ","userAgent":"sabre-dav/4.4.0 (http://sabre.io/)","version":"25.0.6.1","data":{"app":"user_external"}}
{"reqId":"ZFJxBAOzaQ4z8pEBv7FpwwAAAiw","level":2,"time":"2023-05-03T14:35:14+00:00","remoteAddr":"***REMOVED SENSITIVE VALUE***","user":"--","app":"core","method":"PROPFIND","url":"/remote.php/dav/","message":"Login failed: '<nextcloud user>' (Remote IP: '***REMOVED SENSITIVE VALUE***')","userAgent":"sabre-dav/4.4.0 (http://sabre.io/)","version":"25.0.6.1","data":{"app":"core"}}
With imap users It work as expected.
Server configuration
User External App version: 3.1.0
Operating system: Gentoo Base System release 2.13
Web server: Apache 2.4.55
Database: MySQL 8.0.32
PHP version: 8.0
Nextcloud version: 25.0.6
Updated from an older Nextcloud/ownCloud or fresh install: 25.0.5
Where did you install Nextcloud from: source
Signing status:
Signing status
No errors have been found.
List of activated apps:
App list
Enabled:
- activity: 2.17.0
- bruteforcesettings: 2.5.0
- calendar: 4.3.1
- circles: 25.0.0
- cloud_federation_api: 1.8.0
- comments: 1.15.0
- contacts: 5.2.0
- dav: 1.24.0
- federatedfilesharing: 1.15.0
- federation: 1.15.0
- files: 1.20.1
- files_external: 1.17.0
- files_pdfviewer: 2.6.0
- files_rightclick: 1.4.0
- files_sharing: 1.17.0
- files_trashbin: 1.15.0
- files_versions: 1.18.0
- firstrunwizard: 2.14.0
- logreader: 2.10.0
- lookup_server_connector: 1.13.0
- nextcloud_announcements: 1.14.0
- notifications: 2.13.1
- oauth2: 1.13.0
- password_policy: 1.15.0
- photos: 2.0.1
- privacy: 1.9.0
- provisioning_api: 1.15.0
- recommendations: 1.4.0
- related_resources: 1.0.4
- serverinfo: 1.15.0
- settings: 1.7.0
- sharebymail: 1.15.0
- support: 1.8.0
- survey_client: 1.13.0
- systemtags: 1.15.0
- tasks: 0.14.5
- text: 3.6.0
- theming: 2.0.1
- twofactor_backupcodes: 1.14.0
- updatenotification: 1.15.0
- user_external: 3.1.0
- user_status: 1.5.0
- viewer: 1.9.0
- workflowengine: 2.7.0
Nextcloud configuration:
Config report
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"***REMOVED SENSITIVE VALUE***",
"***REMOVED SENSITIVE VALUE***"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "25.0.5.1",
"overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"trashbin_retention_obligation": "auto, 7",
"filelocking.enabled": "true",
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.locking": "\\OC\\Memcache\\APCu",
"user_backends": [
{
"class": "\\OCA\\UserExternal\\IMAP",
"arguments": [
"***REMOVED SENSITIVE VALUE***",
993,
"ssl"
]
}
],
"loglevel": 2,
"maintenance": false,
"mail_smtpmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"theme": "",
"enable_avatars": true,
"singleuser": false,
"updater.release.channel": "stable",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_sendmailmode": "smtp",
"mail_smtpport": "25",
"encryption.legacy_format_support": false,
"encryption.key_storage_migrated": false,
"default_phone_region": "DE",
"app_install_overwrite": [
"user_external"
]
}
}
Logs
Web server error log
Web server error log
no error log for this issue
Nextcloud log (data/nextcloud.log)
Nextcloud log
{"reqId":"ZFJxBAOzaQ4z8pEBv7FpwwAAAiw","level":3,"time":"2023-05-03T14:35:12+00:00","remoteAddr":"***REMOVED SENSITIVE VALUE***2a01:4f9:2b:2a8b::defe:c8ed","user":"--","app":"user_external","method":"PROPFIND","url":"/remote.php/dav/","message":"ERROR: Could not connect to imap server via curl: ","userAgent":"sabre-dav/4.4.0 (http://sabre.io/)","version":"25.0.6.1","data":{"app":"user_external"}}
{"reqId":"ZFJxBAOzaQ4z8pEBv7FpwwAAAiw","level":3,"time":"2023-05-03T14:35:14+00:00","remoteAddr":"***REMOVED SENSITIVE VALUE***","user":"--","app":"user_external","method":"PROPFIND","url":"/remote.php/dav/","message":"ERROR: Could not connect to imap server via curl: ","userAgent":"sabre-dav/4.4.0 (http://sabre.io/)","version":"25.0.6.1","data":{"app":"user_external"}}
{"reqId":"ZFJxBAOzaQ4z8pEBv7FpwwAAAiw","level":2,"time":"2023-05-03T14:35:14+00:00","remoteAddr":"***REMOVED SENSITIVE VALUE***","user":"--","app":"core","method":"PROPFIND","url":"/remote.php/dav/","message":"Login failed: '<nextcloud user>' (Remote IP: '***REMOVED SENSITIVE VALUE***')","userAgent":"sabre-dav/4.4.0 (http://sabre.io/)","version":"25.0.6.1","data":{"app":"core"}}
- 主要语言
- JavaScript
- 星标
- 121
- 派生
- 73
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud/user_external 的其他 Issue
-
0. Needs triage bug
难度 2/5 1-3 小时 新手友好度 78/100
nextcloud/user_external#298 · 1 个 reaction ·
-
0. Needs triage enhancement
难度 3/5 1-2 天 新手友好度 35/100
nextcloud/user_external#311 · 3 条评论 · 4 个 reaction ·
-
0. Needs triage bug
难度 3/5 1-2 天 新手友好度 68/100
nextcloud/user_external#310 · 2 条评论 ·
-
v4.0.0 released!未关闭
难度 1/5 1 小时以内 新手友好度 20/100
nextcloud/user_external#295 · 3 个 reaction ·
-
0. Needs triage bug
难度 3/5 1-2 天 新手友好度 52/100
nextcloud/user_external#281 · 6 条评论 · 3 个 reaction ·
查看 nextcloud/user_external 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
processing/p5.sound.js#123 ·
-
难度 1/5 1-3 小时 新手友好度 82/100
PhilflowIO/dav-mcp#146 ·
维护者通常 1 天内回复
-
good first issue hacktoberfest
难度 2/5 1-3 小时 新手友好度 82/100
Tanishq964/trail-kit.#4 ·
-
new icon permissions in review
难度 2/5 1-3 小时 新手友好度 62/100
simple-icons/simple-icons#15067 ·
维护者通常 1 天内回复
-
status: needs triage
难度 2/5 1-3 小时 新手友好度 62/100
mastra-ai/mastra#26562 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复