summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-23 14:53:28 -0700
committerAndrew Tridgell <tridge@samba.org>2009-09-24 10:34:53 -0700
commita9188f7e10dffc9ad7c30b0b51a45d21b633417d (patch)
treea07ec11704ffe30cace63c173c3c4897ff1cad13
parent3cd0f9e264b0ebb92d5fe8086ee2d146f3e3d02d (diff)
downloadsamba-a9188f7e10dffc9ad7c30b0b51a45d21b633417d.tar.gz
samba-a9188f7e10dffc9ad7c30b0b51a45d21b633417d.tar.bz2
samba-a9188f7e10dffc9ad7c30b0b51a45d21b633417d.zip
s4-libnet: allow the functional level of becomeDC to be specified
Use ads:functional level = 4 for DS_DC_FUNCTION_2008_R2 See libds/common/flags.h
-rw-r--r--source4/libnet/libnet_become_dc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/libnet/libnet_become_dc.c b/source4/libnet/libnet_become_dc.c
index 70dee9597b..38357efffe 100644
--- a/source4/libnet/libnet_become_dc.c
+++ b/source4/libnet/libnet_become_dc.c
@@ -2101,7 +2101,8 @@ static void becomeDC_drsuapi1_add_entry_send(struct libnet_BecomeDC_state *s)
vd[0] = data_blob_talloc(vd, NULL, 4);
if (composite_nomem(vd[0].data, c)) return;
- SIVAL(vd[0].data, 0, DS_DC_FUNCTION_2008);
+ SIVAL(vd[0].data, 0,
+ lp_parm_int(s->libnet->lp_ctx, NULL, "ads", "functional level", DS_DC_FUNCTION_2008));
vs[0].blob = &vd[0];