void lookInDs(String computerName) { if (!DsUtils.Ping()) { return; } if (!computerName.Contains(".")) { computerName = computerName + "." + DsUtils.GetCurrentDomainName(); } _certConfig.Reset(0); //TODO while (_certConfig.Next() >= 0) { Int32 flags = Convert.ToInt32(_certConfig.GetField(CertConfigConstants.FieldFlags)); Boolean serverNameMatch = String.Equals(_certConfig.GetField(CertConfigConstants.FieldServer), computerName, StringComparison.InvariantCultureIgnoreCase); if (serverNameMatch && (flags & 1) > 0) { foundInDs = true; return; } } }
void lookInDs(String computerName) { if (!ActiveDirectory.Ping()) { return; } if (!computerName.Contains(".")) { computerName = computerName + "." + Domain.GetCurrentDomain().Name; } _certConfig.Reset(0); //TODO while (_certConfig.Next() >= 0) { Int32 flags = Convert.ToInt32(_certConfig.GetField("Flags")); Boolean serverNameMatch = String.Equals(_certConfig.GetField("Server"), computerName, StringComparison.InvariantCultureIgnoreCase); if (serverNameMatch && (flags & 1) > 0) { foundInDs = true; return; } } }