[Samba] Samba 4.1.4 fails to recognize "load printers = NO"

Denis Cardon denis.cardon at tranquil-it-systems.fr
Fri Feb 28 02:05:25 MST 2014


Hi Tony,

> My log files are full of crap about cups errors, despite smb4.conf
> explicitly stating not to load printers, and stating not to use cups in any
> case.
> Feb 27 16:32:38 arabian winbindd[1321]: [2014/02/27 16:32:38.591648,  0]
> ../source3/winbindd/winbindd_cache.c:3196(initialize_winbindd_cache)
> Feb 27 16:32:38 arabian winbindd[1321]:   initialize_winbindd_cache:
> clearing cache and re-creating with version number 2
> Feb 27 16:32:39 arabian smbd[1324]: [2014/02/27 16:32:39.384533,  0]
> ../source3/printing/print_cups.c:151(cups_connect)
> Feb 27 16:32:39 arabian smbd[1324]:   Unable to connect to CUPS server
> localhost:631 - Connection refused

In order to remove those annoying message, adding those two lines to the 
[global] section should do it :

[global]
...
         printcap name = /dev/null
         load printers = no
...

Hope this helps,

Denis


> Feb 27 16:32:39 arabian smbd[1323]: [2014/02/27 16:32:39.407486,  0]
> ../source3/printing/print_cups.c:528(cups_async_callback)
> Feb 27 16:32:39 arabian smbd[1323]:   failed to retrieve printer list:
> NT_STATUS_UNSUCCESSFUL
> Feb 27 16:33:39 arabian smbd[1404]: [2014/02/27 16:33:39.449966,  0]
> ../source3/printing/print_cups.c:151(cups_connect)
> Feb 27 16:33:39 arabian smbd[1404]:   Unable to connect to CUPS server
> localhost:631 - Connection refused
> Feb 27 16:33:39 arabian smbd[1323]: [2014/02/27 16:33:39.474745,  0]
> ../source3/printing/print_cups.c:528(cups_async_callback)
> Feb 27 16:33:39 arabian smbd[1323]:   failed to retrieve printer list:
> NT_STATUS_UNSUCCESSFUL
> Feb 27 16:46:39 arabian smbd[2498]: [2014/02/27 16:46:39.892930,  0]
> ../source3/printing/print_cups.c:151(cups_connect)
> Feb 27 16:46:39 arabian smbd[2498]:   Unable to connect to CUPS server
> localhost:631 - Connection refused
> Feb 27 16:46:39 arabian smbd[1323]: [2014/02/27 16:46:39.946818,  0]
> ../source3/printing/print_cups.c:528(cups_async_callback)
> Feb 27 16:46:39 arabian smbd[1323]:   failed to retrieve printer list:
> NT_STATUS_UNSUCCESSFUL
>
> Relevant part of the smb4.conf
> [global]
> ...
> # log files full of print errors unless that is explicitly turned off
> # and even with this example from search results there are errors
> load printers = no
> printing = bsd
> printcap name = /dev/null
> disable spoolss = yes
>
> with or without the following:
> [printers]
> browsable = no
> printable = no
>
> It appears that 3 directives are being ignored, in that 'printing = bsd'
> should cause the lack of cups to stop being an issue, 'load printers = no'
> should stop it from trying in any case, and 'printable = no' should stop it
> even if the other 2 are ignored.
>
> The wiki and HOW TO are useless as they are just as focused on making the
> server into a printing hub as it is on making the machine be a DC despite a
> 'server role = member server' statement.   FWIW:
> 	samba-tool domain provision --server-role= member  --domain=EXAMPLE
> --realm=EXAMPLE.LOCAL
> results in a DC that refuses to be demoted, and won't join an existing AD
> without adding to [global]:
> 	# !!!!!!!!!!!!! mandatory & missing from member provision step
> !!!!!!!!!!
> 	security = ADS
> It is all well and good to explain how to enable the services and try to be
> the one-box-to-rule-them-all, but there should be working examples about how
> to disable services when that service is not a role for this machine.!.!.!
>
> This is a fresh install of both the OS, and its Samba4.1 port
> (/usr/ports/net/samba41).
> ::::    OS =>   FreeBSD 10.0-RELEASE           smbd -V     Version 4.1.4
>
> cups is not , and will not be installed, and I don't want to have this
> server capable of printing. I am simply trying to get the  continuously
> spewing crap out of the log file.
>
> Any suggestions about how to resolve this are appreciated,
> Tony
>
>


-- 
Denis Cardon
Tranquil IT Systems
Les Espaces Jules Verne, bâtiment A
12 avenue Jules Verne
44230 Saint Sébastien sur Loire
tel : +33 (0) 2.40.97.57.55
http://www.tranquil-it-systems.fr



More information about the samba mailing list