mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
winbind: Add idmap_config_string_list()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
443572ce42
commit
6499a2dcb3
@ -212,6 +212,17 @@ int idmap_config_int(const char *domname, const char *option, int def)
|
||||
return lp_parm_int(-1, config_option, option, def);
|
||||
}
|
||||
|
||||
const char **idmap_config_string_list(const char *domname,
|
||||
const char *option,
|
||||
const char **def)
|
||||
{
|
||||
int len = idmap_config_name(domname, NULL, 0);
|
||||
char config_option[len];
|
||||
idmap_config_name(domname, config_option, sizeof(config_option));
|
||||
|
||||
return lp_parm_string_list(-1, config_option, option, def);
|
||||
}
|
||||
|
||||
bool domain_has_idmap_config(const char *domname)
|
||||
{
|
||||
int i;
|
||||
|
@ -382,6 +382,9 @@ const char *idmap_config_const_string(const char *domname, const char *option,
|
||||
const char *def);
|
||||
bool idmap_config_bool(const char *domname, const char *option, bool def);
|
||||
int idmap_config_int(const char *domname, const char *option, int def);
|
||||
const char **idmap_config_string_list(const char *domname,
|
||||
const char *option,
|
||||
const char **def);
|
||||
bool domain_has_idmap_config(const char *domname);
|
||||
bool lp_scan_idmap_domains(bool (*fn)(const char *domname,
|
||||
void *private_data),
|
||||
|
Loading…
Reference in New Issue
Block a user