Samba Authentication Error: "Call to undefined function OCA\\UserExternal\\exec()"
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- php
- Lĩnh vực
- authentication
Hướng nghiên cứu
Start in apps/user_external/lib/SMB.php at line 44 and follow tryAuthentication around line 80, using the reported SMB login steps to reproduce the failure. Check how the SMB authentication path invokes exec and verify the result against the expected behavior: successful authentication without the undefined-function error.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Steps to reproduce
- Install Nextcloud Alpine (I used TTeck script in Proxmox)
- Configure Samba Client in config.php
- Try to login with any user
Expected behaviour
Authenticate using smbclient
Actual behaviour
Internel Server Error. Error see below.
Affected Authentication backend
SMB
Server configuration
User External App version: 3.4.0
Operating system: Alpine Linux LXC Container on Proxmox
Web server: Nginx
Database: MySql
PHP version: 8.3
Nextcloud version: Nextcloud Hub 8 (29.0.6)
Updated from an older Nextcloud/ownCloud or fresh install: fresh install
Where did you install Nextcloud from: https://tteck.github.io/Proxmox/#nextcloud-lxc
Signing status:
not relevant
List of activated apps:
not relevant
Nextcloud configuration:
not relevant
Logs
Web server error log
not relevant
Nextcloud log (data/nextcloud.log)
Nextcloud log
{"reqId":"e8M6vGD4blmAsp5VNF8j","level":3,"time":"September 13, 2024 17:29:35","remoteAddr":"XXX","user":"--","app":"index","method":"POST","url":"/index.php/login","message":"Call to undefined function OCA\\UserExternal\\exec() in file '/var/lib/nextcloud/apps/user_external/lib/SMB.php' line 44","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:130.0) Gecko/20100101 Firefox/130.0","version":"29.0.6.1","exception":{"Exception":"Exception","Message":"Call to undefined function OCA\\UserExternal\\exec() in file '/var/lib/nextcloud/apps/user_external/lib/SMB.php' line 44","Code":0,"Trace":[{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/base.php","line":1058,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/usr/share/webapps/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"Error","Message":"Call to undefined function OCA\\UserExternal\\exec()","Code":0,"Trace":[{"file":"/var/lib/nextcloud/apps/user_external/lib/SMB.php","line":80,"function":"tryAuthentication","class":"OCA\\UserExternal\\SMB","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/User/Manager.php","line":266,"function":"checkPassword","class":"OCA\\UserExternal\\SMB","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/share/webapps/nextcloud/lib/private/Authentication/Login/UidLoginCommand.php","line":46,"function":"checkPasswordNoLogging","class":"OC\\User\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/share/webapps/nextcloud/lib/private/Authentication/Login/ALoginCommand.php","line":39,"function":"process","class":"OC\\Authentication\\Login\\UidLoginCommand","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Authentication/Login/UserDisabledCheckCommand.php","line":57,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Authentication/Login/ALoginCommand.php","line":39,"function":"process","class":"OC\\Authentication\\Login\\UserDisabledCheckCommand","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Authentication/Login/PreLoginHookCommand.php","line":52,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Authentication/Login/Chain.php","line":107,"function":"process","class":"OC\\Authentication\\Login\\PreLoginHookCommand","type":"->"},{"file":"/usr/share/webapps/nextcloud/core/Controller/LoginController.php","line":352,"function":"process","class":"OC\\Authentication\\Login\\Chain","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"tryLogin","class":"OC\\Core\\Controller\\LoginController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/base.php","line":1058,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/usr/share/webapps/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/lib/nextcloud/apps/user_external/lib/SMB.php","Line":44},"message":"Call to undefined function OCA\\UserExternal\\exec() in file '/var/lib/nextcloud/apps/user_external/lib/SMB.php' line 44","exception":{},"CustomMessage":"Call to undefined function OCA\\UserExternal\\exec() in file '/var/lib/nextcloud/apps/user_external/lib/SMB.php' line 44"}}
Browser log
not relevant
- Ngôn ngữ chính
- JavaScript
- Star
- 121
- Fork
- 73
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nextcloud/user_external
-
0. Needs triage bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nextcloud/user_external#298 · 1 reaction ·
-
NC 35 compatibilityĐang mở0. Needs triage enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
nextcloud/user_external#311 · 2 bình luận · 4 reaction ·
-
0. Needs triage bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
nextcloud/user_external#310 · 2 bình luận ·
-
v4.0.0 released!Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 20/100
nextcloud/user_external#295 · 3 reaction ·
-
0. Needs triage bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
nextcloud/user_external#281 · 6 bình luận · 3 reaction ·
Tất cả issue của nextcloud/user_external
Issue tương tự
-
`yarn vitest:update` (documented) throws locally; local Cypress scripts target an unserved portĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
rescript-lang/rescript-lang.org#1415 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Deepak3699/Ai_Mentor#244 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
antithesishq/bombadil#361 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ungroomed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
dequelabs/axe-core#5455 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
DietrichGebert/ponytail#1072 ·
Maintainer thường phản hồi trong vòng 3 ngày