summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-06-16 15:49:30 +0200
committerMichael Adam <obnox@samba.org>2010-08-14 02:10:43 +0200
commitbb8a4415c86bd23909d7fc34b933d8214b3e1846 (patch)
tree6adf26b3bac947df6c8cdcfcd437feb24c409328 /source3/winbindd
parentf27858548e64b9f27d62a900aec400ea66266fa5 (diff)
downloadsamba-bb8a4415c86bd23909d7fc34b933d8214b3e1846.tar.gz
samba-bb8a4415c86bd23909d7fc34b933d8214b3e1846.tar.bz2
samba-bb8a4415c86bd23909d7fc34b933d8214b3e1846.zip
s3:idmap_tdb2: also support idmap script for named domains
this can be configured via "idmap config DOMAIN : script = foobar"
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/idmap_tdb2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/winbindd/idmap_tdb2.c b/source3/winbindd/idmap_tdb2.c
index 4eebb8e049..6fe0480939 100644
--- a/source3/winbindd/idmap_tdb2.c
+++ b/source3/winbindd/idmap_tdb2.c
@@ -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);
}