[Samba] RSAT Print Management won't show shared printers underthe "Printers" section
L.P.H. van Belle
belle at bazuin.nl
Thu Oct 12 12:04:38 UTC 2017
Hai Thomas,
Thanks for figuring that out and reporting back. First i go install the latest update again.
Then i'll go check again against your findings. I think i waited to short with the KB installed.
But as said, i'll go try that again.
.... And done, and great, you totaly right about that his worked with the KB. It only takes more time.
Almost exact 15min. And everything works as it should.
And i hope Marc or Rowland, can give a good comment on the paramaters set what i show here.
Now, i do beleave that you make the right direction, and solved a problem by settting a wrong setting. ;-)
And that somehow fixed you problem.
> I activated WINS on the DC.
wins support = yes , but if i read man smb.conf : wins support.
it stats, This boolean controls if the nmbd(8) process in Samba will act as a WINS server.
but nmbd is not started in an AD DC.
local master = yes
This option allows nmbd(8) .. see above. AD DC no nmbd.
preferred master... see above. AD DC no nmbd.
If you took the settings you found for my example thats ok, but, i have a other server setup as master browser.
in that config i have this part . ( my file server with the profiles and user home )
# set master browser for the network.
# preffered + domain master = guarantee master browser ( man smb.conf )
preferred master = yes
domain master = yes
interfaces = 192.168.0.2 127.0.0.1
bind interfaces only = yes
dns proxy = yes
wins support = yes
The combination of these parameters,should be set on a member server since nmbd is started there.
Nw the dns proxy = yes settings.
Specifies that nmbd(8) when acting as a WINS server and finding that a NetBIOS name has not
been registered, should treat the NetBIOS name word-for-word as a DNS name.
Now if you going it reinstall this all, then i suggest, do have a look at my howtos.
l'll try to add my print server config today or tomorrow. ( but already here on the list also ),
its basicly a snap of the member (fileserver) howto, but with some changes in both member for
the wins and master browser setup. ) and the needed packages for cups etc.
Greetz,
Louis
________________________________
Van: Thomas Keppler [mailto:winfr34k at gmail.com]
Verzonden: woensdag 11 oktober 2017 23:28
Aan: L.P.H. van Belle
CC: samba at lists.samba.org; Marc Muehlfeld
Onderwerp: Re: [Samba] RSAT Print Management won't show shared printers underthe "Printers" section
Hi,
Happend in Windows 7 64bit, i havent tested win10 since i dont have one ready for management.
So if someone has, and also has this problem, please test and report back also.
On Windows 8.1 and 10 it has always worked for me.
Guys, I seem to have the "solution":
Out of curiosity, I activated WINS on the DC by adding those lines to the smb.conf (the rest of the file was the auto generated one from the DC promotion):
------------ 8< ------------
[global]
[...]
wins support = yes
name resolve order = wins lmhosts hosts bcast
local master = yes
preferred master = yes
domain master = yes
os level = 255
[...]
------------ >8 ------------
...and by extending my DHCP config like so (192.168.0.253 is my DC):
------------ 8< ------------
subnet 192.168.0.0 netmask 255.255.255.0 {
[...]
option netbios-name-servers 192.168.0.253;
[...]
}
------------ >8 ------------
net view on Windows 7 did not immediately want to work, for some reason I had to enable network discovery in the "Advanced file sharing settings" like so: https://imgur.com/9wdFLpC
Et voilĂ , printers!
https://imgur.com/jUpqt53
My final smb.conf on the printserver is:
------------ 8< ------------
[global]
security = ADS
workgroup = EXAMPLE
realm = AD.EXAMPLE.COM
log file = /var/log/samba/%m.log
log level = 1
idmap config * : backend = tdb
idmap config * : range = 10000 - 19999
idmap config EXAMPLE : backend = rid
idmap config EXAMPLE : range = 1000000 - 1999999
winbind enum users = yes
winbind enum groups = yes
winbind use default domain = yes
winbind refresh tickets = yes
template homedir = /home/%D/%U
template shell = /bin/bash
client use spnego = yes
client ntlmv2 auth = yes
encrypt passwords = yes
restrict anonymous = 2
domain master = no
local master = no
preferred master = no
os level = 0
load printers = yes
rpc_server:spoolss = external
rpc_daemon:spoolssd = fork
[printers]
path = /var/spool/samba
printable = yes
printing = CUPS
[print$]
comment = Print drivers
path = /var/lib/samba/drivers
create mask = 0775
inherit permissions = yes
guest ok = no
read only = no
------------ >8 ------------
Adding a new printer in CUPS works like a charm. After about 15min of waiting, the printer appears in the Print Management console.
NOTE: I didn't have to do ANY of this on Windows 8.1/10, including I didn't need WINS on those systems. The Windows 7 machine I used was up-to-date (even with the KB installed mentioned by Louis).
I will try to setup Samba once again using that config from scratch (DC, fileserver and printserver) on the weekend to see if it's solved now for me. That will also be the test to determine if I write a bug report or instead improve the documentation at this point because right now, it just seems like Windows 7 is a bit picky of whom it's talking to.
@Louis, @Marc: Can you two please test out the setup using WINS, making sure to enable the network discovery and file sharing on Windows 7? I would be really interested to see if that fixes your problems, too.
Thank you!
--
Best regards
Thomas
More information about the samba
mailing list