git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f278585
)
s3:idmap_tdb2: also support idmap script for named domains
author
Michael Adam
<obnox@samba.org>
Wed, 16 Jun 2010 13:49:30 +0000
(15:49 +0200)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/source3/winbindd/idmap_tdb2.c
b/source3/winbindd/idmap_tdb2.c
index 4eebb8e049b3a49c2acee77c65818d3405f9b3d7..6fe0480939c78923fddaf68c5dfdac3dd239635c 100644
(file)
--- 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);
}