summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2019-06-27 16:57:21 +1200
committerAndrew Bartlett <abartlet@samba.org>2019-07-05 01:05:20 +0000
commite5e4c113713ffbc88836db6cea0245a32151748f (patch)
treee2186fbd8e76a89b067ae269346c28296a7a7062 /source4
parent96148436b7f8633da920ef5b52d8ad3aa735a9cc (diff)
downloadsamba-e5e4c113713ffbc88836db6cea0245a32151748f.tar.gz
s4/scripting/get-descriptors: print usage with insufficient arguments
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/scripting/bin/get-descriptors4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/scripting/bin/get-descriptors b/source4/scripting/bin/get-descriptors
index 31106d434b0..bed01e7ceb3 100755
--- a/source4/scripting/bin/get-descriptors
+++ b/source4/scripting/bin/get-descriptors
@@ -61,6 +61,10 @@ creds = credopts.get_credentials(lp)
opts = parser.parse_args()[0]
+if not opts.host or not opts.localdomain or not opts.remote_domain:
+ parser.print_usage()
+ sys.exit(1)
+
class DescrGetter:
def __init__(self, localdomain, remotedomain):