mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-22 06:09:25 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user