summaryrefslogtreecommitdiff
path: root/examples/LDAP/convertSambaAccount
diff options
context:
space:
mode:
Diffstat (limited to 'examples/LDAP/convertSambaAccount')
-rwxr-xr-xexamples/LDAP/convertSambaAccount9
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/LDAP/convertSambaAccount b/examples/LDAP/convertSambaAccount
index 61e80e1b7b..d2770c75a6 100755
--- a/examples/LDAP/convertSambaAccount
+++ b/examples/LDAP/convertSambaAccount
@@ -35,6 +35,7 @@ sub usage {
print "convertSambaAccount <options>\n";
print "Options:\n";
+ print " --help print this help message\n";
print " --input input LDIF filename\n";
print " --output output LDIF filename\n";
print " --sid domain SID\n";
@@ -77,7 +78,8 @@ sub usage {
## process command line args
##
-$result = GetOptions(\%options,
+$result = GetOptions(\%options,
+ "help",
"input=s",
"output=s",
"sid=s",
@@ -88,6 +90,11 @@ if (!$result && ($#ARGV != -1)) {
exit 1;
}
+if ( defined($options{'help'}) ) {
+ usage();
+ exit 0;
+}
+
if ( !defined( $options{'sid'} ) ) {
print "You must provide a domain sid\n";