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(); }
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(); }
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(); }
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(); }
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(); }