Bug 1968 - %m is replaced by ip instead of netbios name.
Summary: %m is replaced by ip instead of netbios name.
Status: RESOLVED WORKSFORME
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
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-25 02:04 UTC by Christoffer Hammarström
Modified: 2004-10-26 02:49 UTC (History)
0 users

See Also:


Attachments
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 192.168.97.91. This used to work, but just now i noticed it doesn't anymore.
It tries to use path "/mnt/backup/machines/192.168.97.91" instead of
"/mnt/backup/machines/lodur".
I also have a "log file = /var/log/samba/%m.log" which now logs to
"/var/log/samba/192.168.97.91.log" 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 192.168.97.91
params.c:pm_process() - Processing configuration file
"/srv/samba/srv-shares.smb.conf"
added interface ip=192.168.97.161 bcast=192.168.97.255 nmask=255.255.255.0
Socket opened.
Looking up status of 192.168.97.91
        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?