Exemplo n.º 1
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.º 2
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.º 3
0
 public NetworkService(OPFDictionary d, OPFGroup g)
 {
     dict  = d;
     group = g;
 }