param: Add new parameter "ad dc functional level"
[vlendec/samba-autobuild/.git] / source3 / param / loadparm.c
index 12718ced9e7fb6d236a9de82277633b892c0f08e..df3d3549cac43d46e28e806f83c0179668d769f6 100644 (file)
@@ -80,6 +80,7 @@
 #include "source3/lib/substitute.h"
 #include "source3/librpc/gen_ndr/ads.h"
 #include "lib/util/time_basic.h"
+#include "libds/common/flags.h"
 
 #ifdef HAVE_SYS_SYSCTL_H
 #include <sys/sysctl.h>
@@ -995,6 +996,8 @@ static void init_globals(struct loadparm_context *lp_ctx, bool reinit_globals)
         */
        Globals.rpc_start_on_demand_helpers = true;
 
+       Globals.ad_dc_functional_level = DS_DOMAIN_FUNCTION_2008_R2,
+
        /* Now put back the settings that were set with lp_set_cmdline() */
        apply_lp_set_cmdline();
 }