Bug 1021 - %M smb.conf variable doesn't work
Summary: %M smb.conf variable doesn't work
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Config Files (show other bugs)
Version: 3.0.0
Hardware: All Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-31 10:25 UTC by Rod Smith
Modified: 2005-11-14 09:25 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rod Smith 2004-01-31 10:25:04 UTC
The %M smb.conf variable isn't returning hostnames. I used the following 
parameter to test: 
 
preexec = touch /tmp/logon-%M.txt 
 
After logging on from a remote client called nessus.rodsbooks.com at 
192.168.1.3, the file /tmp/logon-192.168.1.3.txt is present, but not 
/tmp/logon-nessus.rodsbooks.com.txt. This parameter works correctly in Samba 
2.2.8a. I've tested this with Samba 3.0.1 binaries delivered with Fedora 1 and 
with a locally-built Samba 3.0.0 on a SUSE 8.1 system.
Comment 1 Gerald (Jerry) Carter (dead mail address) 2004-02-01 15:30:02 UTC
setting 'hostname lookups = yes' should resolve this.  The default
is to avoid potentially expensive DNS reverse lookups.
Comment 2 Gerald (Jerry) Carter (dead mail address) 2005-11-14 09:25:01 UTC
database cleanup