Exemple #1
0
 def init(self, core):
     ConfigServiceComponent.init(self, core)
     UseCertificateComponent.init(self, core)
     self.core = core
     try:
         self.sharedir = self.core.config.get('CORE', 'sharedir')
     except:
         self.sharedir = DEFAULT_SHAREDIR
     self.script_dir = os.path.join(self.sharedir, 'scripts')
     self.addConfFile(_NUAUTH_CONF, 'root:root', '0644')
     self.addConfFile('/etc/nufw/nuauth.d/nuauth_tls.conf', 'root:root',
                      '0644')
     self.addConfFile('/etc/nufw/user-down.sh', 'root:root', '0755')
     self.addConfFile('/etc/nufw/user-up.sh', 'root:root', '0755')
Exemple #2
0
 def init(self, core):
     UseCertificateComponent.init(self, core)
     self.core = core
Exemple #3
0
 def __init__(self):
     Component.__init__(self)
     UseCertificateComponent.__init__(self)
Exemple #4
0
 def __init__(self):
     ConfigServiceComponent.__init__(self)
     UseCertificateComponent.__init__(self)
Exemple #5
0
 def init(self, core):
     UseCertificateComponent.init(self, core)
     self.context = Context.fromComponent(self)
     for filename in self.CONF_FILES:
         self.addConfFile(filename, 'root:root', '0644')
     ConfigServiceComponent.init(self, core)
Exemple #6
0
 def __init__(self):
     ConfigServiceComponent.__init__(self)
     UseCertificateComponent.__init__(self)
     self.openvpn_cfg = self.context = self.core = None