s4-libnet: allow the functional level of becomeDC to be specified
authorAndrew Tridgell <tridge@samba.org>
Wed, 23 Sep 2009 21:53:28 +0000 (14:53 -0700)
committerAndrew Tridgell <tridge@samba.org>
Thu, 24 Sep 2009 17:34:53 +0000 (10:34 -0700)
Use
   ads:functional level = 4
for DS_DC_FUNCTION_2008_R2

See libds/common/flags.h

source4/libnet/libnet_become_dc.c

index 70dee9597b673beb12b8856d67c7528b73a269f6..38357efffedaa326a6118a3f56379efdbcc51cf1 100644 (file)
@@ -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];