summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-02-14 15:00:01 +1100
committerStefan Metzmacher <metze@samba.org>2013-03-04 08:31:05 +0100
commit24c4d818d14c3931cf0cbff3070685fe409e66c6 (patch)
tree5dddf97adbe9eaa57aea2c75847b58e0b93cee00 /python
parentf508435d23445a8b3076f89cbe042e2da1ac0701 (diff)
downloadsamba-24c4d818d14c3931cf0cbff3070685fe409e66c6.tar.gz
samba-24c4d818d14c3931cf0cbff3070685fe409e66c6.tar.bz2
samba-24c4d818d14c3931cf0cbff3070685fe409e66c6.zip
samba-tool ldapcmp: Add support for checking DNSDOMAIN and DNSFOREST by default
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/netcmd/ldapcmp.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/samba/netcmd/ldapcmp.py b/python/samba/netcmd/ldapcmp.py
index 3c6c5f123d..6e025a27a5 100644
--- a/python/samba/netcmd/ldapcmp.py
+++ b/python/samba/netcmd/ldapcmp.py
@@ -882,7 +882,7 @@ class cmd_ldapcmp(Command):
"credopts": options.CredentialsOptionsDouble,
}
- takes_args = ["URL1", "URL2", "context1?", "context2?", "context3?"]
+ takes_args = ["URL1", "URL2", "context1?", "context2?", "context3?", "context4?", "context5?"]
takes_options = [
Option("-w", "--two", dest="two", action="store_true", default=False,
@@ -910,7 +910,7 @@ class cmd_ldapcmp(Command):
]
def run(self, URL1, URL2,
- context1=None, context2=None, context3=None,
+ context1=None, context2=None, context3=None, context4=None, context5=None,
two=False, quiet=False, verbose=False, descriptor=False, sort_aces=False,
view="section", base="", base2="", scope="SUB", filter="",
credopts=None, sambaopts=None, versionopts=None, skip_missing_dn=False):
@@ -941,9 +941,9 @@ class cmd_ldapcmp(Command):
contexts = ["DOMAIN"]
else:
# if no argument given, we compare all contexts
- contexts = ["DOMAIN", "CONFIGURATION", "SCHEMA"]
+ contexts = ["DOMAIN", "CONFIGURATION", "SCHEMA", "DNSDOMAIN", "DNSFOREST"]
else:
- for c in [context1, context2, context3]:
+ for c in [context1, context2, context3, context4, context5]:
if c is None:
continue
if not c.upper() in ["DOMAIN", "CONFIGURATION", "SCHEMA", "DNSDOMAIN", "DNSFOREST"]: