Im wondering...
> winbind enum groups = Yes
> winbind enum users = Yes
Change these to No.
printing = CUPS And load printers = no
You mixed 2 types of setup, this is a working setup. ( see my smb.conf of my
dedicated print server. )
My setup Debian Stretch samba 4.9.2. with cups.
One thing you really should know, if you use the default folders, then add the
user maintain cups to lpadmin.
And if its running, configure the shares from within windows.
[global]
log level = 0
workgroup = NTDOM
security = ADS
realm = INTERNAL.REALM.TLD
netbios name = PRINTSVR1
preferred master = no
domain master = no
host msdfs = no
interfaces = 192.168.0.5 127.0.0.1
bind interfaces only = yes
dns proxy = yes
tls enabled = yes
tls keyfile = /etc/ssl/private/XXXXXXXKEYpem
tls certfile = /etc/ssl/certs/XXXXXXXXCERT.pem
tls cafile = /etc/ssl/certs/ROOTCA.pem
idmap config * :backend = tdb
idmap config * :range = 2000-9999
idmap config NTDOM: backend = ad
idmap config NTDOM: schema_mode = rfc2307
idmap config NTDOM: range = 10000-3999999
idmap config NTDOM: unix_primary_group = yes
idmap config NTDOM: unix_nss_info = yes
dedicated keytab file = /etc/krb5.keytab
kerberos method = secrets and keytab
winbind refresh tickets = yes
winbind use default domain = yes
winbind enum users = no
winbind enum groups = no
winbind offline logon = yes
username map = /etc/samba/samba_usermapping
usershare path
vfs objects = acl_xattr
map acl inherit = yes
store dos attributes = yes
veto files = /.bash_logout/.bash_profile/.bash_history/.bashrc/
hide unreadable = yes
rpc_server:spoolss = external
rpc_daemon:spoolssd = fork
spoolss:architecture = Windows x64
load printers = yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
acl_xattr:ignore system acl = yes
browseable = yes
writable = yes
guest ok = no
write list = root, administrator, @"Domain Admins", @lpadmin,
@"Print Operators"
[printers]
comment = All Printers
path = /home/samba/printing/spool
acl_xattr:ignore system acl = yes
browseable = yes
printable = yes
printing = CUPS
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> Micha Ballmann via samba
> Verzonden: woensdag 21 november 2018 11:33
> Aan: samba at lists.samba.org
> Onderwerp: [Samba] Testparm CUPS warning
>
> Hello,
>
> today i upgrade my printserver from samba 4.8.6 to 4.9.2
> (ubuntu 18.04).
> First, all is working correctly. But whe im typing "testparm" now
the
> following warnings are shown:
>
> ##############
>
> Loaded services file OK.
>
> Warning: Service printers defines a print command, but parameter is
> ignored when using CUPS libraries.
>
> Warning: Service print$ defines a print command, but parameter is
> ignored when using CUPS libraries.
>
> Warning: Service MX511de defines a print command, but parameter is
> ignored when using CUPS libraries.
>
> Warning: Service printer01 defines a print command, but parameter is
> ignored when using CUPS libraries.
>
> Warning: Service printer01_null defines a print command, but
> parameter
> is ignored when using CUPS libraries.
>
> Warning: Service pcclient defines a print command, but parameter is
> ignored when using CUPS libraries.
>
> ##############
>
> My smb.conf:
>
> ##############
>
> [global]
>
> security = ads
> realm = rootrudi.de
> workgroup = ROOTRUDI
> idmap config *: backend = tdb
> idmap config *: range = 3000-7999
> idmap config ROOTRUDI:backend = ad
> idmap config ROOTRUDI:range = 10000-999999
> idmap config ROOTRUDI:schema_mode = rfc2307
> idmap config ROOTRUDI: unix_nss_info = no
> domain master = No
> local master = No
> preferred master = No
> os level = 0
> restrict anonymous = 2
> winbind cache time = 10
> winbind enum groups = Yes
> winbind enum users = Yes
> winbind use default domain = Yes
> #winbind use default domain = No
> map acl inherit = Yes
> store dos attributes = Yes
> vfs objects = acl_xattr
> username map = /usr/local/samba/private/user.map
> printing = CUPS
> rpc_server:spoolss = external
> rpc_daemon:spoolssd = fork
> load printers = no
> spoolss: architecture = Windows x64
> print
> command=/home/papercut/providers/print/linux-x64/samba-print-p
rovider -u > "%u" -J "%J" -h "%h" -m "%m" -p
"%p" -s "%s" -a "[standard
> print command]" &
>
>
> [printers]
> path = /var/spool/samba/
> printable = yes
> browseable = Yes
> read only = No
>
> [print$]
> path = /srv/samba/printer_drivers/
> read only = no
>
> [MX511de]
> path = /var/spool/samba/
> printable = yes
> printer name = MX511de
>
>
> [printer01]
> comment = Ricoh MP C4504ex
> path = /var/spool/samba/
> printable = yes
> printer name = printer01
>
> [printer01_null]
> comment = Ricoh MP C4504ex_null
> path = /var/spool/samba/
> printable = yes
> printer name = printer01_null
>
> ##############
>
> *Yes the printserver also runs CUPS. But i dont understand
> the message.
> Do i need to do something or can ignore this?*
>
> Regards
>
> Micha
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>