[Samba] Client specific logging bug?

James lingpanda101 at gmail.com
Tue Oct 6 12:56:55 UTC 2015


Hello,

    Enabling client specific logging I receive the following error when
issuing

@pdc1:~# /usr/local/samba/bin/samba-tool testparm
Can't find include file /usr/local/samba/etc/smb.conf.client-%I
ERROR: Unable to load default file

Samba does find the file as evident by the log being created and using
the appropriate parameters.

pdc1:~# ls /usr/local/samba/etc/
lmhosts  rsyncd.secret  smb.conf  smb.conf.client-172.16.232.30 
smb.conf.client-debug

@pfdc1:~# ls -l /var/log/samba/
total 22468
-rw-r--r-- 1 root root    85125 Oct  6 08:49 log.0.0.0.0
-rw-r--r-- 1 root root     2115 Oct  6 08:39 log.172.16.232.25
-rw-r--r-- 1 root root 22905810 Oct  6 08:43 log.172.16.232.30
-rw-r--r-- 1 root root      705 Oct  6 08:39 log.172.16.232.97

Created sym link to debug file

ln -s /usr/local/samba/etc/smb.conf.client-debug
/usr/local/samba/etc/smb.conf.client-172.16.232.30

Followed the wiki at
https://wiki.samba.org/index.php/Client_specific_logging


pdc1:~# /usr/local/samba/sbin/samba -V
Version 4.3.0

Ubuntu 12.04


[global]
        workgroup = SAMBA
        realm = SAMBA.LOCAL
        netbios name = PDC1
        server role = active directory domain controller
        dns forwarder = 8.8.8.8
        idmap_ldb:use rfc2307 = Yes

        log level = 2
        logging = syslog at 1 file
        debug uid = Yes
        debug pid = Yes

        # Don't allow any updates | allow unsigned updates | only allow
signed updates (False | nonsecure | secure only | signed)
        allow dns updates = nonsecure

        #Disable CUPS Printing
        load printers = No
        printcap name = /dev/null
        disable spoolss = Yes

        # Add and Update TLS Key
        tls enabled = yes
        tls keyfile = tls/sambaKey.pem
        tls certfile = tls/sambaCert.pem
        tls cafile =
        #tls crlfile =
        #tls dh parms file =

        include = /usr/local/samba/etc/smb.conf.client-%I

[netlogon]
        path = /usr/local/samba/var/locks/sysvol/samba.local/scripts
        read only = No

[sysvol]
        path = /usr/local/samba/var/locks/sysvol
        read only = No





-- 
-James





More information about the samba mailing list