778 references to PropertyManager
System.DirectoryServices (778)
System\DirectoryServices\ActiveDirectory\ActiveDirectoryInterSiteTransport.cs (6)
57string config = (string)PropertyManager.GetPropertyValue(context, de, PropertyManager.ConfigurationNamingContext)!; 244string cn = (string)PropertyManager.GetSearchResultPropertyValue(result, PropertyManager.Cn)!; 292string cn = (string)PropertyManager.GetSearchResultPropertyValue(result, PropertyManager.Cn)!;
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchema.cs (44)
138schemaNC = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.SchemaNamingContext)!; 187rootDSE.Properties[PropertyManager.SchemaUpdateNow].Value = 1; 242string filter = "(&(" + PropertyManager.ObjectCategory + "=classSchema)" + 243"(!(" + PropertyManager.IsDefunct + "=TRUE)))"; 260string filter = "(&(" + PropertyManager.ObjectCategory + "=classSchema)" + 261"(" + PropertyManager.ObjectClassCategory + "=" + (int)type + ")" + 262"(!(" + PropertyManager.IsDefunct + "=TRUE)))"; 273string filter = "(&(" + PropertyManager.ObjectCategory + "=classSchema)" + 274"(" + PropertyManager.IsDefunct + "=TRUE))"; 316string filter = "(&(" + PropertyManager.ObjectCategory + "=attributeSchema)" + 317"(!(" + PropertyManager.IsDefunct + "=TRUE)))"; 337str.Append(PropertyManager.ObjectCategory); 340str.Append(PropertyManager.IsDefunct); 346str.Append(PropertyManager.SearchFlags); 355str.Append(PropertyManager.IsMemberOfPartialAttributeSet); 370string filter = "(&(" + PropertyManager.ObjectCategory + "=attributeSchema)" + 371"(" + PropertyManager.IsDefunct + "=TRUE))"; 407propertiesToLoad[0] = PropertyManager.LdapDisplayName; 408propertiesToLoad[1] = PropertyManager.Cn; 409propertiesToLoad[2] = PropertyManager.IsDefunct; 418string ldapDisplayName = (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.LdapDisplayName)!; 427if ((res.Properties[PropertyManager.IsDefunct] != null) && (res.Properties[PropertyManager.IsDefunct].Count > 0)) 429isDefunct = (bool)res.Properties[PropertyManager.IsDefunct][0]!; 434string commonName = (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.Cn)!; 461propertiesToLoad[0] = PropertyManager.LdapDisplayName; 462propertiesToLoad[1] = PropertyManager.Cn; 463propertiesToLoad[2] = PropertyManager.IsDefunct; 472string ldapDisplayName = (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.LdapDisplayName)!; 481if ((res.Properties[PropertyManager.IsDefunct] != null) && (res.Properties[PropertyManager.IsDefunct].Count > 0)) 483isDefunct = (bool)res.Properties[PropertyManager.IsDefunct][0]!; 488string commonName = (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.Cn)!; 519string adamInstName = Utils.GetAdamDnsHostNameFromNTDSA(context, (string)PropertyManager.GetPropertyValue(context, _schemaEntry, PropertyManager.FsmoRoleOwner)!); 532string dcName = Utils.GetDnsHostNameFromNTDSA(context, (string)PropertyManager.GetPropertyValue(context, _schemaEntry, PropertyManager.FsmoRoleOwner)!); 539string adamInstName = Utils.GetAdamDnsHostNameFromNTDSA(context, (string)PropertyManager.GetPropertyValue(context, _schemaEntry, PropertyManager.FsmoRoleOwner)!);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaClass.cs (89)
145_ldapDisplayName = (string)GetValueFromCache(PropertyManager.LdapDisplayName, true)!; 293SetProperty(PropertyManager.LdapDisplayName, _ldapDisplayName); 296SetProperty(PropertyManager.GovernsID, _oid); 299SetProperty(PropertyManager.Description, _description); 304_classEntry.Properties[PropertyManager.PossibleSuperiors].AddRange(_possibleSuperiors.GetMultiValuedProperty()); 310_classEntry.Properties[PropertyManager.MustContain].AddRange(_mandatoryProperties.GetMultiValuedProperty()); 316_classEntry.Properties[PropertyManager.MayContain].AddRange(_optionalProperties.GetMultiValuedProperty()); 322SetProperty(PropertyManager.SubClassOf, _subClassOf.Name); 327SetProperty(PropertyManager.SubClassOf, "top"); 331SetProperty(PropertyManager.ObjectClassCategory, _type); 336SetProperty(PropertyManager.SchemaIDGuid, _schemaGuidBinaryForm); 342SetProperty(PropertyManager.DefaultSecurityDescriptor, _defaultSDSddlForm); 456_commonName ??= (string)GetValueFromCache(PropertyManager.Cn, true)!; 467SetProperty(PropertyManager.Cn, value); 498_oid = (string)GetValueFromCache(PropertyManager.GovernsID, true)!; 511SetProperty(PropertyManager.GovernsID, value); 528_description = (string?)GetValueFromCache(PropertyManager.Description, false); 541SetProperty(PropertyManager.Description, value); 562SetProperty(PropertyManager.IsDefunct, value); 618_possibleSuperiors = new ActiveDirectorySchemaClassCollection(_context, this, true /* isBound */, PropertyManager.PossibleSuperiors, possibleSuperiorsList, true /* onlyNames */); 623_possibleSuperiors = new ActiveDirectorySchemaClassCollection(_context, this, true /* is Bound */, PropertyManager.PossibleSuperiors, new ArrayList()); 629possibleSuperiorsList.AddRange(GetValuesFromCache(PropertyManager.PossibleSuperiors)); 630possibleSuperiorsList.AddRange(GetValuesFromCache(PropertyManager.SystemPossibleSuperiors)); 632_possibleSuperiors = new ActiveDirectorySchemaClassCollection(_context, this, true /* isBound */, PropertyManager.PossibleSuperiors, GetClasses(possibleSuperiorsList)); 637_possibleSuperiors = new ActiveDirectorySchemaClassCollection(_context, this, false /* is Bound */, PropertyManager.PossibleSuperiors, new ArrayList()); 656_possibleInferiors = new ReadOnlyActiveDirectorySchemaClassCollection(GetClasses(GetValuesFromCache(PropertyManager.PossibleInferiors))); 717_mandatoryProperties = new ActiveDirectorySchemaPropertyCollection(_context, this, true /* isBound */, PropertyManager.MustContain, mandatoryPropertiesList, true /* onlyNames */); 722_mandatoryProperties = new ActiveDirectorySchemaPropertyCollection(_context, this, true /* isBound */, PropertyManager.MustContain, new ArrayList()); 728propertyNames[0] = PropertyManager.SystemMustContain; 729propertyNames[1] = PropertyManager.MustContain; 731_mandatoryProperties = new ActiveDirectorySchemaPropertyCollection(_context, this, true /* isBound */, PropertyManager.MustContain, GetProperties(GetPropertyValuesRecursively(propertyNames))); 736_mandatoryProperties = new ActiveDirectorySchemaPropertyCollection(_context, this, false /* isBound */, PropertyManager.MustContain, new ArrayList()); 793_optionalProperties = new ActiveDirectorySchemaPropertyCollection(_context, this, true /* isBound */, PropertyManager.MayContain, optionalPropertiesList, true /* onlyNames */); 798_optionalProperties = new ActiveDirectorySchemaPropertyCollection(_context, this, true /* isBound */, PropertyManager.MayContain, new ArrayList()); 804propertyNames[0] = PropertyManager.SystemMayContain; 805propertyNames[1] = PropertyManager.MayContain; 816_optionalProperties = new ActiveDirectorySchemaPropertyCollection(_context, this, true /* isBound */, PropertyManager.MayContain, GetProperties(optionalPropertyList)); 821_optionalProperties = new ActiveDirectorySchemaPropertyCollection(_context, this, false /* isBound */, PropertyManager.MayContain, new ArrayList()); 878_auxiliaryClasses = new ActiveDirectorySchemaClassCollection(_context, this, true /* isBound */, PropertyManager.AuxiliaryClass, auxiliaryClassesList, true /* onlyNames */); 883_auxiliaryClasses = new ActiveDirectorySchemaClassCollection(_context, this, true /* is Bound */, PropertyManager.AuxiliaryClass, new ArrayList()); 889propertyNames[0] = PropertyManager.AuxiliaryClass; 890propertyNames[1] = PropertyManager.SystemAuxiliaryClass; 892_auxiliaryClasses = new ActiveDirectorySchemaClassCollection(_context, this, true /* isBound */, PropertyManager.AuxiliaryClass, GetClasses(GetPropertyValuesRecursively(propertyNames))); 897_auxiliaryClasses = new ActiveDirectorySchemaClassCollection(_context, this, false /* isBound */, PropertyManager.AuxiliaryClass, new ArrayList()); 913_subClassOf ??= new ActiveDirectorySchemaClass(_context, (string)GetValueFromCache(PropertyManager.SubClassOf, true)!, (DirectoryEntry?)null, _schemaEntry); 924SetProperty(PropertyManager.SubClassOf, value); 941_type = (SchemaClassType)((int)GetValueFromCache(PropertyManager.ObjectClassCategory, true)!); 960SetProperty(PropertyManager.ObjectClassCategory, value); 975_schemaGuidBinaryForm ??= (byte[])GetValueFromCache(PropertyManager.SchemaIDGuid, true)!; 988SetProperty(PropertyManager.SchemaIDGuid, (value.Equals(Guid.Empty)) ? null : value.ToByteArray()); 1007_defaultSDSddlForm = (string?)GetValueFromCache(PropertyManager.DefaultSecurityDescriptor, false); 1028SetProperty(PropertyManager.DefaultSecurityDescriptor, value?.GetSecurityDescriptorSddlForm(AccessControlSections.All)); 1142str.Append(PropertyManager.ObjectCategory); 1147str.Append(PropertyManager.LdapDisplayName); 1151str.Append(PropertyManager.Cn); 1164str.Append(PropertyManager.IsDefunct); 1180propertyNamesWithoutRangeRetrieval.Add(PropertyManager.DistinguishedName); 1181propertyNamesWithoutRangeRetrieval.Add(PropertyManager.Cn); 1182propertyNamesWithoutRangeRetrieval.Add(PropertyManager.Description); 1183propertyNamesWithoutRangeRetrieval.Add(PropertyManager.PossibleInferiors); 1184propertyNamesWithoutRangeRetrieval.Add(PropertyManager.SubClassOf); 1185propertyNamesWithoutRangeRetrieval.Add(PropertyManager.ObjectClassCategory); 1186propertyNamesWithoutRangeRetrieval.Add(PropertyManager.SchemaIDGuid); 1187propertyNamesWithoutRangeRetrieval.Add(PropertyManager.DefaultSecurityDescriptor); 1188propertyNamesWithRangeRetrieval.Add(PropertyManager.AuxiliaryClass); 1189propertyNamesWithRangeRetrieval.Add(PropertyManager.SystemAuxiliaryClass); 1190propertyNamesWithRangeRetrieval.Add(PropertyManager.MustContain); 1191propertyNamesWithRangeRetrieval.Add(PropertyManager.SystemMustContain); 1192propertyNamesWithRangeRetrieval.Add(PropertyManager.MayContain); 1193propertyNamesWithRangeRetrieval.Add(PropertyManager.SystemMayContain); 1198propertyNamesWithoutRangeRetrieval.Add(PropertyManager.LdapDisplayName); 1199propertyNamesWithoutRangeRetrieval.Add(PropertyManager.GovernsID); 1200propertyNamesWithRangeRetrieval.Add(PropertyManager.SystemPossibleSuperiors); 1201propertyNamesWithRangeRetrieval.Add(PropertyManager.PossibleSuperiors); 1229_classEntry = DirectoryEntryManager.GetDirectoryEntry(_context, (string)GetValueFromCache(PropertyManager.DistinguishedName, true)!); 1289str.Append(PropertyManager.LdapDisplayName); 1299string filter = "(&(" + PropertyManager.ObjectCategory + "=classSchema)" + str.ToString() + "(!(" + PropertyManager.IsDefunct + "=TRUE)))"; 1302propertiesToLoad[0] = PropertyManager.LdapDisplayName; 1309string ldapDisplayName = (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.LdapDisplayName)!; 1361str.Append(PropertyManager.LdapDisplayName); 1371string filter = "(&(" + PropertyManager.ObjectCategory + "=attributeSchema)" + str.ToString() + "(!(" + PropertyManager.IsDefunct + "=TRUE)))"; 1374propertiesToLoad[0] = PropertyManager.LdapDisplayName; 1381string ldapDisplayName = (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.LdapDisplayName)!; 1424foreach (string auxSchemaClassName in GetValuesFromCache(PropertyManager.AuxiliaryClass)) 1436foreach (string auxSchemaClassName in GetValuesFromCache(PropertyManager.SystemAuxiliaryClass))
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaProperty.cs (81)
198_ldapDisplayName = (string)GetValueFromCache(PropertyManager.LdapDisplayName, true)!; 334SetProperty(PropertyManager.LdapDisplayName, _ldapDisplayName); 337SetProperty(PropertyManager.AttributeID, _oid); 346SetProperty(PropertyManager.Description, _description); 349_propertyEntry.Properties[PropertyManager.IsSingleValued].Value = _isSingleValued; 352_propertyEntry.Properties[PropertyManager.IsMemberOfPartialAttributeSet].Value = _isInGlobalCatalog; 355_propertyEntry.Properties[PropertyManager.IsDefunct].Value = _isDefunct; 360_propertyEntry.Properties[PropertyManager.RangeLower].Value = (int)_rangeLower.Value; 366_propertyEntry.Properties[PropertyManager.RangeUpper].Value = (int)_rangeUpper.Value; 372_propertyEntry.Properties[PropertyManager.SearchFlags].Value = (int)_searchFlags; 378_propertyEntry.Properties[PropertyManager.LinkID].Value = (int)_linkId.Value; 384SetProperty(PropertyManager.SchemaIDGuid, _schemaGuidBinaryForm); 494_commonName ??= (string)GetValueFromCache(PropertyManager.Cn, true)!; 508SetProperty(PropertyManager.Cn, value); 539_oid = (string)GetValueFromCache(PropertyManager.AttributeID, true)!; 555SetProperty(PropertyManager.AttributeID, value); 571byte[]? omObjectClassBinaryForm = (byte[]?)GetValueFromCache(PropertyManager.OMObjectClass, false); 574_syntax = MapSyntax((string)GetValueFromCache(PropertyManager.AttributeSyntax, true)!, 575(int)GetValueFromCache(PropertyManager.OMSyntax, true)!, 611_description = (string?)GetValueFromCache(PropertyManager.Description, false); 627SetProperty(PropertyManager.Description, value); 658_isSingleValued = (bool)GetValueFromCache(PropertyManager.IsSingleValued, true)!; 676_propertyEntry.Properties[PropertyManager.IsSingleValued].Value = value; 808object? value = GetValueFromCache(PropertyManager.IsMemberOfPartialAttributeSet, false); 826_propertyEntry.Properties[PropertyManager.IsMemberOfPartialAttributeSet].Value = value; 844object? value = GetValueFromCache(PropertyManager.RangeLower, false); 871if (_propertyEntry.Properties.Contains(PropertyManager.RangeLower)) 873_propertyEntry.Properties[PropertyManager.RangeLower].Clear(); 878_propertyEntry.Properties[PropertyManager.RangeLower].Value = (int)value.Value; 897object? value = GetValueFromCache(PropertyManager.RangeUpper, false); 924if (_propertyEntry.Properties.Contains(PropertyManager.RangeUpper)) 926_propertyEntry.Properties[PropertyManager.RangeUpper].Clear(); 931_propertyEntry.Properties[PropertyManager.RangeUpper].Value = (int)value.Value; 953SetProperty(PropertyManager.IsDefunct, value); 969object? value = GetValueFromCache(PropertyManager.LinkID, false); 980string filter = "(&(" + PropertyManager.ObjectCategory + "=attributeSchema)" + "(" + PropertyManager.LinkID + "=" + linkIdToSearch + "))"; 1012object? value = GetValueFromCache(PropertyManager.LinkID, false); 1040if (_propertyEntry.Properties.Contains(PropertyManager.LinkID)) 1042_propertyEntry.Properties[PropertyManager.LinkID].Clear(); 1047_propertyEntry.Properties[PropertyManager.LinkID].Value = (int)value.Value; 1063_schemaGuidBinaryForm ??= (byte[])GetValueFromCache(PropertyManager.SchemaIDGuid, true)!; 1076SetProperty(PropertyManager.SchemaIDGuid, (value.Equals(Guid.Empty)) ? null : value.ToByteArray()); 1181str.Append(PropertyManager.ObjectCategory); 1186str.Append(PropertyManager.LdapDisplayName); 1190str.Append(PropertyManager.Cn); 1203str.Append(PropertyManager.IsDefunct); 1218propertiesToLoad[0] = PropertyManager.DistinguishedName; 1219propertiesToLoad[1] = PropertyManager.Cn; 1220propertiesToLoad[2] = PropertyManager.AttributeSyntax; 1221propertiesToLoad[3] = PropertyManager.OMSyntax; 1222propertiesToLoad[4] = PropertyManager.OMObjectClass; 1223propertiesToLoad[5] = PropertyManager.Description; 1224propertiesToLoad[6] = PropertyManager.SearchFlags; 1225propertiesToLoad[7] = PropertyManager.IsMemberOfPartialAttributeSet; 1226propertiesToLoad[8] = PropertyManager.LinkID; 1227propertiesToLoad[9] = PropertyManager.SchemaIDGuid; 1228propertiesToLoad[10] = PropertyManager.RangeLower; 1229propertiesToLoad[11] = PropertyManager.RangeUpper; 1235propertiesToLoad[0] = PropertyManager.DistinguishedName; 1236propertiesToLoad[1] = PropertyManager.Cn; 1237propertiesToLoad[2] = PropertyManager.AttributeSyntax; 1238propertiesToLoad[3] = PropertyManager.OMSyntax; 1239propertiesToLoad[4] = PropertyManager.OMObjectClass; 1240propertiesToLoad[5] = PropertyManager.Description; 1241propertiesToLoad[6] = PropertyManager.SearchFlags; 1242propertiesToLoad[7] = PropertyManager.IsMemberOfPartialAttributeSet; 1243propertiesToLoad[8] = PropertyManager.LinkID; 1244propertiesToLoad[9] = PropertyManager.SchemaIDGuid; 1245propertiesToLoad[10] = PropertyManager.AttributeID; 1246propertiesToLoad[11] = PropertyManager.IsSingleValued; 1247propertiesToLoad[12] = PropertyManager.RangeLower; 1248propertiesToLoad[13] = PropertyManager.RangeUpper; 1249propertiesToLoad[14] = PropertyManager.LdapDisplayName; 1287_propertyEntry = DirectoryEntryManager.GetDirectoryEntry(_context, (string)GetValueFromCache(PropertyManager.DistinguishedName, true)!); 1305object? value = GetValueFromCache(PropertyManager.SearchFlags, false); 1334_propertyEntry.Properties[PropertyManager.SearchFlags].Value = (int)_searchFlags; 1350_propertyEntry.Properties[PropertyManager.SearchFlags].Value = (int)_searchFlags; 1396_propertyEntry.Properties[PropertyManager.AttributeSyntax].Value = s_syntaxes[(int)syntax].attributeSyntax; 1397_propertyEntry.Properties[PropertyManager.OMSyntax].Value = s_syntaxes[(int)syntax].oMSyntax; 1401_propertyEntry.Properties[PropertyManager.OMObjectClass].Value = oMObjectClass.Data;
System\DirectoryServices\ActiveDirectory\ActiveDirectorySite.cs (74)
75sitedn = "CN=Sites," + (string)PropertyManager.GetPropertyValue(context, de, PropertyManager.ConfigurationNamingContext)!; 140string config = (string)PropertyManager.GetPropertyValue(context, de, PropertyManager.ConfigurationNamingContext)!; 179_siteDN = "CN=Sites," + (string)PropertyManager.GetPropertyValue(context, de, PropertyManager.ConfigurationNamingContext)!; 185_RPCBridgeheadServers = new DirectoryServerCollection(context, (string)PropertyManager.GetPropertyValue(context, cachedEntry, PropertyManager.DistinguishedName)!, transportDN); 187_SMTPBridgeheadServers = new DirectoryServerCollection(context, (string)PropertyManager.GetPropertyValue(context, cachedEntry, PropertyManager.DistinguishedName)!, transportDN); 372string serverDN = (string)PropertyManager.GetPropertyValue(context, NTDSSiteEntry, PropertyManager.InterSiteTopologyGenerator)!; 378hostname = (string)PropertyManager.GetPropertyValue(context, tmp.Parent, PropertyManager.DnsHostName)!; 390int port = (int)PropertyManager.GetPropertyValue(context, tmp, PropertyManager.MsDSPortLDAP)!; 688DirectoryEntry tmp = DirectoryEntryManager.GetDirectoryEntry(context, "CN=NTDS Site Settings," + (string)PropertyManager.GetPropertyValue(context, cachedEntry, PropertyManager.DistinguishedName)!); 899string serverContainer = "CN=Servers," + (string)PropertyManager.GetPropertyValue(context, cachedEntry, PropertyManager.DistinguishedName)!; 926string objectCategoryValue = (string)PropertyManager.GetSearchResultPropertyValue(r, PropertyManager.ObjectCategory)!; 929hostNameTable.Add((string)PropertyManager.GetSearchResultPropertyValue(r, PropertyManager.DistinguishedName)!, (string)PropertyManager.GetSearchResultPropertyValue(r, PropertyManager.DnsHostName)!); 935string objectCategoryValue = (string)PropertyManager.GetSearchResultPropertyValue(r, PropertyManager.ObjectCategory)!; 938string fromServer = (string)PropertyManager.GetSearchResultPropertyValue(r, PropertyManager.FromServer)!; 947string serverObjectName = Utils.GetPartialDN((string)PropertyManager.GetSearchResultPropertyValue(r, PropertyManager.DistinguishedName)!, 2); 957if (Utils.Compare((string)PropertyManager.GetPropertyValue(context, cachedEntry, PropertyManager.Cn)!, fromSite) != 0) 1014string fromServer = (string)PropertyManager.GetSearchResultPropertyValue(r, PropertyManager.FromServer)!; 1019string otherSite = Utils.GetPartialDN((string)PropertyManager.GetSearchResultPropertyValue(r, PropertyManager.DistinguishedName)!, 4); 1027if (Utils.Compare(otherSite, (string)PropertyManager.GetPropertyValue(context, cachedEntry, PropertyManager.Cn)!) != 0) 1052int port = (int)PropertyManager.GetPropertyValue(context, ADAMEntry, PropertyManager.MsDSPortLDAP)!; 1135string config = (string)PropertyManager.GetPropertyValue(context, de, PropertyManager.ConfigurationNamingContext)!; 1140"(&(objectClass=subnet)(objectCategory=subnet)(siteObject=" + Utils.GetEscapedFilterValue((string)PropertyManager.GetPropertyValue(context, cachedEntry, PropertyManager.DistinguishedName)!) + "))", 1160subnetName = (string)PropertyManager.GetSearchResultPropertyValue(result, PropertyManager.Cn)!; 1184"(&(objectClass=siteLink)(objectCategory=SiteLink)(siteList=" + Utils.GetEscapedFilterValue((string)PropertyManager.GetPropertyValue(context, cachedEntry, PropertyManager.DistinguishedName)!) + "))", 1204string dn = (string)PropertyManager.GetSearchResultPropertyValue(result, PropertyManager.DistinguishedName)!; 1205string linkName = (string)PropertyManager.GetSearchResultPropertyValue(result, PropertyManager.Cn)!; 1248string config = (string)PropertyManager.GetPropertyValue(context, de, PropertyManager.ConfigurationNamingContext)!; 1252"(&(objectClass=siteLink)(objectCategory=SiteLink)(siteList=" + Utils.GetEscapedFilterValue((string)PropertyManager.GetPropertyValue(context, cachedEntry, PropertyManager.DistinguishedName)!) + "))", 1272string cn = (string)PropertyManager.GetSearchResultPropertyValue(result, PropertyManager.Cn)!; 1273string transport = Utils.GetDNComponents((string)PropertyManager.GetSearchResultPropertyValue(result, PropertyManager.DistinguishedName)!)[1].Value!; 1315fixed (char* distinguishedName = (string)PropertyManager.GetPropertyValue(context, cachedEntry, PropertyManager.DistinguishedName)!) 1384string hostName = (string)PropertyManager.GetSearchResultPropertyValue(result, PropertyManager.DnsHostName)!; 1404int port = (int)PropertyManager.GetPropertyValue(context, child, PropertyManager.MsDSPortLDAP)!; 1426string serverContainerDN = "CN=Servers," + PropertyManager.GetPropertyValue(context, cachedEntry, PropertyManager.DistinguishedName); 1454string hostName = (string)PropertyManager.GetSearchResultPropertyValue(result, PropertyManager.DnsHostName)!; 1469int port = (int)PropertyManager.GetPropertyValue(context, ADAMEntry, PropertyManager.MsDSPortLDAP)!;
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteCollection.cs (18)
80string dn = (string)PropertyManager.GetPropertyValue(site.context, site.cachedEntry, PropertyManager.DistinguishedName)!; 85string tmpDn = (string)PropertyManager.GetPropertyValue(tmp.context, tmp.cachedEntry, PropertyManager.DistinguishedName)!; 107string dn = (string)PropertyManager.GetPropertyValue(site.context, site.cachedEntry, PropertyManager.DistinguishedName)!; 112string tmpDn = (string)PropertyManager.GetPropertyValue(tmp.context, tmp.cachedEntry, PropertyManager.DistinguishedName)!; 142string dn = (string)PropertyManager.GetPropertyValue(site.context, site.cachedEntry, PropertyManager.DistinguishedName)!; 147string tmpDn = (string)PropertyManager.GetPropertyValue(tmp.context, tmp.cachedEntry, PropertyManager.DistinguishedName)!; 184string dn = (string)PropertyManager.GetPropertyValue(site.context, site.cachedEntry, PropertyManager.DistinguishedName)!; 201string dn = (string)PropertyManager.GetPropertyValue(site.context, site.cachedEntry, PropertyManager.DistinguishedName)!; 217string newdn = (string)PropertyManager.GetPropertyValue(newsite.context, newsite.cachedEntry, PropertyManager.DistinguishedName)!;
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLink.cs (4)
53string config = (string)PropertyManager.GetPropertyValue(context, de, PropertyManager.ConfigurationNamingContext)!; 130string config = (string)PropertyManager.GetPropertyValue(context, de, PropertyManager.ConfigurationNamingContext)!;
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLinkBridge.cs (4)
45string config = (string)PropertyManager.GetPropertyValue(context, de, PropertyManager.ConfigurationNamingContext)!; 117string config = (string)PropertyManager.GetPropertyValue(context, de, PropertyManager.ConfigurationNamingContext)!;
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLinkCollection.cs (18)
78string dn = (string)PropertyManager.GetPropertyValue(link.context, link.cachedEntry, PropertyManager.DistinguishedName)!; 83string tmpDn = (string)PropertyManager.GetPropertyValue(tmp.context, tmp.cachedEntry, PropertyManager.DistinguishedName)!; 106string dn = (string)PropertyManager.GetPropertyValue(link.context, link.cachedEntry, PropertyManager.DistinguishedName)!; 111string tmpDn = (string)PropertyManager.GetPropertyValue(tmp.context, tmp.cachedEntry, PropertyManager.DistinguishedName)!; 143string dn = (string)PropertyManager.GetPropertyValue(link.context, link.cachedEntry, PropertyManager.DistinguishedName)!; 148string tmpDn = (string)PropertyManager.GetPropertyValue(tmp.context, tmp.cachedEntry, PropertyManager.DistinguishedName)!; 185string dn = (string)PropertyManager.GetPropertyValue(link.context, link.cachedEntry, PropertyManager.DistinguishedName)!; 202string dn = (string)PropertyManager.GetPropertyValue(link.context, link.cachedEntry, PropertyManager.DistinguishedName)!; 218string newdn = (string)PropertyManager.GetPropertyValue(newLink.context, newLink.cachedEntry, PropertyManager.DistinguishedName)!;
System\DirectoryServices\ActiveDirectory\ActiveDirectorySubnet.cs (4)
32string config = (string)PropertyManager.GetPropertyValue(context, de, PropertyManager.ConfigurationNamingContext)!; 125string config = (string)PropertyManager.GetPropertyValue(context, de, PropertyManager.ConfigurationNamingContext)!;
System\DirectoryServices\ActiveDirectory\ActiveDirectorySubnetCollection.cs (16)
96string dn = (string)PropertyManager.GetPropertyValue(subnet.context, subnet.cachedEntry, PropertyManager.DistinguishedName)!; 101string tmpDn = (string)PropertyManager.GetPropertyValue(tmp.context, tmp.cachedEntry, PropertyManager.DistinguishedName)!; 124string dn = (string)PropertyManager.GetPropertyValue(subnet.context, subnet.cachedEntry, PropertyManager.DistinguishedName)!; 129string tmpDn = (string)PropertyManager.GetPropertyValue(tmp.context, tmp.cachedEntry, PropertyManager.DistinguishedName)!; 161string dn = (string)PropertyManager.GetPropertyValue(subnet.context, subnet.cachedEntry, PropertyManager.DistinguishedName)!; 166string tmpDn = (string)PropertyManager.GetPropertyValue(tmp.context, tmp.cachedEntry, PropertyManager.DistinguishedName)!; 210string dn = (string)PropertyManager.GetPropertyValue(subnet.context, subnet.cachedEntry, PropertyManager.DistinguishedName)!; 237string dn = (string)PropertyManager.GetPropertyValue(subnet.context, subnet.cachedEntry, PropertyManager.DistinguishedName)!;
System\DirectoryServices\ActiveDirectory\ADAMInstance.cs (31)
46_becomeRoleOwnerAttrs[0] = PropertyManager.BecomeSchemaMaster; 47_becomeRoleOwnerAttrs[1] = PropertyManager.BecomeDomainMaster; 71_becomeRoleOwnerAttrs[0] = PropertyManager.BecomeSchemaMaster; 72_becomeRoleOwnerAttrs[1] = PropertyManager.BecomeDomainMaster; 145dnsHostName = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.DnsHostName)!; 279roleObjectEntry.Properties[PropertyManager.FsmoRoleOwner].Value = NtdsaObjectName; 504_cachedHostName = (string)PropertyManager.GetPropertyValue(context, serverEntry, PropertyManager.DnsHostName)!; 518_cachedLdapPort = (int)PropertyManager.GetPropertyValue(context, ntdsaEntry, PropertyManager.MsDSPortLDAP)!; 532_cachedSslPort = (int)PropertyManager.GetPropertyValue(context, ntdsaEntry, PropertyManager.MsDSPortSSL)!; 556if (NtdsaObjectName.Equals((string)PropertyManager.GetPropertyValue(context, schemaEntry, PropertyManager.FsmoRoleOwner)!)) 563if (NtdsaObjectName.Equals((string)PropertyManager.GetPropertyValue(context, partitionsEntry, PropertyManager.FsmoRoleOwner)!)) 595if (ntdsaEntry.Properties[PropertyManager.MsDSDefaultNamingContext].Value == null) 602_cachedDefaultPartition = (string)PropertyManager.GetPropertyValue(context, ntdsaEntry, PropertyManager.MsDSDefaultNamingContext)!; 620if (ntdsaEntry.Properties.Contains(PropertyManager.MsDSDefaultNamingContext)) 622ntdsaEntry.Properties[PropertyManager.MsDSDefaultNamingContext].Clear(); 641ntdsaEntry.Properties[PropertyManager.MsDSDefaultNamingContext].Value = value; 675cachedSiteName = (string)PropertyManager.GetPropertyValue(context, siteEntry, PropertyManager.Cn)!; 722cachedServerObjectName = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.ServerName)!; 747cachedNtdsaObjectName = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.DsServiceName)!; 770byte[] guidByteArray = (byte[])PropertyManager.GetPropertyValue(context, ntdsaEntry, PropertyManager.ObjectGuid)!;
System\DirectoryServices\ActiveDirectory\ApplicationPartition.cs (38)
214str.Append(PropertyManager.ObjectCategory); 216str.Append(PropertyManager.SystemFlags); 220str.Append(PropertyManager.SystemFlags); 224str.Append(PropertyManager.NCName); 232propertiesToLoad[0] = PropertyManager.DnsRoot; 233propertiesToLoad[1] = PropertyManager.NCName; 268appNCDnsName = (res.Properties[PropertyManager.DnsRoot].Count > 0) ? (string)res.Properties[PropertyManager.DnsRoot][0]! : null; 285foreach (string namingContext in rootDSE.Properties[PropertyManager.NamingContexts]) 342partition = new ApplicationPartition(appNCContext, (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.NCName)!, appNCDnsName, appType, directoryEntryMgr); 651string primaryServerNtdsaName = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.DsServiceName)!; 659string crossRefDN = (string)PropertyManager.GetPropertyValue(context, _crossRefEntry!, PropertyManager.DistinguishedName)!; 668fsmoRootDSE.Properties[PropertyManager.ReplicateSingleObject].Value = primaryServerNtdsaName + ":" + crossRefDN; 688_crossRefEntry!.Properties[PropertyManager.MsDSNCReplicaLocations].AddRange(_cachedDirectoryServers.GetMultiValuedProperty()); 692_crossRefEntry!.Properties[PropertyManager.MsDSSDReferenceDomain].Value = _securityRefDomain; 789if (_crossRefEntry.Properties[PropertyManager.MsDSSDReferenceDomain].Count > 0) 791return (string?)_crossRefEntry.Properties[PropertyManager.MsDSSDReferenceDomain].Value; 824if (_crossRefEntry.Properties.Contains(PropertyManager.MsDSSDReferenceDomain)) 826_crossRefEntry.Properties[PropertyManager.MsDSSDReferenceDomain].Clear(); 832_crossRefEntry.Properties[PropertyManager.MsDSSDReferenceDomain].Value = value; 915serverDnsName = (string?)PropertyManager.GetPropertyValue(this.context, rootDSEEntry, PropertyManager.DnsHostName); 950_domainDNSEntry = parent.Children.Add(Utils.GetRdnFromDN(distinguishedName), PropertyManager.DomainDNS); 952_domainDNSEntry.Properties[PropertyManager.InstanceType].Value = NCFlags.InstanceTypeIsNCHead | NCFlags.InstanceTypeIsWriteable; 995_domainDNSEntry.Properties[PropertyManager.InstanceType].Value = NCFlags.InstanceTypeIsNCHead | NCFlags.InstanceTypeIsWriteable; 1036string ntdsaName = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.DsServiceName)!; 1046_crossRefEntry.Properties[PropertyManager.DnsRoot].Value = dnsHostName; 1047_crossRefEntry.Properties[PropertyManager.Enabled].Value = false; 1048_crossRefEntry.Properties[PropertyManager.NCName].Value = distinguishedName; 1067foreach (string supportedCapability in rootDSE.Properties[PropertyManager.SupportedCapabilities]) 1126namingFsmo = Utils.GetDnsHostNameFromNTDSA(context, (string)PropertyManager.GetPropertyValue(context, partitionsEntry, PropertyManager.FsmoRoleOwner)!); 1130namingFsmo = Utils.GetAdamDnsHostNameFromNTDSA(context, (string)PropertyManager.GetPropertyValue(context, partitionsEntry, PropertyManager.FsmoRoleOwner)!);
System\DirectoryServices\ActiveDirectory\ConfigSet.cs (32)
117configSetName = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.ConfigurationNamingContext)!; 223_cachedSecurityLevel = (ReplicationSecurityLevel)((int)PropertyManager.GetPropertyValue(_context, configEntry, PropertyManager.MsDSReplAuthenticationMode)!); 239configEntry.Properties[PropertyManager.MsDSReplAuthenticationMode].Value = (int)securityLevel; 352string? isGCReady = (string?)PropertyManager.GetPropertyValue(forestContext, rootDSE, PropertyManager.IsGlobalCatalogReady); 393string dnsHostName = (string?)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.DnsHostName)!; 413str.Append(PropertyManager.ObjectCategory); 416str.Append(PropertyManager.Keywords); 418str.Append(PropertyManager.Keywords); 426propertiesToLoad[0] = PropertyManager.ServiceBindingInformation; 441foreach (string bindingInfo in res.Properties[PropertyManager.ServiceBindingInformation]) 604adamInstName = Utils.GetAdamDnsHostNameFromNTDSA(_context, (string)PropertyManager.GetPropertyValue(_context, entry, PropertyManager.FsmoRoleOwner)!); 630string filter = "(" + PropertyManager.ObjectCategory + "=site)"; 633propertiesToLoad[0] = PropertyManager.Cn; 645sites.Add(new ActiveDirectorySite(_context, (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.Cn)!, true)); 674str.Append(PropertyManager.ObjectCategory); 676str.Append(PropertyManager.SystemFlags); 680str.Append(PropertyManager.SystemFlags); 687propertiesToLoad[0] = PropertyManager.NCName; 688propertiesToLoad[1] = PropertyManager.MsDSNCReplicaLocations; 697string? schemaNamingContext = (string?)PropertyManager.GetPropertyValue(_context, rootDSE, PropertyManager.SchemaNamingContext); 698string? configurationNamingContext = (string?)PropertyManager.GetPropertyValue(_context, rootDSE, PropertyManager.ConfigurationNamingContext); 704string nCName = (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.NCName)!; 708ResultPropertyValueCollection replicaLocations = res.Properties[PropertyManager.MsDSNCReplicaLocations];
System\DirectoryServices\ActiveDirectory\DirectoryEntryManager.cs (16)
180distinguishedName = (string)PropertyManager.GetPropertyValue(_context, rootDSE, PropertyManager.RootDomainNamingContext)!; 186distinguishedName = (string)PropertyManager.GetPropertyValue(_context, rootDSE, PropertyManager.DefaultNamingContext)!; 192distinguishedName = (string)PropertyManager.GetPropertyValue(_context, rootDSE, PropertyManager.SchemaNamingContext)!; 198distinguishedName = (string)PropertyManager.GetPropertyValue(_context, rootDSE, PropertyManager.ConfigurationNamingContext)!; 290distinguishedName = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.RootDomainNamingContext)!; 303distinguishedName = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.DefaultNamingContext)!; 316distinguishedName = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.SchemaNamingContext)!; 329distinguishedName = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.ConfigurationNamingContext)!;
System\DirectoryServices\ActiveDirectory\DirectoryServer.cs (7)
104_ = (string?)PropertyManager.GetPropertyValue(context, serverEntry, PropertyManager.DistinguishedName); 225foreach (string partition in rootDSE.Properties[PropertyManager.NamingContexts]) 236propertyNames.Add(PropertyManager.HasPartialReplicaNCs); 248ArrayList readOnlyPartitions = (ArrayList)values[PropertyManager.HasPartialReplicaNCs.ToLowerInvariant()]!; 781ReplicationConnection con = new ReplicationConnection(newContext, r.GetDirectoryEntry(), (string)PropertyManager.GetSearchResultPropertyValue(r, PropertyManager.Cn)!);
System\DirectoryServices\ActiveDirectory\DirectoryServerCollection.cs (4)
252if (_crossRefEntry.Properties.Contains(PropertyManager.MsDSNCReplicaLocations)) 254_crossRefEntry.Properties[PropertyManager.MsDSNCReplicaLocations].Clear(); 284_crossRefEntry.Properties[PropertyManager.MsDSNCReplicaLocations].Add(ntdsaName); 330_crossRefEntry.Properties[PropertyManager.MsDSNCReplicaLocations].Remove(ntdsaName);
System\DirectoryServices\ActiveDirectory\Domain.cs (44)
110defaultDomainNC = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.DefaultNamingContext)!; 186domainEntry.Properties[PropertyManager.MsDSBehaviorVersion].Value = domainMode; 194domainEntry.Properties[PropertyManager.NTMixedDomain].Value = 0; 207domainEntry.Properties[PropertyManager.NTMixedDomain].Value = 0; 297domainEntry.Properties[PropertyManager.NTMixedDomain].Value = 0; 301domainEntry.Properties[PropertyManager.MsDSBehaviorVersion].Value = 1; 305domainEntry.Properties[PropertyManager.NTMixedDomain].Value = 0; 306domainEntry.Properties[PropertyManager.MsDSBehaviorVersion].Value = 2; 320domainEntry.Properties[PropertyManager.NTMixedDomain].Value = 0; 321domainEntry.Properties[PropertyManager.MsDSBehaviorVersion].Value = 2; 345domainEntry.Properties[PropertyManager.MsDSBehaviorVersion].Value = 2; 349domainEntry.Properties[PropertyManager.MsDSBehaviorVersion].Value = 3; 353domainEntry.Properties[PropertyManager.MsDSBehaviorVersion].Value = 4; 357domainEntry.Properties[PropertyManager.MsDSBehaviorVersion].Value = 5; 361domainEntry.Properties[PropertyManager.MsDSBehaviorVersion].Value = 6; 829string rootDomainNC = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.RootDomainNamingContext)!; 938if (rootDSE.Properties.Contains(PropertyManager.DomainFunctionality)) 940domainFunctionality = int.Parse((string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.DomainFunctionality)!, NumberFormatInfo.InvariantInfo); 980int ntMixedDomain = (int)PropertyManager.GetPropertyValue(context, domainEntry, PropertyManager.NTMixedDomain)!; 1061dcName = Utils.GetDnsHostNameFromNTDSA(context, (string)PropertyManager.GetPropertyValue(context, entry, PropertyManager.FsmoRoleOwner)!); 1093str.Append(PropertyManager.ObjectCategory); 1095str.Append(PropertyManager.SystemFlags); 1099str.Append(PropertyManager.SystemFlags); 1103str.Append(PropertyManager.DnsRoot); 1111propertiesToLoad[0] = PropertyManager.DistinguishedName; 1112propertiesToLoad[1] = PropertyManager.TrustParent; 1117_crossRefDN = (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.DistinguishedName)!; 1120if (res.Properties[PropertyManager.TrustParent].Count > 0) 1122_trustParent = (string?)res.Properties[PropertyManager.TrustParent][0]; 1149parentDomainName = (string)PropertyManager.GetPropertyValue(context, parentCrossRef, PropertyManager.DnsRoot)!; 1185str.Append(PropertyManager.ObjectCategory); 1187str.Append(PropertyManager.SystemFlags); 1191str.Append(PropertyManager.SystemFlags); 1195str.Append(PropertyManager.TrustParent); 1202propertiesToLoad[0] = PropertyManager.DnsRoot; 1209string childDomainName = (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.DnsRoot)!;
System\DirectoryServices\ActiveDirectory\DomainController.cs (23)
82_becomeRoleOwnerAttrs[0] = PropertyManager.BecomeSchemaMaster; 83_becomeRoleOwnerAttrs[1] = PropertyManager.BecomeDomainMaster; 84_becomeRoleOwnerAttrs[2] = PropertyManager.BecomePdc; 85_becomeRoleOwnerAttrs[3] = PropertyManager.BecomeRidMaster; 86_becomeRoleOwnerAttrs[4] = PropertyManager.BecomeInfrastructureMaster; 155dcDnsName = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.DnsHostName)!; 268if (serverNtdsaEntry.Properties[PropertyManager.Options].Value != null) 270options = (int)serverNtdsaEntry.Properties[PropertyManager.Options].Value!; 272serverNtdsaEntry.Properties[PropertyManager.Options].Value = options | 1; 294if (serverNtdsaEntry.Properties[PropertyManager.Options].Value != null) 296options = (int)serverNtdsaEntry.Properties[PropertyManager.Options].Value!; 386System.DirectoryServices.UnsafeNativeMethods.IADsLargeInteger ridPool = (System.DirectoryServices.UnsafeNativeMethods.IADsLargeInteger)roleObjectEntry.Properties[PropertyManager.RIDAvailablePool].Value!; 394roleObjectEntry.Properties[PropertyManager.RIDAvailablePool].Value = ridPool; 396roleObjectEntry.Properties[PropertyManager.FsmoRoleOwner].Value = NtdsaObjectName; 607serverUTCTime = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.CurrentTime)!; 628serverHighestCommittedUsn = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.HighestCommittedUSN)!; 648_cachedOSVersion = (string)PropertyManager.GetPropertyValue(context, computerEntry, PropertyManager.OperatingSystem)!; 665string osVersion = (string)PropertyManager.GetPropertyValue(context, computerEntry, PropertyManager.OperatingSystemVersion)!;
System\DirectoryServices\ActiveDirectory\Forest.cs (24)
136rootDomainNC = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.RootDomainNamingContext)!; 187partitionsEntry.Properties[PropertyManager.MsDSBehaviorVersion].Value = forestMode; 765if (!rootDSE.Properties.Contains(PropertyManager.ForestFunctionality)) 772forestModeValue = int.Parse((string)rootDSE.Properties[PropertyManager.ForestFunctionality].Value!, NumberFormatInfo.InvariantInfo); 816dcName = Utils.GetDnsHostNameFromNTDSA(_context, (string)PropertyManager.GetPropertyValue(_context, entry, PropertyManager.FsmoRoleOwner)!); 935str.Append(PropertyManager.ObjectCategory); 937str.Append(PropertyManager.SystemFlags); 941str.Append(PropertyManager.SystemFlags); 948propertiesToLoad[0] = PropertyManager.DnsRoot; 949propertiesToLoad[1] = PropertyManager.NCName; 964string nCName = (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.NCName)!; 970string dnsName = (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.DnsRoot)!; 972appNCs.Add(new ApplicationPartition(appNCContext, nCName, (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.DnsRoot)!, ApplicationPartitionType.ADApplicationPartition, new DirectoryEntryManager(appNCContext))); 1002str.Append(PropertyManager.ObjectCategory); 1004str.Append(PropertyManager.SystemFlags); 1008str.Append(PropertyManager.SystemFlags); 1015propertiesToLoad[0] = PropertyManager.DnsRoot; 1025string domainName = (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.DnsRoot)!;
System\DirectoryServices\ActiveDirectory\GlobalCatalog.cs (7)
65gcDnsName = (string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.DnsHostName)!; 66isGlobalCatalog = (bool)bool.Parse((string)PropertyManager.GetPropertyValue(context, rootDSE, PropertyManager.IsGlobalCatalogReady)!); 192if (serverNtdsaEntry.Properties[PropertyManager.Options].Value != null) 194options = (int)serverNtdsaEntry.Properties[PropertyManager.Options].Value!; 197serverNtdsaEntry.Properties[PropertyManager.Options].Value = options & (~1);
System\DirectoryServices\ActiveDirectory\PropertyManager.cs (2)
124if (directoryEntry.Properties[PropertyManager.DistinguishedName].Count != 0) 126throw new ActiveDirectoryOperationException(SR.Format(SR.PropertyNotFoundOnObject, propertyName, directoryEntry.Properties[PropertyManager.DistinguishedName].Value));
System\DirectoryServices\ActiveDirectory\ReadOnlySiteCollection.cs (8)
27string? dn = (string?)PropertyManager.GetPropertyValue(site.context, site.cachedEntry, PropertyManager.DistinguishedName); 33string? tmpDn = (string?)PropertyManager.GetPropertyValue(tmp.context, tmp.cachedEntry, PropertyManager.DistinguishedName); 48string? dn = (string?)PropertyManager.GetPropertyValue(site.context, site.cachedEntry, PropertyManager.DistinguishedName); 54string? tmpDn = (string?)PropertyManager.GetPropertyValue(tmp.context, tmp.cachedEntry, PropertyManager.DistinguishedName);
System\DirectoryServices\ActiveDirectory\ReadOnlySiteLinkBridgeCollection.cs (8)
22string? dn = (string?)PropertyManager.GetPropertyValue(bridge.context, bridge.cachedEntry!, PropertyManager.DistinguishedName); 27string? tmpDn = (string?)PropertyManager.GetPropertyValue(tmp.context, tmp.cachedEntry!, PropertyManager.DistinguishedName); 42string? dn = (string?)PropertyManager.GetPropertyValue(bridge.context, bridge.cachedEntry!, PropertyManager.DistinguishedName); 47string? tmpDn = (string?)PropertyManager.GetPropertyValue(tmp.context, tmp.cachedEntry!, PropertyManager.DistinguishedName);
System\DirectoryServices\ActiveDirectory\ReadOnlySiteLinkCollection.cs (8)
22string? dn = (string?)PropertyManager.GetPropertyValue(link.context, link.cachedEntry, PropertyManager.DistinguishedName); 27string? tmpDn = (string?)PropertyManager.GetPropertyValue(tmp.context, tmp.cachedEntry, PropertyManager.DistinguishedName); 42string? dn = (string?)PropertyManager.GetPropertyValue(link.context, link.cachedEntry, PropertyManager.DistinguishedName); 47string? tmpDn = (string?)PropertyManager.GetPropertyValue(tmp.context, tmp.cachedEntry, PropertyManager.DistinguishedName);
System\DirectoryServices\ActiveDirectory\ReplicationConnection.cs (30)
50string serverDN = (string)PropertyManager.GetPropertyValue(context, de, PropertyManager.ServerName)!; 139string serverDN = (string)PropertyManager.GetPropertyValue(context, de, PropertyManager.ServerName)!; 153string serverName = (string)PropertyManager.GetPropertyValue(sourceServerContext, de, PropertyManager.ServerName)!; 246string sourceServerDN = (string)PropertyManager.GetPropertyValue(context, cachedDirectoryEntry, PropertyManager.FromServer)!; 250int portnumber = (int)PropertyManager.GetPropertyValue(context, de, PropertyManager.MsDSPortLDAP)!; 251string? tmpServerName = (string?)PropertyManager.GetPropertyValue(context, de.Parent, PropertyManager.DnsHostName); 259_sourceServerName = (string?)PropertyManager.GetPropertyValue(context, de.Parent, PropertyManager.DnsHostName); 287string hostName = (string)PropertyManager.GetPropertyValue(context, serverObject, PropertyManager.DnsHostName)!; 290int portnumber = (int)PropertyManager.GetPropertyValue(context, NTDSObject, PropertyManager.MsDSPortLDAP)!; 751string destinationPath = (string)PropertyManager.GetPropertyValue(context, cachedDirectoryEntry, PropertyManager.FromServer)!; 755string serverDN = (string)PropertyManager.GetPropertyValue(context, de, PropertyManager.ServerName)!; 960string? targetRoot = (string?)PropertyManager.GetPropertyValue(context, targetDE, PropertyManager.RootDomainNamingContext); 961string? sourceRoot = (string?)PropertyManager.GetPropertyValue(sourceServer.Context, sourceDE, PropertyManager.RootDomainNamingContext); 969string? targetRoot = (string?)PropertyManager.GetPropertyValue(context, targetDE, PropertyManager.ConfigurationNamingContext); 970string? sourceRoot = (string?)PropertyManager.GetPropertyValue(sourceServer.Context, sourceDE, PropertyManager.ConfigurationNamingContext);
System\DirectoryServices\ActiveDirectory\ReplicationConnectionCollection.cs (8)
22string? dn = (string?)PropertyManager.GetPropertyValue(connection.context, connection.cachedDirectoryEntry, PropertyManager.DistinguishedName); 27string? tmpDn = (string?)PropertyManager.GetPropertyValue(tmp.context, tmp.cachedDirectoryEntry, PropertyManager.DistinguishedName); 45string? dn = (string?)PropertyManager.GetPropertyValue(connection.context, connection.cachedDirectoryEntry, PropertyManager.DistinguishedName); 50string? tmpDn = (string?)PropertyManager.GetPropertyValue(tmp.context, tmp.cachedDirectoryEntry, PropertyManager.DistinguishedName);
System\DirectoryServices\ActiveDirectory\Utils.cs (130)
289dcName = (string)PropertyManager.GetPropertyValue(context, de, PropertyManager.DnsHostName)!; 309string filter = "(|(&(" + PropertyManager.ObjectCategory + "=server)(" + PropertyManager.DistinguishedName + "=" + GetEscapedFilterValue(serverDn) + "))" + 310"(&(" + PropertyManager.ObjectCategory + "=nTDSDSA)(" + PropertyManager.DistinguishedName + "=" + GetEscapedFilterValue(ntdsaDn) + ")))"; 312propertiesToLoad[0] = PropertyManager.DnsHostName; 313propertiesToLoad[1] = PropertyManager.MsDSPortLDAP; 314propertiesToLoad[2] = PropertyManager.ObjectCategory; 328string objectCategoryValue = (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.ObjectCategory)!; 332ldapPort = (int)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.MsDSPortLDAP)!; 337dnsHostName = (string?)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.DnsHostName); 367string filter = "(|(&(" + PropertyManager.ObjectCategory + "=server)(" + PropertyManager.DistinguishedName + "=" + GetEscapedFilterValue(serverDn) + "))" + 368"(&(" + PropertyManager.ObjectCategory + "=nTDSDSA)(" + PropertyManager.DistinguishedName + "=" + GetEscapedFilterValue(ntdsaDn) + ")))"; 370propertiesToLoad[0] = PropertyManager.DnsHostName; 371propertiesToLoad[1] = PropertyManager.MsDSPortLDAP; 372propertiesToLoad[2] = PropertyManager.MsDSPortSSL; 373propertiesToLoad[3] = PropertyManager.ObjectCategory; 387string objectCategoryValue = (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.ObjectCategory)!; 391ldapPort = (int)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.MsDSPortLDAP)!; 392sslPort = (int)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.MsDSPortSSL)!; 397dnsHostName = (string?)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.DnsHostName); 734foreach (string supportedCapability in rootDSE.Properties[PropertyManager.SupportedCapabilities]) 745foreach (string supportedCapability in rootDSE.Properties[PropertyManager.SupportedCapabilities]) 756foreach (string supportedCapability in rootDSE.Properties[PropertyManager.SupportedCapabilities]) 777str.Append(PropertyManager.ObjectCategory); 779str.Append(PropertyManager.SystemFlags); 783str.Append(PropertyManager.SystemFlags); 787str.Append(PropertyManager.NCName); 795propertiesToLoad[0] = PropertyManager.DistinguishedName; 816_ = (string?)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.DistinguishedName); 907originatingServerName = (string?)PropertyManager.GetPropertyValue(server.Context, srvEntry, PropertyManager.DnsHostName); 921originatingServerName = (string?)PropertyManager.GetPropertyValue(de.Parent, PropertyManager.DnsHostName); 933int portnumber = (int)PropertyManager.GetPropertyValue(server.Context, de, PropertyManager.MsDSPortLDAP)!; 1043string? namingContext = (string?)PropertyManager.GetPropertyValue(context, de, PropertyManager.DefaultNamingContext); 1044string? rootNamingContext = (string?)PropertyManager.GetPropertyValue(context, de, PropertyManager.RootDomainNamingContext); 1276fsmoRoleOwnerName = Utils.GetAdamDnsHostNameFromNTDSA(context, (string)PropertyManager.GetPropertyValue(context, partitionsEntry, PropertyManager.FsmoRoleOwner)!); 1280fsmoRoleOwnerName = Utils.GetDnsHostNameFromNTDSA(context, (string)PropertyManager.GetPropertyValue(context, partitionsEntry, PropertyManager.FsmoRoleOwner)!); 1288string filter = "(&(" + PropertyManager.ObjectCategory + "=crossRef)(" + PropertyManager.NCName + "=" + Utils.GetEscapedFilterValue(partitionName!) + "))"; 1290propertyNames.Add(PropertyManager.MsDSNCReplicaLocations); 1291propertyNames.Add(PropertyManager.MsDSNCROReplicaLocations); 1309ArrayList replicaLocations = (ArrayList)values[PropertyManager.MsDSNCReplicaLocations.ToLowerInvariant()]!; 1310ArrayList roReplicaLocations = (ArrayList)values[PropertyManager.MsDSNCROReplicaLocations.ToLowerInvariant()]!; 1322ntdsaFilter.Append(PropertyManager.DistinguishedName); 1328serverFilter.Append(PropertyManager.DistinguishedName); 1337roNtdsaFilter.Append(PropertyManager.DistinguishedName); 1343roServerFilter.Append(PropertyManager.DistinguishedName); 1388filter2 = "(|(&(" + PropertyManager.ObjectCategory + "=nTDSDSA)(" + PropertyManager.HasMasterNCs + 1389"=" + Utils.GetEscapedFilterValue(partitionName) + "))(&(" + PropertyManager.ObjectCategory + "=nTDSDSARO)(" + 1390PropertyManager.MsDSHasFullReplicaNCs + "=" + Utils.GetEscapedFilterValue(partitionName) + "))(" + 1391PropertyManager.ObjectCategory + "=server))"; 1397filter2 = "(|(&(" + PropertyManager.ObjectCategory + "=nTDSDSA)(" + 1398PropertyManager.Options + ":1.2.840.113556.1.4.804:=1))(&(" + 1399PropertyManager.ObjectCategory + "=nTDSDSARO)(" + 1400PropertyManager.Options + ":1.2.840.113556.1.4.804:=1))(" + 1401PropertyManager.ObjectCategory + "=server))"; 1405filter2 = "(|" + "(" + PropertyManager.ObjectCategory + "=nTDSDSA)(" + 1406PropertyManager.ObjectCategory + "=nTDSDSARO)(" + 1407PropertyManager.ObjectCategory + "=server))"; 1422filter2 = "(|(&(" + PropertyManager.ObjectCategory + "=nTDSDSA)(" + PropertyManager.Options + 1423":1.2.840.113556.1.4.804:=1)(" + PropertyManager.MsDSHasMasterNCs + "=" + Utils.GetEscapedFilterValue(partitionName) + 1424")(|" + ntdsaFilter.ToString() + "))" + "(&(" + PropertyManager.ObjectCategory + "=nTDSDSARO)(" + PropertyManager.Options + 1426"(&(" + PropertyManager.ObjectCategory + "=server)(|" + serverFilter.ToString() + "))" + 1427"(&(" + PropertyManager.ObjectCategory + "=server)(|" + roServerFilter.ToString() + ")))"; 1431filter2 = "(|(&(" + PropertyManager.ObjectCategory + "=nTDSDSA)(" + PropertyManager.Options + 1432":1.2.840.113556.1.4.804:=1)(" + PropertyManager.MsDSHasMasterNCs + "=" + Utils.GetEscapedFilterValue(partitionName) + 1433")(|" + ntdsaFilter.ToString() + "))" + "(&(" + PropertyManager.ObjectCategory + "=server)(|" + serverFilter.ToString() + ")))"; 1443filter2 = "(|(&(" + PropertyManager.ObjectCategory + "=nTDSDSA)(" + PropertyManager.MsDSHasMasterNCs + "=" + Utils.GetEscapedFilterValue(partitionName) + ")(|" + ntdsaFilter.ToString() + "))" 1444+ "(&(" + PropertyManager.ObjectCategory + "=nTDSDSARO)(|" + roNtdsaFilter.ToString() + "))" 1445+ "(&(" + PropertyManager.ObjectCategory + "=server)(|" + serverFilter.ToString() + "))" 1446+ "(&(" + PropertyManager.ObjectCategory + "=server)(|" + roServerFilter.ToString() + ")))"; 1450filter2 = "(|(&(" + PropertyManager.ObjectCategory + "=nTDSDSA)(" + PropertyManager.MsDSHasMasterNCs + "=" + Utils.GetEscapedFilterValue(partitionName) + ")(|" + ntdsaFilter.ToString() + "))" 1451+ "(&(" + PropertyManager.ObjectCategory + "=server)(|" + serverFilter.ToString() + ")))"; 1462string propertyWithRangeInfo = PropertyManager.MsDSHasInstantiatedNCs + ";range=0-*"; 1463searcher2.PropertiesToLoad.Add(PropertyManager.DistinguishedName); 1464searcher2.PropertiesToLoad.Add(PropertyManager.DnsHostName); 1466searcher2.PropertiesToLoad.Add(PropertyManager.ObjectCategory); 1469searcher2.PropertiesToLoad.Add(PropertyManager.MsDSPortLDAP); 1483string objectCategory = (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.ObjectCategory)!; 1489string ntdsaName = (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.DistinguishedName)!; 1500serverPorts.Add(ntdsaName, (int)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.MsDSPortLDAP)!); 1514if ((property.Length >= PropertyManager.MsDSHasInstantiatedNCs.Length) && (Utils.Compare(property, 0, PropertyManager.MsDSHasInstantiatedNCs.Length, PropertyManager.MsDSHasInstantiatedNCs, 0, PropertyManager.MsDSHasInstantiatedNCs.Length) == 0)) 1551serverPorts.Add(ntdsaName, (int)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.MsDSPortLDAP)!); 1573serverPorts.Add(ntdsaName, (int)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.MsDSPortLDAP)!); 1581if (res.Properties.Contains(PropertyManager.DnsHostName)) 1583serverNames.Add("CN=NTDS Settings," + (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.DistinguishedName)!, 1584(string?)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.DnsHostName)); 1614str.Append(PropertyManager.NCName); 1629searcher2.Filter = "(&" + "(" + PropertyManager.ObjectCategory + "=nTDSDSA)" + str.ToString() + ")"; 1631string propertyWithRangeInfo2 = PropertyManager.MsDSHasInstantiatedNCs + ";range=" + rangeStart + "-*"; 1634searcher2.PropertiesToLoad.Add(PropertyManager.DistinguishedName); 1642string ntdsaName = (string)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.DistinguishedName)!; 1651if (property.AsSpan().StartsWith(PropertyManager.MsDSHasInstantiatedNCs, StringComparison.OrdinalIgnoreCase)) 1685serverPorts.Add(ntdsaName, (int)PropertyManager.GetSearchResultPropertyValue(res, PropertyManager.MsDSPortLDAP)!);