[Samba] variable substitution

Piviul piviul at riminilug.it
Wed Nov 4 13:15:53 UTC 2020


Marco Gaiarin via samba ha scritto il 03/11/20 alle 16:22:
> Mandi! Piviul via samba
>    In chel di` si favelave...
> 
>> smb ports parameter; in effect in man smb.conf I can read: This parameter is
>> not available when Samba listens on port 445. There is no way yo have the
>> client name? All %m, %M, %I contains ip address...
> 
> No and yes.
> 
> 
> No, because effectively SMB2+ does not pass anymore host name;
> 
> Yes, because in AD now you have DNS, and so a simple (back) resolving
> against the DC DNS will do the trick.
in effect I have solved the problem of the client name taking the client 
name from the ip address.

Someone knows why %J variable substitution is performed before the print 
command variable substitution? In your opinion I have to open a bug report?

Piviul



More information about the samba mailing list