Bug 6468 - environment variables are not expanded for interfaces value in smb.conf
environment variables are not expanded for interfaces value in smb.conf
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: Config Files
3.0.25a
Sparc Solaris
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-12 08:49 UTC by Christian Schmidt
Modified: 2009-06-12 08:49 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 Christian Schmidt 2009-06-12 08:49:03 UTC
I will use environment variables for the interfaces value in my smb.conf file. The use of environment variables works fine some values, but the interfaces value is not be expanded.

The part of my smb.conf is:

   log file             = %$(SAMBA_CONF_DIR)/log/log.%m
   private dir          = %$(SAMBA_CONF_DIR)/private
   pid directory        = %$(SAMBA_CONF_DIR)/locks
   lock directory       = %$(SAMBA_CONF_DIR)/locks
   smb passwd file      = %$(SAMBA_CONF_DIR)/private/smbpasswd
   bind interfaces only = yes
   interfaces           = %$(SAMBA_VIF)

I got following error message:

sys_gethostbyname: Unknown host. %$(SAMBA_VIF)
can't determine netmask for %$(SAMBA_VIF)
WARNING: no network interfaces found


The SAMBA_VIF variable is set. To a logical hostname for the current host.

Regards,
Christian.