Difference between revisions of "OpenWRT WINS with Samba"

m
no edit summary
m
m
Line 2: Line 2:
Invaluable Information from here: https://www.samba.org/samba/docs/using_samba/ch07.html (NOTE: This entire page is marked as "this is old information and might be incorrect", however, WINS is old too, and as it turns out, all of the information in regards to WINS is still accurate)
Invaluable Information from here: https://www.samba.org/samba/docs/using_samba/ch07.html (NOTE: This entire page is marked as "this is old information and might be incorrect", however, WINS is old too, and as it turns out, all of the information in regards to WINS is still accurate)


===== Samba Related Information =====
=====Samba Related Information=====
<br />
======Samba Information======
OpenWRT Samba is configured to look for the ''lmhosts'' file (all lower case) here: /etc/samba/lmhosts (it was verified by looking in the log files for where it loads the file)
 
To configure logging, add the following directives (minus comments) to the /etc/samba/smb.conf file in the [glolbal] section;<syntaxhighlight lang="text">
# The below is the default location
log file = /tmp/log/samba/samba.log
log level = 3
# Per log file, the below has been deprecated
# syslog = 1
</syntaxhighlight>Information from above was referenced from here: https://wiki.samba.org/index.php/Configuring_Logging_on_a_Samba_Server
 
====== Top Tips ======
Do NOT set the log level higher than 3 or it will just fill up with gibberish
 
Do NOT attempt to read the log file via a text editor through a Samba shared directory, or the log file will fill with recursive gibberish (IE, use ''nano'' or ''vi)''


====== Samba Information ======
Best to not use these directives; client min protocol = SMB2, client max protocol = SMB3 (If SMB1 or SMB2 are needed, switch to Samba 3)
OpenWRT Samba is configured to look for the ''lmhosts'' file (all lower case) here: /etc/samba/lmhosts (it was verified by looking in the log files for where it loads the file)
 
When configuring the Hostname in the LuCI GUI, System, System, General Settings Tab, use ONLY the host name, not the "fully qualified host name" (IE use OpenWRT, do not use OpenWRT.WhatEverDomain.WhatEverComOrLocalOrLanEtc)


======Commands Related to WINS for Samba======
======Commands Related to WINS for Samba======
Line 23: Line 40:
There are several configuration directives that have been removed / deprecated from Samba 4.  They include "announce as", "announce version", along with some others.
There are several configuration directives that have been removed / deprecated from Samba 4.  They include "announce as", "announce version", along with some others.


===== Other Information =====
=====Other Information=====


If there is no Windows Domain Controller within a subnet, the following configuration is recommended for the /etc/dhcpd;<syntaxhighlight lang="text">
If there is no Windows Domain Controller within a subnet, the following configuration is recommended for the /etc/dhcpd;<syntaxhighlight lang="text">