s3:idmap_tdb2: also support idmap script for named domains
authorMichael Adam <obnox@samba.org>
Wed, 16 Jun 2010 13:49:30 +0000 (15:49 +0200)
committerMichael Adam <obnox@samba.org>
Sat, 14 Aug 2010 00:10:43 +0000 (02:10 +0200)
this can be configured via "idmap config DOMAIN : script = foobar"

source3/winbindd/idmap_tdb2.c

index 4eebb8e049b3a49c2acee77c65818d3405f9b3d7..6fe0480939c78923fddaf68c5dfdac3dd239635c 100644 (file)
@@ -383,6 +383,11 @@ static NTSTATUS idmap_tdb2_db_init(struct idmap_domain *dom,
                        ctx->filter_high_id = 0;
                }
 
+               ctx->script = lp_parm_const_string(-1, config_option, "script", NULL);
+               if (ctx->script) {
+                       DEBUG(1, ("using idmap script '%s'\n", ctx->script));
+               }
+
                talloc_free(config_option);
        }