[sysadmin-bin] Prompt the sysadmin for the details we need



commit 4ae0f73774152464ea23d992979502c1fe912f85
Author: Andrea Veri <av gnome org>
Date:   Fri Nov 29 17:47:56 2013 +0100

    Prompt the sysadmin for the details we need

 prosody.py |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/prosody.py b/prosody.py
index 7483df3..56f59fc 100755
--- a/prosody.py
+++ b/prosody.py
@@ -1,8 +1,7 @@
 #!/usr/bin/python
 # Author: Andrea Veri <av gnome org>
 # Target host: chooser.gnome.org
-# Description: script to automatize new Prosody user creation at jabber.gnome.org. Usage as
-# follows: 'python prosody.py username email'. Example: 'python prosody.py av av gnome org'.
+# Description: script to automatize new Prosody user creation at jabber.gnome.org.
 
 import random
 import string
@@ -13,8 +12,10 @@ import sys
 
 def create_prosody_account():
 
-    username = sys.argv[1]
-    email = sys.argv[2]
+    print 'Please enter the JID for the new user and the email to send instructions to,'
+    print 'additionally make sure the JID matches the LDAP UID for the user requesting the account'
+    username = raw_input('Desired username: ')
+    email = raw_input('Email to send instructions to: ')
 
     s = string.lowercase+string.digits 
     random_password = ''.join(random.sample(s, 10))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]