Various changes to several aspects of the model base.

* Added SSOUser extension profile for auth
* Now checks for Corp membership and executes required commands
* Various small fixups
This commit is contained in:
2010-02-25 15:49:56 +00:00
committed by dreddit
parent 4cd4865f32
commit 53630f980f
10 changed files with 95 additions and 31 deletions

View File

@@ -23,9 +23,12 @@ class eJabberdCtl():
args = []
args.extend(self.ejctl)
args.extend(shlex.split(commandline))
args.extend(shlex.split(commandline.encode('ascii')))
print args
# Convert all arguments to ascii first
#args = map(lambda x: x.encode('ascii'), args)
print 'Executing: %s' % " ".join(args)
try:
proc = subprocess.Popen(args, stdout=subprocess.PIPE)
@@ -61,7 +64,7 @@ class eJabberdCtl():
def register(self, user, server, password):
""" Adds a user to a vhost """
cmd = "register %s %s %s" % (user, server, password)
cmd = 'register %s %s %s' % (user, server, password)
try:
self._execute(cmd)