From 375168a16eedab3e60153a2b5f7cce1a22e21d5e Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 10 Sep 2013 01:45:52 +0200 Subject: idmap_autorid: add idmap_autorid_saveconfigstr() Store a configuration as provided by a config string after parsing and validating the string. Based on similar patch by Atul Kulkarni . Signed-off-by: Michael Adam Reviewed-by: Volker Lendecke --- source3/include/idmap_autorid_tdb.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source3/include') diff --git a/source3/include/idmap_autorid_tdb.h b/source3/include/idmap_autorid_tdb.h index 4e9b464f6a..88f15f2d1e 100644 --- a/source3/include/idmap_autorid_tdb.h +++ b/source3/include/idmap_autorid_tdb.h @@ -127,4 +127,13 @@ NTSTATUS idmap_autorid_getconfigstr(struct db_context *db, TALLOC_CTX *mem_ctx, bool idmap_autorid_parse_configstr(const char *configstr, struct autorid_global_config *cfg); + +/** + * Save the global autorid configuration into the autorid database + * as provided in the config string. + * First parse the configstr and validate it. + */ +NTSTATUS idmap_autorid_saveconfigstr(struct db_context *db, + const char *configstr); + #endif /* _IDMAP_AUTORID_H_ */ -- cgit