[Samba] Samba 4.12.15 preexec not expanding variables
Franz Gansberger
franz.gansberger at boku.ac.at
Tue Apr 19 12:07:18 UTC 2022
Hi Rowland,
thank you for the quick answer.
I might not get there this fast in the next months.
I'm doing a quite conservative upgrade philosopy.
Might there be some workaround?
Kind Regards
Franz
>>> Rowland Penny <rpenny at samba.org> 18.04.2022 14:10 >>>
On Mon, 2022-04-18 at 13:24 +0200, Franz Gansberger via samba wrote:
> Hi,
>
> after successfully upgrading our DC to 4.12.15 the pre (and post)
> exec-scripts stopped expanding the variables:
>
> Ther are two lines in smb.conf:
>
> [netlogon]
>
> root preexec = bash -c '/bin/echo "Logon am %T als %U an %M
> mit %I" >> /var/log/samba/info.log'
> root postexec = bash -c '/bin/echo "Logoff am %T als %U an
> %M mit %I">> /var/log/samba/info.log'
>
> This generated an entry in info.log
>
> Logoff am 2022/04/18 10:32:14 als h9xx_photometer an 141.aba.ccc.acd
> mit 141.aba.ccc.acd
> Logoff am 2022/04/18 10:32:14 als pcxxxyyy_ an 141.abb.ccb.bcd mit
> abb.ccb.bcd
> Logoff am 2022/04/18 10:32:14 als sunw10-64bit_ an 141.xxx.yyy.zzz
> mit 141.xxx.yyy.yzzz
> Logon am 2022/04/18 10:32:19 als an mit 0.0.0.0
> Logon am 2022/04/18 10:32:19 als an mit 0.0.0.0
>
> It stopped after upgrading from 4.11 to 4.12 - on two Debian Buster
> Server.
> Any Idea would be appreciated.
Keep upgrading, it works on 4.15.6
I would also consider upgrading buster to bullseye.
Rowland
More information about the samba
mailing list