Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Samba Authentication Error: "Call to undefined function OCA\\UserExternal\\exec()"

Đang mở
#259 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ả

0. Needs triage bug
Steps to reproduce
  1. Install Nextcloud Alpine (I used TTeck script in Proxmox)
  2. Configure Samba Client in config.php
  3. 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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nextcloud/user_external

Tất cả issue của nextcloud/user_external

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.