[Samba] Set printer driver on 4.16.2 does not work

Peter Varkoly peter at varkoly.de
Wed Aug 3 09:54:09 UTC 2022


Hi,

I have problem to set the printer driver with rpc (resp  cupsaddsmb) 
with 4.16.2. The same way has worked on 4.15.5:
I've tried it as Administrator and as user with SePrintOperatorPrivilege 
privilegs as member of the group "Print Operators".

====
rpcclient printserver -N -A /tmp/01c1c62ebd2ec -c 'adddriver "Windows NT 
x86" 
"pr1:pscript5.dll:pr1.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,pr1.ppd,ps5ui.dll,pscript.hlp,pscript.ntf"'
result was WERR_NETNAME_DELETED
=====

The ad Server is a samba-4.16.2 too.
The printserver confiugration is:
=================================================
[global]
workgroup = PRICSKE
realm = PRICSKE.ISKOLA
netbios name = printserver
printing = CUPS
security = ADS
bind interfaces only = yes
interfaces = 172.17.0.4
load printers = no
min domain uid = 0
pid   directory = /run/sambaprintserver
cache directory = /var/lib/printserver
lock  directory = /var/lib/printserver/lock
state directory = /var/lib/printserver
private directory = /var/lib/printserver/private
rpc_server:spoolss = external
rpc_daemon:spoolssd = fork

[print$]
comment = Printer Drivers
path = /var/lib/printserver/drivers
read only = No

[pr1]
path = /var/tmp/
printable = yes
printer name = pr1
hosts allow = 172.17.0.0/24
=================================================

The ad-server configuration is:
=================================================
[global]
netbios name = admin
realm = PRICSKE.ISKOLA
workgroup = PRICSKE
dns forwarder = 172.17.0.6
server role = active directory domain controller
idmap_ldb:use rfc2307 = Yes
check password script = 
/usr/share/cranix/tools/check_password_complexity.sh
bind interfaces only = yes
interfaces = 127.0.0.1, 172.17.0.2
ntlm auth = yes
template shell = /bin/bash
ldap server require strong auth = no
load printers = no
printcap name = /dev/null
disable spoolss = yes
hosts deny = 172.17.1.0/24

[sysvol]
path = /var/lib/samba/sysvol
read only = No

[netlogon]
comment = Network logon
path = /var/lib/samba/sysvol/pricske.iskola/scripts
root preexec = /usr/share/cranix/plugins/share_plugin_handler.sh 
netlogon open %U %I %a %m pricske.iskola
read only = No
================================================


Do you have any hints for me?

Thanks



More information about the samba mailing list