[Samba] problems upgrading samba to 4.12.15
Piviul
piviul at riminilug.it
Tue May 4 10:44:15 UTC 2021
Il 04/05/21 10:34, L.P.H. van Belle via samba ha scritto:
> Hai Piviul.
>
> It might be related to :
> https://bugzilla.samba.org/show_bug.cgi?id=14668
>
> This looks simular.
Hi Louis thanks a lot for your prompt reply.
I don't think this problem is related to the 14668 bug because I dont'
remember why but I have not enabled spoolssd service in smb.conf; I
remember only that I've tried to enable it but something was wrong with
it, perhaps for the bug 14668! ;) Furthermore in samba 4.12.14 I have no
problem, the %I is expanded with the ip of the client but in samba
4.12.15 %I is expanded in 0.0.0.0. this is my smb.conf:
# Global parameters
[global]
log file = /var/log/samba/log.%m
logging = file
map to guest = Bad User
max log size = 1000
obey pam restrictions = Yes
pam password change = Yes
panic action = /usr/share/samba/panic-action %d
realm = AD.CSARICERCHE.COM
security = ADS
server min protocol = NT1
server string = %h server
template shell = /bin/bash
usershare allow guests = Yes
winbind refresh tickets = Yes
wins server = 192.168.64.2
workgroup = DOMINIOCSA
idmap config dominiocsa : range = 10000-24999
idmap config dominiocsa : backend = rid
idmap config * : range = 3000-9999
idmap config * : backend = tdb
printing = bsd
[homes]
browseable = No
comment = Home Directories
create mask = 0700
directory mask = 0700
read only = No
[printers]
browseable = No
comment = All Printers
create mask = 0700
path = /var/spool/samba
printable = Yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
write list = "@DOMINIOCSA\domain admins"
[tuning]
comment = Conversione in PDF delle stampe di tuning degli strumenti
force group = "DOMINIOCSA\domain users"
lpq command =
path = /tmp
printable = Yes
print command = /opt/scripts/bin/tuningPDF.sh "%s" "%J" "%p" "%m"
'default' %I
> Only for you its the IP you need, patch focus is on user variable.
> So, im dont know for sure here.
>
> Ralph, can you verify my assumption?
I have not understand what you are saying me perhaps is a language code
that only Ralph can understand? ;)...
Any way what I need is to identify the client who is printing and send
the ip address is a way to identify it. The first anomaly I've found is
that in samba 4.12.14 the %m is expanded to the ip address of the
client, in 4.12.15 is expanded to the string "smbd"... furthermore, the
%I in 4.12.14 is expanded to the ip address of the client, in 4.12.15 is
expanded to the ip 0.0.0.0.
My best regards
Piviul
More information about the samba
mailing list