From 6a70e7da58c61ada84e4fbe43d6631f359a466e4 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 1 Jun 2010 16:45:51 +0200 Subject: s3:idmap_tdb2: honour the "idmap read only" flag in the tdb2 module. Note that this will not prevent the idmap script from writing its mappings to the database, but no new unix ids will be allocated via the allocator and hence no new mappings will be autogenerated. --- source3/winbindd/idmap_tdb2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/winbindd') diff --git a/source3/winbindd/idmap_tdb2.c b/source3/winbindd/idmap_tdb2.c index 0c9488ae03..e6416f1eee 100644 --- a/source3/winbindd/idmap_tdb2.c +++ b/source3/winbindd/idmap_tdb2.c @@ -852,7 +852,7 @@ static NTSTATUS idmap_tdb2_sids_to_unixids(struct idmap_domain *dom, struct id_m ret = idmap_tdb2_sids_to_unixids_action(idmap_tdb2, &state); - if (NT_STATUS_EQUAL(ret, STATUS_SOME_UNMAPPED)) { + if (NT_STATUS_EQUAL(ret, STATUS_SOME_UNMAPPED) && !dom->read_only) { state.allocate_unmapped = true; ret = dbwrap_trans_do(idmap_tdb2, idmap_tdb2_sids_to_unixids_action, -- cgit