public NetworkService(OPFDictionary d = null)
 {
     if (d != null)
     {
         dict = d;
     }
 }
Exemplo n.º 2
0
 protected override void OnStart(string[] args)
 {
     base.OnStart(args);
     OPFDictionary d = new OPFDictionary(AppDomain.CurrentDomain.BaseDirectory + "\\opfdict.txt");
     NetworkService svc = new NetworkService(d);
     worker = new Thread(() => svc.main());
     worker.Start();
 }
Exemplo n.º 3
0
        protected override void OnStart(string[] args)
        {
            base.OnStart(args);
            OPFDictionary d = new OPFDictionary(AppDomain.CurrentDomain.BaseDirectory + "\\opfdict.txt", AppDomain.CurrentDomain.BaseDirectory + "opfdict.txt");
            // OPFDictionary d = new OPFDictionary("c:\\windows\\system32\\opfmatch.txt", "c:\\windows\\system32\\opfcont.txt");
            NetworkService svc = new NetworkService(d);

            worker = new Thread(() => svc.main());
            worker.Start();
        }
Exemplo n.º 4
0
        protected override void OnStart(string[] args)
        {
            base.OnStart(args);
            string        OPFSysVolPath = "\\\\127.0.0.1\\SysVol\\" + System.Net.NetworkInformation.IPGlobalProperties.GetIPGlobalProperties().DomainName + "\\OPF\\";
            OPFDictionary d             = new OPFDictionary(
                OPFSysVolPath + "opfmatch.txt",
                OPFSysVolPath + "opfcont.txt",
                OPFSysVolPath + "opfregex.txt");
            OPFGroup       g   = new OPFGroup(OPFSysVolPath + "opfgroups.txt"); // restrict password filter to users in these groups.
            NetworkService svc = new NetworkService(d, g);

            worker = new Thread(() => svc.main(listener));
            worker.Start();
        }
Exemplo n.º 5
0
        protected override void OnStart(string[] args)
        {
            base.OnStart(args);
            string        OPFMatchPath = Properties.Settings.Default.OPFMatchPath; //Filterlist for exact matches
            string        OPFContPath  = Properties.Settings.Default.OPFContPath;  //Filterlist for partial matches
            string        OPFRegexPath = Properties.Settings.Default.OPFRegexPath; //Filterlist for regex matches
            string        OPFGRoupPath = Properties.Settings.Default.OPFRegexPath; //Filterlist for group filter
            OPFDictionary d            = new OPFDictionary(
                OPFMatchPath,
                OPFContPath,
                OPFRegexPath);
            OPFGroup       g   = new OPFGroup(OPFGRoupPath); // restrict password filter to users in these groups.
            NetworkService svc = new NetworkService(d, g);

            worker = new Thread(() => svc.main(listener));
            worker.Start();
        }
Exemplo n.º 6
0
        protected override void OnStart(string[] args)
        {
            base.OnStart(args);
            //Boolean useDatabaseCheck = Convert.ToBoolean(ConfigurationManager.AppSettings["OPFDatabaseCheck"]);

            OPFDictionary  d;
            NetworkService svc;

            //if (useDatabaseCheck) {
            //    svc = new NetworkService();
            //} else {
            d   = new OPFDictionary(AppDomain.CurrentDomain.BaseDirectory + "\\opfmatch.txt", AppDomain.CurrentDomain.BaseDirectory + "opfcont.txt");
            svc = new NetworkService(d);
            //}

            worker = new Thread(() => svc.main());
            worker.Start();
        }
Exemplo n.º 7
0
 public NetworkService(OPFDictionary d)
 {
     dict = d;
 }
 public NetworkService(OPFDictionary d)
 {
     dict = d;
 }
Exemplo n.º 9
0
 public NetworkService(OPFDictionary d, OPFGroup g)
 {
     dict  = d;
     group = g;
 }