From cf88d603c625598dcd7f6013d7cd05a0d853582f Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 1 Jun 2010 15:49:17 +0200 Subject: [PATCH] s3:winbind: set the read_only flag when parsing the config in idmap_tdb2_db_init For the default config this is taken from lp_idmap_read_only(), and for explicit domains per "idmap config DOMAIN : read only". --- source3/winbindd/idmap_tdb2.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source3/winbindd/idmap_tdb2.c b/source3/winbindd/idmap_tdb2.c index 4eaf0fc86215..5108e4ead9f7 100644 --- a/source3/winbindd/idmap_tdb2.c +++ b/source3/winbindd/idmap_tdb2.c @@ -368,6 +368,8 @@ static NTSTATUS idmap_tdb2_db_init(struct idmap_domain *dom, } else { DEBUG(3, ("Warning: 'idmap gid' not set!\n")); } + + ctx->read_only = lp_idmap_read_only(); } else { char *config_option = NULL; const char *range; @@ -386,6 +388,9 @@ static NTSTATUS idmap_tdb2_db_init(struct idmap_domain *dom, ctx->filter_high_id = 0; } + ctx->read_only = lp_parm_bool(-1, config_option, "read only", + false); + talloc_free(config_option); } -- 2.34.1