def METHOD_NAME(self, share_name, share_path):
    """ Add samba share in smb.conf """
    tmpconf = tempfile.NamedTemporaryFile(suffix='smb.conf', delete=False)
    self.host.transport.get_file(SMB_DEFAULT_CONF, tmpconf.name)
    share_params = {'path': share_path,
                    'comment': 'test share %s' % share_name,
                    'writable': 'yes',
                    'printable': 'no'}
    try:
        self.host_tools.update_conf(tmpconf.name, 'share1',
                                    share_params, action='update')
    except SSSDException:
        raise
    else:
        self.host.transport.put_file(tmpconf.name, SMB_DEFAULT_CONF)
        os.unlink(tmpconf.name)