Hm, as @robb reported, the command and the Share tab is working for me in Windows 10 and Firefox but if the command result is empty there may be another problem…
Thanks for your effort!
The machines joined to domain was not working for me because they’re not listed in /var/lib/nethserver/home.
I added /usr/bin/net to sudoers and changed the command in the Joined.php template.
Yes but maybe I have a problem because my machines are not listed in /var/lib/nethserver/home. I use local AD provider and login from my Windows machines is working. Do you use linux clients or remote AD?
Using local AD (avion.lan), some Windows computers joined and logged.
Mine is a virtualbox windows 8.
Some other are real hardware that are logged just one is using the shared folders.
I’m working on this NethServer AD (inside proxmox) is prepared to replace a really old Windows 2000 SBS PDC.
Something that I’m notice right now, the folder shows even computers that aren’t joined to this domain (avion.lan), those computers still are joined in the old one (avion.local)
EDIT1:
If I edit the script Joined.php; I need to do something for this to work or is used instantly after being edited?
EDIT2:
If I run the php script from the terminal, I got this error:
PHP Notice: Undefined variable: view in /usr/share/nethesis/NethServer/Template/SambaStatus/Joined.php on line 2
PHP Fatal error: Call to a member function header() on a non-object in /usr/share/nethesis/NethServer/Template/SambaStatus/Joined.php on line 2
You solved.
I just simple change CEST for MDT my time zone:
$command= $sudo . “smbstatus -S | grep MDT | awk '{print $1 “\t” $3 “\t” $4”/"$5"/"$6 " " $7}’ | sort";
Too bad I can not install it, probably gives a problem with the language file!
[root@openzwo ~]# rpm -i nethserver-sambastatus-7.0-2.x86_64.rpm
file /usr/share/nethesis/NethServer/Language/de from install of nethserver-sambastatus-7.0-2.x86_64 conflicts with file from package nethserver-lang-de-1.2.15-1.ns7.noarch
[root@openzwo ~]#
rpm -i nethserver-sambastatus-7.0-2.x86_64.rpm
file /etc/sudoers.d/30_nethserver_sambastatus from install of nethserver-sambastatus-7.0-2.x86_64 conflicts with file from package nethserver-sambastatus-7.0-1.x86_64
file /usr/share/nethesis/NethServer/Language/en/NethServer_Module_SambaStatus.php from install of nethserver-sambastatus-7.0-2.x86_64 conflicts with file from package nethserver-sambastatus-7.0-1.x86_64
file /usr/share/nethesis/NethServer/Language/it/NethServer_Module_SambaStatus.php from install of nethserver-sambastatus-7.0-2.x86_64 conflicts with file from package nethserver-sambastatus-7.0-1.x86_64
file /usr/share/nethesis/NethServer/Template/SambaStatus/Joined.php from install of nethserver-sambastatus-7.0-2.x86_64 conflicts with file from package nethserver-sambastatus-7.0-1.x86_64
file /usr/share/nethesis/NethServer/Template/SambaStatus/Share.php from install of nethserver-sambastatus-7.0-2.x86_64 conflicts with file from package nethserver-sambastatus-7.0-1.x86_64
I can confirm this issue, as soon as german language is installed the update of sambastatus does not work.
It’s not possible to have German language and sambastatus installed.
I didn’t get these messages. As a workaround you may try to remove sambastatus with yum remove nethserver-sambastatus and reinstall with yum install nethserver-sambastatus-7.0-2.x86_64.rpm.