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:
df268b7
)
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>
Wed, 23 Jun 2010 09:23:55 +0000
(11:23 +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 ae7b3403e919bb5b892df11a35de77a6ed7ad5d1..660f437481d8e9d71353a6a20600243d8e29dbc8 100644
(file)
--- a/
source3/winbindd/idmap_tdb2.c
+++ b/
source3/winbindd/idmap_tdb2.c
@@
-389,6
+389,11
@@
static NTSTATUS idmap_tdb2_db_init(struct idmap_domain *dom,
ctx->read_only = lp_parm_bool(-1, config_option, "read only",
false);
+ 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);
}