project smb_dyn: adminitration of samba server over MySQL
Nicolas.Williams at ubsw.com
Tue Jul 11 18:36:14 GMT 2000
Have you thought of using the 'source environment' parameter?
Essentially you can have Samba source environment variable settings
from a file or from the output of a program.
Thus you could use 'source environment = /some/script %G %L %I %S %U |'
instead of preexec, and you could use %$(variable) tokens in you
'include' parameter. The script you use with 'source environment' can
also build the config file(s) to be included.
See the smb.conf documentation.
More information about the samba-technical