Browse Source

superuser password can be configured

Natenom/support-murmur-13-1446181288462
root 16 years ago
parent
commit
9aa5b908e4
  1. 4
      pyweb/mumble/models.py

4
pyweb/mumble/models.py

@ -47,6 +47,7 @@ class Mumble( models.Model ):
url = models.CharField( 'Website URL', max_length = 200, blank = True ); url = models.CharField( 'Website URL', max_length = 200, blank = True );
motd = models.TextField( 'Welcome Message', blank = True ); motd = models.TextField( 'Welcome Message', blank = True );
passwd = models.CharField( 'Server Password', max_length = 200, 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 ); users = models.IntegerField( 'Max. Users', blank = True, null = True );
bwidth = models.IntegerField( 'Bandwidth [Bps]', blank = True, null = True ); bwidth = models.IntegerField( 'Bandwidth [Bps]', blank = True, null = True );
sslcrt = models.CharField( 'SSL Certificate', max_length = 200, blank = True ); sslcrt = models.CharField( 'SSL Certificate', max_length = 200, blank = True );
@ -111,6 +112,9 @@ class Mumble( models.Model ):
else: else:
murmur.setConf( srvid, 'registerHostname', self.addr ); 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.isBooted( dbus.Int32(self.srvid) ):
if self.booted: if self.booted:
murmur.start( srvid ); murmur.start( srvid );

Loading…
Cancel
Save