TODO: drs_local_replicate schema
authorStefan Metzmacher <metze@samba.org>
Tue, 12 Feb 2019 10:33:44 +0000 (11:33 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 29 Mar 2019 14:42:56 +0000 (15:42 +0100)
python/samba/netcmd/drs.py

index e6b892c2877008cf1e66c4b15b4e37b705485587..a47bd38180288962009c00d4c782e06f7646715f 100644 (file)
@@ -485,10 +485,15 @@ class cmd_drs_replicate(Command):
         # Work out if we are an RODC, so that a forced local replicate
         # with the admin pw does not sync passwords
         rodc = self.local_samdb.am_rodc()
+        if str(self.samdb.get_schema_basedn()).lower() == str(NC).lower():
+            schema = True
+        else:
+            schema = False
         try:
             (num_objects, num_links) = repl.replicate(NC,
                                                       source_dsa_invocation_id,
                                                       destination_dsa_guid,
+                                                      schema=schema,
                                                       rodc=rodc,
                                                       full_sync=full_sync,
                                                       exop=exop,