*New 12.1 series Release:
2019-11-08: XigmaNAS 12.1.0.4.7091 - released!

*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

[SOLVED] Add smbclient PHP extension to XNAS embedded

Post/Debate your Suggestions & Requests of XigmaNAS here. This ONLY pertains to XigmaNAS.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
Snufkin
Advanced User
Advanced User
Posts: 294
Joined: 01 Jul 2012 11:27
Location: Etc/GMT-3 (BSD style)
Status: Offline

[SOLVED] Add smbclient PHP extension to XNAS embedded

#1

Post by Snufkin » 02 Nov 2018 22:43

I'd like to ask XigmaNAS development team to consider the possibility to add smbclient PHP extension to XNAS embedded. It consists of two files with a total size of less than 70 KB.

The reasons why this PHP extension may be included in the XNAS embedded are as follows:
  1. XNAS NextCloud extension (available through OneButtonInstaller) relies on it to connect to Samba shares,
  2. If PHP extension is missing, Nextcloud itself doesn't log clear errors for futher investigation.
    The user should make extra efforts to understand the reasons (use SMB connection test Nextcloud app).
  3. With this PHP extension Nextcloud becomes universal point for remote access to all files on XigmaNAS server, as well as public and personal Samba shares in local network.
  4. This PHP extension works flawlessly with SMB version 2.0+ and provides transparent access to own XNAS Samba shares via mobile devices.
    On Android smartphones is almost impossible to directly access Samba 2.0+ shares.
Workaround can be used to temporarily resolve the issue (thanks Maurizio) to get above two files and make them persistent after server reboot (post-init script).
Last edited by Snufkin on 29 Nov 2018 20:29, edited 2 times in total.
XNAS 11.3.0.4 embedded, ASUS P5B-E, Intel DC E6600, 4 GB DDR2, 2 x HGST HDN726040ALE614, 2 x WDC WD5000AAKS, Ippon Back Power Pro 400

User avatar
Snufkin
Advanced User
Advanced User
Posts: 294
Joined: 01 Jul 2012 11:27
Location: Etc/GMT-3 (BSD style)
Status: Offline

Re: [Suggestion] Add smbclient PHP extension to XNAS embedded

#2

Post by Snufkin » 29 Nov 2018 14:14

Issue resolved in [EXTENSION] NextOwnCloud Version 0.3.4 - 2018.11.29.

A big thank you to Crest, developer and maintainer of the extension suit.
XNAS 11.3.0.4 embedded, ASUS P5B-E, Intel DC E6600, 4 GB DDR2, 2 x HGST HDN726040ALE614, 2 x WDC WD5000AAKS, Ippon Back Power Pro 400

doktornotor
Advanced User
Advanced User
Posts: 198
Joined: 16 May 2017 00:22
Status: Offline

Re: [SOLVED] Add smbclient PHP extension to XNAS embedded

#3

Post by doktornotor » 09 Nov 2019 14:18

It's broken again with 12.1.0.4.7091. Manual install (http://pkg.freebsd.org/FreeBSD:12:amd64 ... .0.0_1.txz) does not work due to some samba version mismatch.
smbclient.png
You do not have the required permissions to view the files attached to this post.

User avatar
Snufkin
Advanced User
Advanced User
Posts: 294
Joined: 01 Jul 2012 11:27
Location: Etc/GMT-3 (BSD style)
Status: Offline

Re: [SOLVED] Add smbclient PHP extension to XNAS embedded

#4

Post by Snufkin » 09 Nov 2019 15:37

doktornotor wrote:
09 Nov 2019 14:18
It's broken again with 12.1.0.4.7091. Manual install (http://pkg.freebsd.org/FreeBSD:12:amd64 ... .0.0_1.txz) does not work due to some samba version mismatch.
Can't reproduce your error.
XigmaNAS 12.1.0.4.7091 and NextCloud 17.0.1 (release) report no smbclient errors.

Do you have Samba AD service active in your environment?
XNAS 11.3.0.4 embedded, ASUS P5B-E, Intel DC E6600, 4 GB DDR2, 2 x HGST HDN726040ALE614, 2 x WDC WD5000AAKS, Ippon Back Power Pro 400

doktornotor
Advanced User
Advanced User
Posts: 198
Joined: 16 May 2017 00:22
Status: Offline

Re: [SOLVED] Add smbclient PHP extension to XNAS embedded

#5

Post by doktornotor » 09 Nov 2019 15:53

We have AD in place, yes. (Note, XigmaNAS Samba does NOT act as a domain controller). See this topic, Samba is badly broken in the 12.1.0.4.7091 release.

User avatar
Snufkin
Advanced User
Advanced User
Posts: 294
Joined: 01 Jul 2012 11:27
Location: Etc/GMT-3 (BSD style)
Status: Offline

Re: [SOLVED] Add smbclient PHP extension to XNAS embedded

#6

Post by Snufkin » 09 Nov 2019 16:10

doktornotor wrote:
09 Nov 2019 15:53
We have AD in place, yes. (Note, XigmaNAS Samba does NOT act as a domain controller).
In my test (embedded) instance I have NO postinit script to install extra php extension files.
I just rely solely on NextOwnCloud extension.
XNAS 11.3.0.4 embedded, ASUS P5B-E, Intel DC E6600, 4 GB DDR2, 2 x HGST HDN726040ALE614, 2 x WDC WD5000AAKS, Ippon Back Power Pro 400

doktornotor
Advanced User
Advanced User
Posts: 198
Joined: 16 May 2017 00:22
Status: Offline

Re: [SOLVED] Add smbclient PHP extension to XNAS embedded

#7

Post by doktornotor » 09 Nov 2019 16:17

The postinit script is a part of the Nextowncloud package and since 0.3.4 it installs phpXX-pecl-smbclient extension automagically. Anyway, this is not a problem with the package, the release needs fixing to not ship outdated libs coming from Samba 4.8.

Post Reply

Return to “Suggestions & Requests”