summaryrefslogtreecommitdiff
path: root/source3/winbindd/idmap_tdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/winbindd/idmap_tdb.c')
-rw-r--r--source3/winbindd/idmap_tdb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/winbindd/idmap_tdb.c b/source3/winbindd/idmap_tdb.c
index 86bb018bb0..8bb615d8f8 100644
--- a/source3/winbindd/idmap_tdb.c
+++ b/source3/winbindd/idmap_tdb.c
@@ -268,6 +268,11 @@ static NTSTATUS idmap_tdb_open_db(struct idmap_domain *dom)
ctx = talloc_get_type(dom->private_data, struct idmap_tdb_context);
+ if (ctx->db) {
+ /* it is already open */
+ return NT_STATUS_OK;
+ }
+
/* use our own context here */
mem_ctx = talloc_stackframe();