<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div>Package: samba<br>Version: 2:4.2.14+dfsg-0+deb8u12<br>Severity: normal<br><br>Hello,<br><br>When searching for information about users who have connected to a certain share in our file sharing service, we realize that the Samba suite's "service.c" module no longer registers this connection in the service logs (/var/log/samba/log.smbd, in our configuration). In previous versions of Debian, as well as in the currently stable (stretch), the Samba daemon recorded the following message when a user connected to the share:<br>[2019/04/30 09:36:16.865504, 2] ../source3/smbd/service.c:841(make_connection_snum)<br> Computer_Name (Source IP Address:Port) connect to service share_name initially as user username (uid=65534, gid=65534) (pid 6804)<br><br>And when the user disconnects from the share:<br>[2019/04/30 09:36:20.817461, 2] ../source3/smbd/service.c:1120(close_cnum)<br> Computer_Name (Source IP Address:Port) closed connection to service share_name<br><br>To reproduce the situation it is necessary to access a share, on the Samba file server, with a valid user, as in the following example:<br>smbclient //192.168.1.10/sharename -U username -W DOMAINNAME<br><br>The messages previously displayed are no longer registered in the log file even with the policy "log level = 2 auth:3".<br><br>Our Samba file service configuration in use is the following:<br>[global]<br> workgroup = DOMAINNAME<br> netbios name = SERVER<br> netbios aliases = SERVEROLD<br> passdb backend = ldapsam:"ldaps://ldap.server.name ldaps://other.ldap.server.name" <br> ldap admin dn = uid=bind-account,ou=organization,dc=mydcname1,dc=mydcname2<br> ldap suffix = ou=organization,dc=mydcname1,dc=mydcname2<br> ldap passwd sync = no<br> ldap ssl = no<br> ldap timeout = 5<br> admin users = @smb-org-administrators<br> dns proxy = no<br> name resolve order = wins bcast<br> server string =<br> load printers = no<br> unix charset = utf8<br> nt acl support = yes<br> unix extensions = no<br> msdfs root = yes<br> max log size = 0<br> log level = 2 auth:3<br> wins support = yes<br> preferred master = Yes<br> local master = Yes<br> domain master = Yes<br> os level = 233<br> domain logons = yes<br> time server = yes<br> logon drive = u:<br> logon path =<br> logon home = \\archives\homes<br> logon script = %U.bat<br> guest account = nobody<br> passwd program = /usr/bin/passwd %u<br> passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .<br> lanman auth = yes<br> ntlm auth = yes<br> client lanman auth = yes<br> client ntlmv2 auth = yes<br> security = user<br> encrypt passwords = true<br> guest account = nobody<br> kernel oplocks = no<br> case sensitive = no<br> hide files = /lost+found/<br> veto files = /.DS_Store/._.DS_Store/.Trash-*/<br> load printers = No<br> printing = bsd<br> printcap name = /dev/null<br> disable spoolss = yes<br> socket options = TCP_NODELAY<br> vfs objects = full_audit<br> full_audit:facility = LOCAL5<br> full_audit:priority = NOTICE<br> full_audit:prefix = %u|%U|%I|%S<br> full_audit:success = mkdir rmdir open pwrite rename unlink<br> full_audit:failure = mkdir rmdir open pwrite rename unlink<br><br><br>[netlogon]<br> path = /etc/samba/netlogon<br> root preexec = /etc/samba/scripts/preset.sh %U<br> writeable = no<br><br><br>I believe that previous versions available in GNU/Debian 8 (jessie) are also affected by this behavior. Since it brings a lot of relevant information to the service administration, used since the Samba beginning, I believe that it would be important to evaluate the problem and forward some correction, if possible.<br><br>Regards.</div><div><br></div><div><br></div><div><div>-- System Information:<br>Debian Release: 8.11<br> APT prefers oldstable<br> APT policy: (500, 'oldstable')<br>Architecture: amd64 (x86_64)<br><br>Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)<br>Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)<br>Shell: /bin/sh linked to /bin/dash<br>Init: systemd (via /run/systemd/system)<br><br>Versions of packages samba depends on:<br>ii adduser 3.113+nmu3<br>ii dpkg 1.17.27<br>ii libbsd0 0.7.0-2<br>ii libc6 2.19-18+deb8u10<br>ii libhdb9-heimdal [heimdal-hdb-api-8] 1.6~rc2+dfsg-9+deb8u1<br>ii libldb1 2:1.1.20-0+deb8u2<br>ii libpam-modules 1.1.8-3.1+deb8u2+b1<br>ii libpam-runtime 1.1.8-3.1+deb8u2<br>ii libpopt0 1.16-10<br>ii libpython2.7 2.7.9-2+deb8u2<br>ii libtalloc2 2.1.2-0+deb8u1<br>ii libtdb1 1.3.6-0+deb8u1<br>ii libtevent0 0.9.28-0+deb8u1<br>ii lsb-base 4.1+Debian13+nmu1<br>ii multiarch-support 2.19-18+deb8u10<br>ii procps 2:3.3.9-9+deb8u1<br>ii python 2.7.9-1<br>ii python-dnspython 1.12.0-1<br>ii python-ntdb 1.0-5<br>ii python-samba 2:4.2.14+dfsg-0+deb8u12<br>ii python2.7 2.7.9-2+deb8u2<br>ii samba-common 2:4.2.14+dfsg-0+deb8u12<br>ii samba-common-bin 2:4.2.14+dfsg-0+deb8u12<br>ii samba-dsdb-modules 2:4.2.14+dfsg-0+deb8u12<br>ii samba-libs 2:4.2.14+dfsg-0+deb8u12<br>ii tdb-tools 1.3.6-0+deb8u1<br>ii update-inetd 4.43<br><br>Versions of packages samba recommends:<br>ii attr 1:2.4.47-2<br>ii logrotate 3.8.7-1+b1<br>ii samba-vfs-modules 2:4.2.14+dfsg-0+deb8u12<br><br>Versions of packages samba suggests:<br>pn bind9 <none><br>pn bind9utils <none><br>pn ctdb <none><br>pn ldb-tools <none><br>pn ntp <none><br>pn smbldap-tools <none><br>pn winbind <none><br><br>-- no debconf information</div><br></div></div></div></body></html>