diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-03-28 12:08:54 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-03-28 12:08:54 +1100 |
commit | 786deaf9288c77b40892d6639113e580a7be6904 (patch) | |
tree | daa1a559d4cf43710815342b1b1f67d8fa53dac5 /source4/setup/newuser | |
parent | 3d9589ba5a1b50a71d29f4b6a119da72264816d0 (diff) | |
download | samba-786deaf9288c77b40892d6639113e580a7be6904.tar.gz samba-786deaf9288c77b40892d6639113e580a7be6904.tar.bz2 samba-786deaf9288c77b40892d6639113e580a7be6904.zip |
Make the setup/newuser and setup/setpassword scripts actually work...
These need a testsuite, but this will come soon.
Andrew Bartlett
(This used to be commit fbcaa622bd1929399e32326349e96b6676a49b96)
Diffstat (limited to 'source4/setup/newuser')
-rwxr-xr-x | source4/setup/newuser | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/setup/newuser b/source4/setup/newuser index 03ae4e5ffb..5f53aad9c6 100755 --- a/source4/setup/newuser +++ b/source4/setup/newuser @@ -10,7 +10,7 @@ import samba.getopt as options import optparse import pwd import sys - +from getpass import getpass from auth import system_session from samba.samdb import SamDB @@ -40,9 +40,7 @@ username = args[0] if len(args) > 1: password = args[1] else: - random_init(local) - options.password = randpass(12) - print "chose random password %s\n" % password + password = getpass("New Password: ") if opts.unixname is None: opts.unixname = username |