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:
e8ea947
)
TODO: drs_local_replicate schema
author
Stefan Metzmacher
<metze@samba.org>
Tue, 12 Feb 2019 10:33:44 +0000
(11:33 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Mon, 18 Feb 2019 10:28:54 +0000
(11:28 +0100)
python/samba/netcmd/drs.py
patch
|
blob
|
history
diff --git
a/python/samba/netcmd/drs.py
b/python/samba/netcmd/drs.py
index e6b892c2877008cf1e66c4b15b4e37b705485587..a47bd38180288962009c00d4c782e06f7646715f 100644
(file)
--- a/
python/samba/netcmd/drs.py
+++ b/
python/samba/netcmd/drs.py
@@
-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,