Hi all, now that I have solved drivers problem on shared printers I've found a new problem regarding variable substitution on shared printers "print command"... in smb.conf on the print command parameter section I read:> %J - the job name as transmitted by the client.but the print command receive the ip address with dots replaced with underscore :? In effect in smb.conf variable substitution section I can read:> %J - the IP address of the client machine, colons/dots replaced by underscores.There is no way to have the job name to send to the print command as it was before the AD upgrade? Furthermore I have another problem in variable substitution: %m doesn't contain the client machine name but his ip address. That's seems due to the 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... Thank you very much Piviul
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. -- dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/ Polo FVG - Via della Bont?, 7 - 33078 - San Vito al Tagliamento (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
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
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;In my smb.conf the "log file" parameter is set to /var/log/samba/log.%m. Do you know why in /var/log/samba for the same PC sometimes the logs are memorized in log.<ip address> and sometimes in log.<netbios name>? Piviul