Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#259 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
JavaScript
スター
121
フォーク
73
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nextcloud/user_external のほかの issue

nextcloud/user_external の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。