Date: Mon, 24 Apr 2017 14:47:41 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 218848] www/owncloud Cannot login through SMB: smbclient not found Message-ID: <bug-218848-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218848 Bug ID: 218848 Summary: www/owncloud Cannot login through SMB: smbclient not found Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: kevlo@FreeBSD.org Reporter: sg-ball@laposte.net Flags: maintainer-feedback?(kevlo@FreeBSD.org) Assignee: kevlo@FreeBSD.org I've installed owncloud 9.1.4 on FreeBSD 10.3-RELEASE-p18. I could manage to have everything functional but user external authentication through SMB. Ev= en after declaring a Windows server, the browser still display *Incorrect password* and the log contains a line saying {"reqId":"be9VGQ1TXdvdH7063lbq","remoteAddr":"****","app":"user_external","= message":"ERROR: smbclient executable missing","level":3,"time":"...","method":"POST","url":"\/owncloud\/index.ph= p\/login?user=3D***","user":"--"} After some research, I found that the culprit was /apps/user_external/lib/smb.php . It declares the call to smbclient as "smbclient -L" and hopes that the php module will find it in the path. Unfortunately in a vanilla FreeBSD installation, smbclient lies under /usr/local/bin and is not found by the PHP exec function. Workaround: it is enough to give the full path of smbclient in smb.php: original line: const SMBCLIENT =3D 'smbclient -L'; modified line: const SMBCLIENT =3D '/usr/local/bin/smbclient -L'; After this minimal patch (line 21), all goes fine and I can successfully use SMB external user authentication. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218848-13>