summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting')
-rwxr-xr-xsource4/scripting/devel/chgtdcpass9
1 files changed, 4 insertions, 5 deletions
diff --git a/source4/scripting/devel/chgtdcpass b/source4/scripting/devel/chgtdcpass
index 1030531363..dc249834e0 100755
--- a/source4/scripting/devel/chgtdcpass
+++ b/source4/scripting/devel/chgtdcpass
@@ -17,6 +17,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+__docformat__ = "restructuredText"
+
+
import optparse
import sys
# Allow to run from s4 source directory (without installing samba)
@@ -30,10 +33,7 @@ from samba.upgradehelpers import (get_paths,
find_provision_key_parameters, get_ldbs,
update_machine_account_password)
-__docformat__ = "restructuredText"
-
-
-parser = optparse.OptionParser("provision [options]")
+parser = optparse.OptionParser("chgtdcpass [options]")
sambaopts = options.SambaOptions(parser)
parser.add_option_group(sambaopts)
parser.add_option_group(options.VersionOptions(parser))
@@ -42,7 +42,6 @@ parser.add_option_group(credopts)
opts = parser.parse_args()[0]
-
lp = sambaopts.get_loadparm()
smbconf = lp.configfile
creds = credopts.get_credentials(lp)