Example #1
0
# -*- coding:utf-8 -*-
#
# hotspot-login-manager
# https://github.com/syam44/Hotspot-Login-Manager
#
# Distributed under the GNU General Public License version 3
# https://www.gnu.org/copyleft/gpl.html
#
# Authors: syam ([email protected])
#
# Description: Various filesystem paths.
#

#-----------------------------------------------------------------------------
#
# Import the platform-specific implementation.
#
from hotspot_login_manager.libs.core import hlm_platform

hlm_platform.install(vars(), 'paths')

#-----------------------------------------------------------------------------
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
Example #2
0

#-----------------------------------------------------------------------------
import grp
import os
import pwd
import signal
import sys
#
from hotspot_login_manager.libs.core import hlm_args
from hotspot_login_manager.libs.core import hlm_application
from hotspot_login_manager.libs.daemon import hlm_daemonize_psf
from hotspot_login_manager.libs.daemon import hlm_log
#
from hotspot_login_manager.libs.core import hlm_platform
hlm_platform.install(vars(), 'rlimit_files')


#-----------------------------------------------------------------------------
def defaultSignalsMap():
    ''' Default signals map.
    '''
    return { 'SIGABRT': cleanExit,
             'SIGFPE': cleanExit,
             'SIGHUP': cleanExit,
             'SIGILL': cleanExit,
             'SIGINT': cleanExit,
             'SIGPIPE': None,
             'SIGSEGV': cleanExit,
             'SIGTERM': cleanExit,
             'SIGTSTP': None,
#
# Description: Hotspot authenticator controller.
#


#-----------------------------------------------------------------------------
import threading
import time
#
from hotspot_login_manager.libs.daemon import hlm_auth_plugins
from hotspot_login_manager.libs.daemon import hlm_config
from hotspot_login_manager.libs.daemon import hlm_dispatcher
from hotspot_login_manager.libs.daemon import hlm_http
#
from hotspot_login_manager.libs.core import hlm_platform
hlm_platform.install(vars(), 'wireless')


#-----------------------------------------------------------------------------
class _WaitForNextEvent(BaseException):
    ''' Dummy exception class that forces the authenticator loop to wait for the next event.
    '''


#-----------------------------------------------------------------------------
class Authenticator(threading.Thread):
    ''' Authenticator controller class.
    '''
    #-----------------------------------------------------------------------------
    def __init__(self, configDaemon, configRelevantPluginCredentials):
        threading.Thread.__init__(self, name = 'Authenticator')
Example #4
0
# Authors: syam ([email protected])
#
# Description: Hotspot authenticator controller.
#

#-----------------------------------------------------------------------------
import threading
import time
#
from hotspot_login_manager.libs.daemon import hlm_auth_plugins
from hotspot_login_manager.libs.daemon import hlm_config
from hotspot_login_manager.libs.daemon import hlm_dispatcher
from hotspot_login_manager.libs.daemon import hlm_http
#
from hotspot_login_manager.libs.core import hlm_platform
hlm_platform.install(vars(), 'wireless')


#-----------------------------------------------------------------------------
class _WaitForNextEvent(BaseException):
    ''' Dummy exception class that forces the authenticator loop to wait for the next event.
    '''


#-----------------------------------------------------------------------------
class Authenticator(threading.Thread):
    ''' Authenticator controller class.
    '''

    #-----------------------------------------------------------------------------
    def __init__(self, configDaemon, configRelevantPluginCredentials):
# -*- coding:utf-8 -*-
#
# hotspot-login-manager
# https://github.com/syam44/Hotspot-Login-Manager
#
# Distributed under the GNU General Public License version 3
# https://www.gnu.org/copyleft/gpl.html
#
# Authors: syam ([email protected])
#
# Description: Various filesystem paths.
#


#-----------------------------------------------------------------------------
#
# Import the platform-specific implementation.
#
from hotspot_login_manager.libs.core import hlm_platform

hlm_platform.install(vars(), 'paths')


#-----------------------------------------------------------------------------
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4