two IMAP servers
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- php
调研方向
Start in apps/user_external/lib/IMAP.php at line 74, then trace the checkPassword path shown in the log for the second IMAP configuration. Confirm the fix by checking that users from both configured servers can authenticate without the internal server error.
由索引模型根据 Issue 内容生成。
描述
How do I connect a second IMAP server for authentication?
Nextcloud Hub 25 Autumn (32.0.2)
Here's the config:
'user_backends' =>
array (
0 =>
array (
'class' => '\\OCA\\UserExternal\\IMAP',
'arguments' =>
array (
0 => 'mail.domain1.com',
1 => 993,
2 => 'ssl',
3 => 'domain1.com',
4 => false,
5 => false,
),.
),
1 =>
array (
'class' => '\\OCA\\UserExternal\\IMAP',
'arguments' =>
array (
0 => 'mail.domain2.com',
1 => 993,
2 => 'ssl',
3 => 'domain2.com',
4 => false,
5 => false,
),
),
),
User [email protected] logs in normally.
User [email protected] have error Internal Server Error
in nextcloud.log:
{"reqId":"16288Eia1QgwTtaMlrY0","level":3,"time":"2025-12-01T11:13:54+00:00","remoteAddr":"195.96.64.194","user":"--","app":"index","method":"POST","url":"/login","message":"Call to undefined method OC\\Server::getLogger() in file '/var/www/nextcloud/apps/user_external/lib/IMAP.php' line 74","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36","version":"32.0.2.2","exception":{"Exception":"Exception","Message":"Call to undefined method OC\\Server::getLogger() in file '/var/www/nextcloud/apps/user_external/lib/IMAP.php' line 74","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1061,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":25,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":150,"Previous":{"Exception":"Error","Message":"Call to undefined method OC\\Server::getLogger()","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/User/Manager.php","line":230,"function":"checkPassword","class":"OCA\\UserExternal\\IMAP","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Authentication/Login/UidLoginCommand.php","line":29,"function":"checkPasswordNoLogging","class":"OC\\User\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Authentication/Login/ALoginCommand.php","line":22,"function":"process","class":"OC\\Authentication\\Login\\UidLoginCommand","type":"->"},{"file":"/var/www/nextcloud/lib/private/Authentication/Login/UserDisabledCheckCommand.php","line":39,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->"},{"file":"/var/www/nextcloud/lib/private/Authentication/Login/ALoginCommand.php","line":22,"function":"process","class":"OC\\Authentication\\Login\\UserDisabledCheckCommand","type":"->"},{"file":"/var/www/nextcloud/lib/private/Authentication/Login/PreLoginHookCommand.php","line":34,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->"},{"file":"/var/www/nextcloud/lib/private/Authentication/Login/Chain.php","line":43,"function":"process","class":"OC\\Authentication\\Login\\PreLoginHookCommand","type":"->"},{"file":"/var/www/nextcloud/core/Controller/LoginController.php","line":353,"function":"process","class":"OC\\Authentication\\Login\\Chain","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":204,"function":"tryLogin","class":"OC\\Core\\Controller\\LoginController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":118,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1061,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":25,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/user_external/lib/IMAP.php","Line":74},"message":"Call to undefined method OC\\Server::getLogger() in file '/var/www/nextcloud/apps/user_external/lib/IMAP.php' line 74","exception":{},"CustomMessage":"Call to undefined method OC\\Server::getLogger() in file '/var/www/nextcloud/apps/user_external/lib/IMAP.php' line 74"}}
- 主要语言
- 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 · 2 条评论 · 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
-
Bug pulumi/pulumi
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
andromarces/agent-loops#571 ·
维护者通常 1 天内回复
-
Code Cleanup Dev Environment
难度 2/5 1-3 小时 新手友好度 78/100
ProjectSidewalk/SidewalkWebpage#5699 ·
维护者通常 1 天内回复
-
automated issue report
难度 2/5 1-3 小时 新手友好度 64/100
lirantal/discoprint#38 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
zenstackhq/zenstack#2873 ·
维护者通常 1 天内回复