Hi, I'm using Samba 4.7.6 on Ubuntu 18.04 LTS (unfortunately I cannot upgrade at the moment because I'm using Zentyal which is locked here) and I'm trying to enable JSON Auth logging. If I add this in my Samba configuration I cannot get auth JSON logged to the main Samba log file (/var/log/samba/samba.log): =================================================log file = /var/log/samba/samba.log log level = 3 auth_json_audit:3 max log size = 100000 ================================================= But if I try to specify a dedicated log file for JSON auth logs they are not logged to the specified log file: =================================================log file = /var/log/samba/samba.log log level = 3 auth_audit:3 auth_json_audit:3@/var/log/samba/auth_audit.log max log size = 100000 ================================================= Could you help me to understand where I'm wrong, please? Thank you very much! Bye
Andrew Bartlett
2020-Dec-10 00:42 UTC
[Samba] auth_json_audit is not logging to a custom log file
On Wed, 2020-12-09 at 21:28 +0100, shacky via samba wrote:> Hi, > > I'm using Samba 4.7.6 on Ubuntu 18.04 LTS (unfortunately I cannot > upgrade > > at the moment because I'm using Zentyal which is locked here) and I'm > > trying to enable JSON Auth logging.I would be very surprised if your server is secure (that is, has all the current security patches), so I would upgrade with urgency anyway. You need Samba 4.10 and later for the per-class logfiles. Andrew Bartlett -- Andrew Bartlett https://samba.org/~abartlet/ Authentication Developer, Samba Team https://samba.org Samba Development and Support, Catalyst IT - Expert Open Source Solutions https://catalyst.net.nz/services/samba