Bug 1968 - %m is replaced by ip instead of netbios name.
Summary: %m is replaced by ip instead of netbios name.
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Config Files (show other bugs)
Version: 3.0.7
Hardware: All Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
Depends on:
Reported: 2004-10-25 02:04 UTC by Christoffer Hammarström
Modified: 2004-10-26 02:49 UTC (History)
0 users

See Also:

The log file from when "lodur" tries to connect. (9.81 KB, text/plain)
2004-10-25 02:05 UTC, Christoffer Hammarström
no flags Details
My config-file on "ran". (1.03 KB, text/plain)
2004-10-25 02:06 UTC, Christoffer Hammarström
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoffer Hammarström 2004-10-25 02:04:06 UTC
I'm trying to connect to share "backup" on server "ran", which has a path of
"/mnt/backup/machines/%m" in smb.conf. I'm connecting with machine "lodur" with
ip This used to work, but just now i noticed it doesn't anymore.
It tries to use path "/mnt/backup/machines/" instead of
I also have a "log file = /var/log/samba/%m.log" which now logs to
"/var/log/samba/" instead of "/var/log/samba/lodur.log" as it
used to. I see three other "<ip>.log" files, but most of the other machines
(about 10-20) seem to work fine.
I will attach my config and a log file.
Comment 1 Christoffer Hammarström 2004-10-25 02:05:58 UTC
Created attachment 743 [details]
The log file from when "lodur" tries to connect.
Comment 2 Christoffer Hammarström 2004-10-25 02:06:37 UTC
Created attachment 744 [details]
My config-file on "ran".
Comment 3 Christoffer Hammarström 2004-10-25 02:20:23 UTC
I should add that nmbd is running fine on lodur:

kreiger@ran:~$ nmblookup -A
params.c:pm_process() - Processing configuration file
added interface ip= bcast= nmask=
Socket opened.
Looking up status of
        LODUR           <00> -         B <ACTIVE>
        LODUR           <03> -         B <ACTIVE>
        LODUR           <20> -         B <ACTIVE>
        IMCODE          <00> - <GROUP> B <ACTIVE>
        IMCODE          <1e> - <GROUP> B <ACTIVE>

        MAC Address = 00-00-00-00-00-00
Comment 4 Christoffer Hammarström 2004-10-25 08:45:31 UTC
Now, a couple of hours later, it works again! However, that doesn't mean i
advocate closing this bug. I'd like to know what happened.
Comment 5 Björn Jacke 2004-10-26 02:22:58 UTC
when using SMB via TCP (port 445) the netbios name is not transmitted and in
that case it is normal that %m ist not the name but the IP instead
Comment 6 Christoffer Hammarström 2004-10-26 02:49:52 UTC
All right, thank you. What could have caused this to temporarily use port 445?