Fix and test python scripts and kerberos
[samba.git] / source4 / setup / enableaccount
index 144b6c6494e04949c795c9dd30e5ea11fad95fcf..849b515675a7dd857d07602ce5d8795f4d93106e 100644 (file)
@@ -42,9 +42,10 @@ username = args[0]
 if username is None:
        print "username must be specified"
 
 if username is None:
        print "username must be specified"
 
-creds = credopts.get_credentials()
-
 lp = sambaopts.get_loadparm()
 lp = sambaopts.get_loadparm()
+
+creds = credopts.get_credentials(lp)
+
 if opts.H is not None:
        url = opts.H
 else:
 if opts.H is not None:
        url = opts.H
 else: