PERL : Libconf::Glueconf::Samba::Smb_conf C/PYTHON/RUBY : Samba/Smb_conf
Libconf::Glueconf::Samba::Smb_conf is a template that handles the samba smb.conf configuration file.
$samba = new Libconf::Glueconf::Samba::Smb_conf({ filename => '/etc/samba/smb.conf' }); $samba->{homes}->{writable} = 'TEST'; $samba->{share}->{test} = 'yes'; $samba->write_conf('/etc/samba/edited_smb.conf');
creates the template
$samba = new Libconf::Glueconf::Samba::Smb_conf({ .. arguments .. })
the options are the same as in the Libconf::Templates::Samba manpage, look there to have the details.
See <Libconf::Glueconf> for general methods