コード例 #1
0
ファイル: __init__.py プロジェクト: delaballe/KaraCos-Desktop
    def run(self):

        self.config = config_affairs.arrange(self.conf)
        print "PARENT_PROXY : %s : %s \n" % (self.config['GENERAL']['PARENT_PROXY'],self.config['GENERAL']['PARENT_PROXY_PORT'])
        
        self.serv = server.AuthProxyServer(self.config)
        self.serv.run()
コード例 #2
0
ファイル: main.py プロジェクト: scarvalhojr/ntlmaps
# You should have received a copy of the GNU General Public License
# along with the sofware; see the file COPYING. If not, write to the
# Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
#
import __init__

import sys

import server, config, config_affairs


#--------------------------------------------------------------
# config affairs
# look for default config name in lib/config.py
conf = config.read_config(config.findConfigFileNameInArgv(sys.argv, __init__.ntlmaps_dir+'/'))

conf['GENERAL']['VERSION'] = '0.9.9.0.1'

#--------------------------------------------------------------
print 'NTLM authorization Proxy Server v%s' % conf['GENERAL']['VERSION']
print 'Copyright (C) 2001-2004 by Dmitry Rozmanov and others.'

config = config_affairs.arrange(conf)


#--------------------------------------------------------------
# let's run it
serv = server.AuthProxyServer(config)
serv.run()
コード例 #3
0
ファイル: main.py プロジェクト: qluo1/ntlmaps
    print("config: %s" % config_file)
    if not os.path.exists(config_file):
        raise ValueError("config_file not found: {}".format(config_file))

    return config_file


# --------------------------------------------------------------
# config affairs
# look for default config name in lib/config.py
args = sys.argv
args = args[1:]

options = command_line.parse_command_line(args)

conf = config.read_config(get_config_filename(options))

override_config_with_command_line_options(conf, options)

conf["GENERAL"]["VERSION"] = "0.9.9.0.2"

print(("NTLM authorization Proxy Server v%s" % conf["GENERAL"]["VERSION"]))
print("Copyright (C) 2001-2012 by Tony Heupel, Dmitry Rozmanov, and others.")

config = config_affairs.arrange(conf)

# --------------------------------------------------------------
# let's run it
serv = server.AuthProxyServer(config)
serv.run()