[Samba] include smb.conf.%m
kolos at archidata.hu
Tue Apr 19 15:21:11 GMT 2005
> | I have "log file = /var/log/samba/%m.log" also set
> | in the smb.conf file.
> This should help explain why.
I've already read that post but the behaviour I perceived was different.
See the other thread I mentioned.
I've looked into the samba code to find the place where the substitutions
>From the results, two places were possible:
[kolos at hive source]$ grep -rH set_remote_machine_name .
./smbd/reply.c: set_remote_machine_name(name2, True);
./smbd/server.c: set_remote_machine_name(get_peer_addr(smbd_server_fd()), False);
In reply.c, near the matching line, there was this code:
DEBUG(2,("netbios connect: name1=%s name2=%s\n",
I looked through the log files, and only found this debug message in the
log file for a linux client, from which I connected with smbclient.
Then I realized, that all the clients in our network are WindowsXP
clients with the following network protocols installed:
- Client for Microsoft Networks
- File and Printer Sharing for Microsoft Networks
- QoS Packet Scheduler
- Internet Protocol (TCP/IP)
Now I'm no Microsoft networking expert, but is it possible, that these
machines don't use NetBIOS at all? If they don't, can Samba handle that
In server.c, the looks like this:
This sets the remote machine name variable in lib/substitute.c to the IP
address. This explains why it's not substituted for smb.conf.netbios_name
If you could help me debug my problem, can you please point me to the code
where the variable remote_machine is changed to the netbios name of the
More information about the samba