From 9aa5b908e4fd962659b5da3c35a6f1754d0aee4b Mon Sep 17 00:00:00 2001 From: root Date: Thu, 5 Feb 2009 20:34:19 +0100 Subject: [PATCH] superuser password can be configured --- pyweb/mumble/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyweb/mumble/models.py b/pyweb/mumble/models.py index 35c4be0..e9ac652 100644 --- a/pyweb/mumble/models.py +++ b/pyweb/mumble/models.py @@ -47,6 +47,7 @@ class Mumble( models.Model ): url = models.CharField( 'Website URL', max_length = 200, blank = True ); motd = models.TextField( 'Welcome Message', blank = True ); passwd = models.CharField( 'Server Password', max_length = 200, blank = True ); + supw = models.CharField( 'Superuser Password', max_length = 200, blank = True ); users = models.IntegerField( 'Max. Users', blank = True, null = True ); bwidth = models.IntegerField( 'Bandwidth [Bps]', blank = True, null = True ); sslcrt = models.CharField( 'SSL Certificate', max_length = 200, blank = True ); @@ -111,6 +112,9 @@ class Mumble( models.Model ): else: murmur.setConf( srvid, 'registerHostname', self.addr ); + if self.supw: + murmur.setSuperUserPassword( srvid, self.supw ); + if self.booted != murmur.isBooted( dbus.Int32(self.srvid) ): if self.booted: murmur.start( srvid );