Bug 6468 - environment variables are not expanded for interfaces value in smb.conf
Summary: environment variables are not expanded for interfaces value in smb.conf
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other (show other bugs)
Version: 4.13.3
Hardware: Sparc Solaris
: P3 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-12 08:49 UTC by Christian Schmidt
Modified: 2021-01-04 15:44 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.
Comment 1 Björn Jacke 2021-01-04 15:44:09 UTC
it's still not possible to use %$(...) for interfaces