431 references to Properties
PresentationUI (1)
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
240directoryEntry.Properties[_adEmailAddressKey];
System.DirectoryServices (223)
System\DirectoryServices\ActiveDirectory\ActiveDirectoryInterSiteTransport.cs (10)
120if (_cachedEntry.Properties.Contains("options")) 121option = (int)_cachedEntry.Properties["options"][0]!; 142if (_cachedEntry.Properties.Contains("options")) 143option = (int)_cachedEntry.Properties["options"][0]!; 151_cachedEntry.Properties["options"].Value = option; 170if (_cachedEntry.Properties.Contains("options")) 171option = (int)_cachedEntry.Properties["options"][0]!; 193if (_cachedEntry.Properties.Contains("options")) 194option = (int)_cachedEntry.Properties["options"][0]!; 204_cachedEntry.Properties["options"].Value = option;
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchema.cs (1)
187rootDSE.Properties[PropertyManager.SchemaUpdateNow].Value = 1;
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaClass.cs (6)
304_classEntry.Properties[PropertyManager.PossibleSuperiors].AddRange(_possibleSuperiors.GetMultiValuedProperty()); 310_classEntry.Properties[PropertyManager.MustContain].AddRange(_mandatoryProperties.GetMultiValuedProperty()); 316_classEntry.Properties[PropertyManager.MayContain].AddRange(_optionalProperties.GetMultiValuedProperty()); 1245if (_classEntry.Properties.Contains(propertyName)) 1247_classEntry.Properties[propertyName].Clear(); 1252_classEntry.Properties[propertyName].Value = value;
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaClassCollection.cs (5)
247if (_classEntry.Properties.Contains(_propertyName)) 249_classEntry.Properties[_propertyName].Clear(); 269_classEntry.Properties[_propertyName].Add(((ActiveDirectorySchemaClass)value).Name); 294if (_classEntry.Properties[_propertyName].Contains(valueName)) 296_classEntry.Properties[_propertyName].Remove(valueName);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaProperty.cs (26)
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; 676_propertyEntry.Properties[PropertyManager.IsSingleValued].Value = value; 826_propertyEntry.Properties[PropertyManager.IsMemberOfPartialAttributeSet].Value = value; 871if (_propertyEntry.Properties.Contains(PropertyManager.RangeLower)) 873_propertyEntry.Properties[PropertyManager.RangeLower].Clear(); 878_propertyEntry.Properties[PropertyManager.RangeLower].Value = (int)value.Value; 924if (_propertyEntry.Properties.Contains(PropertyManager.RangeUpper)) 926_propertyEntry.Properties[PropertyManager.RangeUpper].Clear(); 931_propertyEntry.Properties[PropertyManager.RangeUpper].Value = (int)value.Value; 1040if (_propertyEntry.Properties.Contains(PropertyManager.LinkID)) 1042_propertyEntry.Properties[PropertyManager.LinkID].Clear(); 1047_propertyEntry.Properties[PropertyManager.LinkID].Value = (int)value.Value; 1334_propertyEntry.Properties[PropertyManager.SearchFlags].Value = (int)_searchFlags; 1350_propertyEntry.Properties[PropertyManager.SearchFlags].Value = (int)_searchFlags; 1362if (_propertyEntry.Properties.Contains(propertyName)) 1364_propertyEntry.Properties[propertyName].Clear(); 1369_propertyEntry.Properties[propertyName].Value = value; 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\ActiveDirectorySchemaPropertyCollection.cs (5)
263if (_classEntry.Properties.Contains(_propertyName)) 265_classEntry.Properties[_propertyName].Clear(); 285_classEntry.Properties[_propertyName].Add(((ActiveDirectorySchemaProperty)value).Name); 310if (_classEntry.Properties[_propertyName].Contains(valueName)) 312_classEntry.Properties[_propertyName].Remove(valueName);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySite.cs (20)
363ISTGExist = NTDSSiteEntry.Properties.Contains("interSiteTopologyGenerator"); 438if (NTDSSiteEntry.Properties.Contains("options")) 440return (ActiveDirectorySiteOptions)NTDSSiteEntry.Properties["options"][0]!; 462NTDSSiteEntry.Properties["options"].Value = value; 483if (cachedEntry.Properties.Contains("location")) 485return (string)cachedEntry.Properties["location"][0]!; 504if (cachedEntry.Properties.Contains("location")) 505cachedEntry.Properties["location"].Clear(); 509cachedEntry.Properties["location"].Value = value; 597if (NTDSSiteEntry.Properties.Contains("schedule")) 599byte[] tmpSchedule = (byte[])NTDSSiteEntry.Properties["schedule"][0]!; 634if (NTDSSiteEntry.Properties.Contains("schedule")) 635NTDSSiteEntry.Properties["schedule"].Clear(); 639NTDSSiteEntry.Properties["schedule"].Value = value.GetUnmanagedSchedule(); 668values = de.Properties["supportedCapabilities"]; 794NTDSSiteEntry.Properties["interSiteTopologyGenerator"].Value = ntdsaName; 816tmpEntry.Properties["interSiteTopologyGenerator"].Value = ntdsaName; 818tmpEntry.Properties["options"].Value = _siteOptions; 821tmpEntry.Properties["schedule"].Value = _replicationSchedule; 1180string config = (string)de.Properties["configurationNamingContext"][0]!;
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteCollection.cs (5)
167if (de!.Properties.Contains("siteList")) 168de.Properties["siteList"].Clear(); 187de!.Properties["siteList"].Add(dn); 204de!.Properties["siteList"].Remove(dn); 220de!.Properties["siteList"][index] = newdn;
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLink.cs (23)
78cachedEntry.Properties["cost"].Value = appDefaultCost; 79cachedEntry.Properties["replInterval"].Value = appDefaultInterval; 81cachedEntry.Properties[nameof(schedule)].Value = schedule.GetUnmanagedSchedule(); 253if (cachedEntry.Properties.Contains("cost")) 254return (int)cachedEntry.Properties["cost"][0]!; 274cachedEntry.Properties["cost"].Value = value; 292if (cachedEntry.Properties.Contains("replInterval")) 294int tmpValue = (int)cachedEntry.Properties["replInterval"][0]!; 323cachedEntry.Properties["replInterval"].Value = totalMinutes; 343propValue = cachedEntry.Properties["options"]; 371propValue = cachedEntry.Properties["options"]; 387cachedEntry.Properties["options"].Value = options; 407propValue = cachedEntry.Properties["options"]; 435propValue = cachedEntry.Properties["options"]; 451cachedEntry.Properties["options"].Value = options; 472propValue = cachedEntry.Properties["options"]; 502propValue = cachedEntry.Properties["options"]; 519cachedEntry.Properties["options"].Value = options; 538if (cachedEntry.Properties.Contains("schedule")) 540byte[] tmpSchedule = (byte[])cachedEntry.Properties["schedule"][0]!; 562if (cachedEntry.Properties.Contains("schedule")) 563cachedEntry.Properties["schedule"].Clear(); 567cachedEntry.Properties["schedule"].Value = value.GetUnmanagedSchedule();
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLinkCollection.cs (5)
168if (de!.Properties.Contains("siteLinkList")) 169de.Properties["siteLinkList"].Clear(); 188de!.Properties["siteLinkList"].Add(dn); 205de!.Properties["siteLinkList"].Remove(dn); 221de!.Properties["siteLinkList"][index] = newdn;
System\DirectoryServices\ActiveDirectory\ActiveDirectorySubnet.cs (13)
66if (connectionEntry.Properties.Contains("siteObject")) 72string tmp = (string)connectionEntry.Properties["siteObject"][0]!; 235if (cachedEntry.Properties.Contains("location")) 236return (string)cachedEntry.Properties["location"][0]!; 255if (cachedEntry.Properties.Contains("location")) 256cachedEntry.Properties["location"].Clear(); 260cachedEntry.Properties["location"].Value = value; 283if (cachedEntry.Properties.Contains("siteObject")) 284cachedEntry.Properties["siteObject"].Clear(); 289cachedEntry.Properties["siteObject"].Value = _site.cachedEntry.Properties["distinguishedName"][0]; 296cachedEntry.Properties["siteObject"].Add(_site!.cachedEntry.Properties["distinguishedName"][0]);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySubnetCollection.cs (4)
216((DirectoryEntry)changeList[dn]!).Properties["siteObject"].Value = _siteDN; 221de.Properties["siteObject"].Value = _siteDN; 243((DirectoryEntry)changeList[dn]!).Properties["siteObject"].Clear(); 248de.Properties["siteObject"].Clear();
System\DirectoryServices\ActiveDirectory\ADAMInstance.cs (6)
237rootDSE.Properties[_becomeRoleOwnerAttrs[(int)role]].Value = 1; 279roleObjectEntry.Properties[PropertyManager.FsmoRoleOwner].Value = NtdsaObjectName; 595if (ntdsaEntry.Properties[PropertyManager.MsDSDefaultNamingContext].Value == null) 620if (ntdsaEntry.Properties.Contains(PropertyManager.MsDSDefaultNamingContext)) 622ntdsaEntry.Properties[PropertyManager.MsDSDefaultNamingContext].Clear(); 641ntdsaEntry.Properties[PropertyManager.MsDSDefaultNamingContext].Value = value;
System\DirectoryServices\ActiveDirectory\ApplicationPartition.cs (15)
285foreach (string namingContext in rootDSE.Properties[PropertyManager.NamingContexts]) 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; 952_domainDNSEntry.Properties[PropertyManager.InstanceType].Value = NCFlags.InstanceTypeIsNCHead | NCFlags.InstanceTypeIsWriteable; 995_domainDNSEntry.Properties[PropertyManager.InstanceType].Value = NCFlags.InstanceTypeIsNCHead | NCFlags.InstanceTypeIsWriteable; 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])
System\DirectoryServices\ActiveDirectory\ConfigSet.cs (1)
239configEntry.Properties[PropertyManager.MsDSReplAuthenticationMode].Value = (int)securityLevel;
System\DirectoryServices\ActiveDirectory\DirectoryServer.cs (1)
225foreach (string partition in rootDSE.Properties[PropertyManager.NamingContexts])
System\DirectoryServices\ActiveDirectory\DirectoryServerCollection.cs (8)
252if (_crossRefEntry.Properties.Contains(PropertyManager.MsDSNCReplicaLocations)) 254_crossRefEntry.Properties[PropertyManager.MsDSNCReplicaLocations].Clear(); 284_crossRefEntry.Properties[PropertyManager.MsDSNCReplicaLocations].Add(ntdsaName); 302((DirectoryEntry)changeList[name]!).Properties["bridgeheadTransportList"].Value = this.transportDN; 308de.Properties["bridgeheadTransportList"].Value = this.transportDN; 330_crossRefEntry.Properties[PropertyManager.MsDSNCReplicaLocations].Remove(ntdsaName); 348((DirectoryEntry)changeList[name]!).Properties["bridgeheadTransportList"].Clear(); 354de.Properties["bridgeheadTransportList"].Clear();
System\DirectoryServices\ActiveDirectory\Domain.cs (15)
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; 938if (rootDSE.Properties.Contains(PropertyManager.DomainFunctionality))
System\DirectoryServices\ActiveDirectory\DomainController.cs (9)
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!; 326rootDSE.Properties[_becomeRoleOwnerAttrs[(int)role]].Value = 1; 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;
System\DirectoryServices\ActiveDirectory\Forest.cs (3)
187partitionsEntry.Properties[PropertyManager.MsDSBehaviorVersion].Value = forestMode; 765if (!rootDSE.Properties.Contains(PropertyManager.ForestFunctionality)) 772forestModeValue = int.Parse((string)rootDSE.Properties[PropertyManager.ForestFunctionality].Value!, NumberFormatInfo.InvariantInfo);
System\DirectoryServices\ActiveDirectory\GlobalCatalog.cs (3)
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 (4)
122if (directoryEntry.Properties[propertyName].Count == 0) 124if (directoryEntry.Properties[PropertyManager.DistinguishedName].Count != 0) 126throw new ActiveDirectoryOperationException(SR.Format(SR.PropertyNotFoundOnObject, propertyName, directoryEntry.Properties[PropertyManager.DistinguishedName].Value)); 139return directoryEntry.Properties[propertyName].Value;
System\DirectoryServices\ActiveDirectory\ReplicationConnection.cs (30)
156cachedDirectoryEntry.Properties["fromServer"].Add(serverName); 160cachedDirectoryEntry.Properties[nameof(schedule)].Value = schedule.GetUnmanagedSchedule(); 185cachedDirectoryEntry.Properties["transportType"].Add(transportPath); 188cachedDirectoryEntry.Properties["enabledConnection"].Value = false; 191cachedDirectoryEntry.Properties["options"].Value = 0; 315if (cachedDirectoryEntry.Properties.Contains("enabledConnection")) 316return (bool)cachedDirectoryEntry.Properties["enabledConnection"][0]!; 332cachedDirectoryEntry.Properties["enabledConnection"].Value = value; 355propValue = cachedDirectoryEntry.Properties["transportType"]; 388propValue = cachedDirectoryEntry.Properties["options"]; 417PropertyValueCollection propValue = cachedDirectoryEntry.Properties["options"]; 438cachedDirectoryEntry.Properties["options"].Value = _options; 457propValue = cachedDirectoryEntry.Properties["options"]; 487PropertyValueCollection propValue = cachedDirectoryEntry.Properties["options"]; 508cachedDirectoryEntry.Properties["options"].Value = _options; 527propValue = cachedDirectoryEntry.Properties["options"]; 563PropertyValueCollection propValue = cachedDirectoryEntry.Properties["options"]; 590cachedDirectoryEntry.Properties["options"].Value = _options; 609propValue = cachedDirectoryEntry.Properties["options"]; 641PropertyValueCollection propValue = cachedDirectoryEntry.Properties["options"]; 664cachedDirectoryEntry.Properties["options"].Value = _options; 683propValue = cachedDirectoryEntry.Properties["options"]; 713PropertyValueCollection propValue = cachedDirectoryEntry.Properties["options"]; 734cachedDirectoryEntry.Properties["options"].Value = _options; 780scheduleExists = cachedDirectoryEntry.Properties.Contains("schedule"); 789byte[] tmpSchedule = (byte[])cachedDirectoryEntry.Properties["schedule"][0]!; 806if (cachedDirectoryEntry.Properties.Contains("schedule")) 807cachedDirectoryEntry.Properties["schedule"].Clear(); 811cachedDirectoryEntry.Properties["schedule"].Value = value.GetUnmanagedSchedule(); 829values = de.Properties["supportedCapabilities"];
System\DirectoryServices\ActiveDirectory\Utils.cs (3)
734foreach (string supportedCapability in rootDSE.Properties[PropertyManager.SupportedCapabilities]) 745foreach (string supportedCapability in rootDSE.Properties[PropertyManager.SupportedCapabilities]) 756foreach (string supportedCapability in rootDSE.Properties[PropertyManager.SupportedCapabilities])
System\DirectoryServices\DirectoryEntry.cs (1)
516string defaultNamingContext = (string)rootDSE.Properties["defaultNamingContext"][0]!;
System\DirectoryServices\DirectorySearcher.cs (1)
350string defaultNamingContext = (string)rootDSE.Properties["defaultNamingContext"][0]!;
System.DirectoryServices.AccountManagement (207)
System\DirectoryServices\AccountManagement\AD\ADAMStoreCtx.cs (8)
69if (de.Properties["msDS-UserAccountDisabled"].Count > 0) 71Debug.Assert(de.Properties["msDS-UserAccountDisabled"].Count == 1); 73acctDisabled = (bool)de.Properties["msDS-UserAccountDisabled"][0]; 115string ctxBaseDN = (string)this.ctxBase.Properties["distinguishedName"][0]; 117foreach (string partitionDN in rootDse.Properties["namingContexts"]) 171string principalDN = (string)principalDE.Properties["distinguishedName"].Value; 269if (deRoot.Properties["schemaNamingContext"].Count == 0) 275SchemaNamingContext = (string)deRoot.Properties["schemaNamingContext"].Value;
System\DirectoryServices\AccountManagement\AD\ADDNConstraintLinkedAttrSet.cs (2)
98dn = ((DirectoryEntry)this.current).Properties["distinguishedName"].Value.ToString(); 116resultPropCollection = new dSPropertyCollection(((DirectoryEntry)this.current).Properties);
System\DirectoryServices\AccountManagement\AD\ADDNLinkedAttrSet.cs (12)
493if (!_usersVisited.ContainsKey(memberDE.Properties["distinguishedName"][0].ToString())) 498_usersVisited.Add(memberDE.Properties["distinguishedName"][0].ToString(), true); 511if (!_usersVisited.ContainsKey(memberDE.Properties["distinguishedName"][0].ToString())) 516_usersVisited.Add(memberDE.Properties["distinguishedName"][0].ToString(), true); 592if (de.Properties["objectSid"].Count == 0) 597byte[] sid = (byte[])de.Properties["objectSid"].Value; 655foreignPrincipal = _storeCtx.ConstructFakePrincipalFromSID((byte[])_fakePrincipalMembers[0].Properties["objectSid"].Value); 757string groupDN = (string)((DirectoryEntry)foreignPrincipal.UnderlyingObject).Properties["distinguishedName"].Value; 786if (!_usersVisited.ContainsKey(foreignDE.Properties["distinguishedName"][0].ToString())) 788_usersVisited.Add(foreignDE.Properties["distinguishedName"][0].ToString(), true); 830string groupDN = (string)((DirectoryEntry)foreignGroup.UnderlyingObject).Properties["distinguishedName"].Value; 865string groupDN = (string)((DirectoryEntry)foreignGroup.UnderlyingObject).Properties["distinguishedName"].Value;
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (43)
305if (schemaDE.Properties["possibleInferiors"].Count == 0) 496if (!de.Properties.Contains("nTSecurityDescriptor")) 612if (de.Properties["userAccountControl"].Count > 0) 614Debug.Assert(de.Properties["userAccountControl"].Count == 1); 616uacValue = (int)de.Properties["userAccountControl"][0]; 776((DirectoryEntry)p.GetUnderlyingObject()).Properties[baseObjectRdnPrefix].Value = (string)p.GetValueForProperty(PropertyNames.PrincipalName); 805de.Properties["userAccountControl"].Value = SDSUtils.AD_DefaultUAC_Machine; 809de.Properties["userAccountControl"].Value = SDSUtils.AD_DefaultUAC; 834if (de.Properties["msDS-User-Account-Control-Computed"].Count > 0) 837Debug.Assert(de.Properties["msDS-User-Account-Control-Computed"].Count == 1); 838int uacComputed = (int)de.Properties["msDS-User-Account-Control-Computed"][0]; 851if (de.Properties["lockoutTime"].Count > 0) 853ulong lockoutTime = (ulong)ADUtils.LargeIntToInt64((UnsafeNativeMethods.IADsLargeInteger)de.Properties["lockoutTime"][0]); 1299string principalDN = (string)principalDE.Properties["distinguishedName"].Value; 1305if ((principalDE.Properties["primaryGroupID"].Count > 0) && 1306(principalDE.Properties["objectSid"].Count > 0)) 1308Debug.Assert(principalDE.Properties["primaryGroupID"].Count == 1); 1309Debug.Assert(principalDE.Properties["objectSid"].Count == 1); 1311int primaryGroupID = (int)principalDE.Properties["primaryGroupID"].Value; 1312byte[] principalSid = (byte[])principalDE.Properties["objectSid"].Value; 1504resultSet = new ADDNConstraintLinkedAttrSet(ADDNConstraintLinkedAttrSet.ConstraintType.ContainerStringMatch, this.ctxBase.Properties["distinguishedName"].Value, principalDN, new IEnumerable[] { memberOf }, primaryGroupDN, null, false, this); 1610string principalDN = (string)principalDE.Properties["distinguishedName"].Value; 1647if (groupDE.Properties["objectSid"].Count > 0) 1649Debug.Assert(groupDE.Properties["objectSid"].Count == 1); 1650byte[] groupSid = (byte[])groupDE.Properties["objectSid"][0]; 1656string groupDN = (string)groupDE.Properties["distinguishedName"].Value; 1759string principalDN = (string)principalDE.Properties["distinguishedName"].Value; 1890if (groupDE.Properties["objectSid"].Count > 0) 1892Debug.Assert(groupDE.Properties["objectSid"].Count == 1); 1893byte[] groupSid = (byte[])groupDE.Properties["objectSid"][0]; 1988if ((groupDE.Properties["objectSid"].Count > 0) && 1989(memberDE.Properties["primaryGroupID"].Count > 0)) 1991Debug.Assert(groupDE.Properties["objectSid"].Count == 1); 1992Debug.Assert(memberDE.Properties["primaryGroupID"].Count == 1); 1994byte[] groupSid = (byte[])groupDE.Properties["objectSid"][0]; 1995int primaryGroupID = (int)memberDE.Properties["primaryGroupID"][0]; 2058if (fpoDE.Properties["objectSid"].Count == 0) 2064Debug.Assert(fpoDE.Properties["objectSid"].Count == 1); 2066byte[] sid = (byte[])fpoDE.Properties["objectSid"].Value; 2441this.defaultNamingContext = (string)rootDse.Properties["defaultNamingContext"][0]; 2524if (domainNC.Properties["lockoutDuration"].Count > 0) 2526Debug.Assert(domainNC.Properties["lockoutDuration"].Count == 1); 2527long negativeLockoutDuration = ADUtils.LargeIntToInt64((UnsafeNativeMethods.IADsLargeInteger)domainNC.Properties["lockoutDuration"][0]);
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (30)
162de.Properties[baseObjectRdnPrefix].Value = rdnValue; 246distinguishedName = (string)de.Properties["distinguishedName"].Value; 365props = new dSPropertyCollection(de.Properties); 420entry.ldapToPapiConverter(new dSPropertyCollection(de.Properties), entry.suggestedADPropertyName, p, entry.propertyName); 1078if (!de.Properties.Contains("nTSecurityDescriptor")) 1178de.Properties[suggestedAdProperty].Value = value; 1191de.Properties[suggestedAdProperty].Value = value; 1193de.Properties[suggestedAdProperty].Value = null; 1209de.Properties[suggestedAdProperty].Value = (bool)value; 1211de.Properties[suggestedAdProperty].Value = null; 1224de.Properties[suggestedAdProperty].Value = !(bool)value; 1226de.Properties[suggestedAdProperty].Value = null; 1253de.Properties[suggestedAdProperty].Value = s; 1263de.Properties[suggestedAdProperty].Value = null; 1276de.Properties[suggestedAdProperty].Value = null; // remove the old 1277de.Properties[suggestedAdProperty].Value = rawCerts; // and put in the new 1315de.Properties[suggestedAdProperty].Value = largeInt; 1380de.Properties[kvp.Key].Value = propertyValueList.ToArray(); 1392de.Properties[kvp.Key].Value = kvp.Value.Value[0]; 1407if (de.Properties[suggestedAdProperty].Count > 0) 1409Debug.Assert(de.Properties[suggestedAdProperty].Count == 1); 1411groupTypeCombined = (int)de.Properties[suggestedAdProperty][0]; 1471de.Properties[suggestedAdProperty].Value = groupTypeCombined; 1503copyOfDe.Properties["member"].Clear(); 1561groupDe.Properties["member"].Add(member.DistinguishedName); 1574groupDe.Properties["member"].Add(memberSidDN); 1605groupDe.Properties["member"].Remove(member.DistinguishedName); 1620groupDe.Properties["member"].Remove(memberSidDN); 1663if (!de.Properties.Contains("objectSid")) 1666byte[] sid = (byte[])de.Properties["objectSid"].Value;
System\DirectoryServices\AccountManagement\AD\ADUtils.cs (2)
24return de.Properties["objectClass"].Contains(classToCompare); 504PropertyValueCollection wellKnownObjectValues = deBase.Properties["wellKnownObjects"];
System\DirectoryServices\AccountManagement\AD\RangeRetriever.cs (1)
185PropertyValueCollection pvc = _de.Properties[_propertyName];
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (10)
418copyOfDe.Properties[attribute].Value = value; 460copyOfDe.Properties[attribute].Value = value; 608PropertyValueCollection properties = de.Properties[suggestedProperty]; 659if (de.Properties[suggestedProperty].Count > 0) 661Debug.Assert(de.Properties[suggestedProperty].Count == 1); 663uacValue = (int)de.Properties[suggestedProperty][0]; 667if (!isSAM && de.Properties["msDS-User-Account-Control-Computed"].Count > 0) 669Debug.Assert(de.Properties["msDS-User-Account-Control-Computed"].Count == 1); 670uacValue |= (int)de.Properties["msDS-User-Account-Control-Computed"][0]; 764de.Properties[suggestedProperty].Value = uacValue;
System\DirectoryServices\AccountManagement\AD\TokenGroupsSet.cs (1)
87_tokenGroupsEnum = _current.Properties[_attributeToQuery].GetEnumerator();
System\DirectoryServices\AccountManagement\Context.cs (2)
813string domainNC = (string)deRootDse.Properties["defaultNamingContext"][0]; 846PropertyValueCollection wellKnownObjectValues = deBase.Properties["wellKnownObjects"];
System\DirectoryServices\AccountManagement\Principal.cs (2)
644int valCount = de.Properties[attribute].Count; 651de.Properties[attribute].CopyTo(objectArray, 0);
System\DirectoryServices\AccountManagement\SAM\SAMQuerySet.cs (55)
252if (de.Properties["objectSid"] == null || de.Properties["objectSid"].Count == 0) 352if (!de.Properties.Contains(winNTPropertyName) || 353(de.Properties[winNTPropertyName].Count == 0) || 354(de.Properties[winNTPropertyName].Value == null)) 361if (de.Properties.Contains(winNTPropertyName) && (de.Properties[winNTPropertyName].Value != null)) 367PropertyValueCollection values = de.Properties["PasswordAge"]; 386value = (DateTime)de.Properties[winNTPropertyName].Value; 414if (!de.Properties.Contains(winNTPropertyName) || 415(de.Properties[winNTPropertyName].Count == 0) || 416(((string)de.Properties[winNTPropertyName].Value).Length == 0)) 421if (de.Properties.Contains(winNTPropertyName)) 423string value = (string)de.Properties[winNTPropertyName].Value; 442if (!de.Properties.Contains(winNTPropertyName) || 443(de.Properties[winNTPropertyName].Count == 0) || 444(de.Properties[winNTPropertyName].Value == null)) 449if (de.Properties.Contains(winNTPropertyName)) 451int value = (int)de.Properties[winNTPropertyName].Value; 482if (de.Properties["Name"].Count > 0 && de.Properties["Name"].Value != null) 484return WildcardStringMatch(filter, samAccountName, (string)de.Properties["Name"].Value); 503if (de.Properties["objectSid"].Count > 0 && de.Properties["objectSid"].Value != null) 505return Utils.AreBytesEqual(sidToMatch, (byte[])de.Properties["objectSid"].Value); 518if (!de.Properties.Contains(winNTPropertyName) || de.Properties[winNTPropertyName].Count == 0) 521int value = (int)de.Properties[winNTPropertyName].Value; 572if (!de.Properties.Contains(winNTPropertyName) || 573(de.Properties[winNTPropertyName].Count == 0) || 574(((string)de.Properties[winNTPropertyName].Value).Length == 0)) 579if (de.Properties.Contains(winNTPropertyName) && (de.Properties[winNTPropertyName].Count != 0)) 581foreach (string value in de.Properties[winNTPropertyName]) 600if (!de.Properties.Contains(winNTPropertyName) || 601(de.Properties[winNTPropertyName].Count == 0) || 602(de.Properties[winNTPropertyName].Value == null)) 607if (de.Properties.Contains(winNTPropertyName)) 609byte[] value = (byte[])de.Properties[winNTPropertyName].Value; 628if (!de.Properties.Contains(winNTPropertyName) || 629(de.Properties[winNTPropertyName].Count == 0) || 630(de.Properties[winNTPropertyName].Value == null)) 635if (de.Properties.Contains(winNTPropertyName) && (de.Properties[winNTPropertyName].Value != null)) 637DateTime value = (DateTime)de.Properties[winNTPropertyName].Value; 692if (de.Properties["objectSid"] == null || de.Properties["objectSid"].Count == 0) 717PropertyValueCollection values = de.Properties["LastLogin"]; 733PropertyValueCollection values = de.Properties["AccountExpirationDate"]; 749PropertyValueCollection values = de.Properties["PasswordAge"]; 821if (groupDE.Properties["objectSid"] == null || groupDE.Properties["objectSid"].Count == 0) 838if (memberDE.Properties["objectSid"] == null || memberDE.Properties["objectSid"].Count == 0) 844byte[] memberSid = (byte[])memberDE.Properties["objectSid"].Value;
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (12)
246Debug.Assert((de.Properties["objectSid"] != null) && (de.Properties["objectSid"].Count == 1)); 250(byte[])de.Properties["objectSid"].Value 257GlobalDebug.WriteLineIf(GlobalDebug.Info, "SAMStoreCtx", "Insert: new SID is ", Utils.ByteArrayToString((byte[])de.Properties["objectSid"].Value)); 323PropertyValueCollection values = ((DirectoryEntry)p.GetUnderlyingObject()).Properties["UserFlags"]; 379de.Properties["userFlags"].Value = SDSUtils.SAM_DefaultUAC; 816if (foreignDE.Properties["objectSid"].Count == 0) 822Debug.Assert(foreignDE.Properties["objectSid"].Count == 1); 824byte[] sid = (byte[])foreignDE.Properties["objectSid"].Value; 1033if (_ctxBase.Properties["Name"].Count > 0) 1035Debug.Assert(_ctxBase.Properties["Name"].Count == 1); 1037_machineUserSuppliedName = (string)_ctxBase.Properties["Name"].Value;
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_LoadStore.cs (24)
215Debug.Assert((de.Properties["objectSid"] != null) && (de.Properties["objectSid"].Count == 1)); 217SAMStoreKey key = new SAMStoreKey(this.MachineFlatName, (byte[])de.Properties["objectSid"].Value); 286ICollection samAttributes = de.Properties.PropertyNames; 574if (de.Properties["objectSid"] == null || de.Properties["objectSid"].Count == 0) 770PropertyValueCollection values = de.Properties[suggestedWinNTProperty]; 777SDSUtils.SingleScalarFromDirectoryEntry<string>(new dSPropertyCollection(de.Properties), suggestedWinNTProperty, p, propertyName); 782byte[] sid = (byte[])de.Properties["objectSid"][0]; 791Debug.Assert(de.Properties["Name"].Count == 1); 793string samAccountName = (string)de.Properties["Name"][0]; 803SDSUtils.MultiScalarFromDirectoryEntry<string>(new dSPropertyCollection(de.Properties), suggestedWinNTProperty, p, propertyName); 808SDSUtils.SingleScalarFromDirectoryEntry<int>(new dSPropertyCollection(de.Properties), suggestedWinNTProperty, p, propertyName); 813SDSUtils.SingleScalarFromDirectoryEntry<byte[]>(new dSPropertyCollection(de.Properties), suggestedWinNTProperty, p, propertyName); 835PropertyValueCollection values = de.Properties[suggestedWinNTProperty]; 857PropertyValueCollection values = de.Properties[suggestedWinNTProperty]; 875PropertyValueCollection values = de.Properties[suggestedWinNTProperty]; 893SDSUtils.AccountControlFromDirectoryEntry(new dSPropertyCollection(de.Properties), suggestedWinNTProperty, p, propertyName, true); 916de.Properties[suggestedWinNTProperty].Value = value; 918de.Properties[suggestedWinNTProperty].Value = ""; 937de.Properties[suggestedWinNTProperty].Value = value; 947de.Properties[suggestedWinNTProperty].Value = allHours; 994de.Properties[suggestedWinNTProperty].Value = (DateTime)value; 996de.Properties[suggestedWinNTProperty].Value = new DateTime(1970, 1, 1);
System\DirectoryServices\AccountManagement\SAM\SAMUtils.cs (3)
34if (computerDE.Properties["OperatingSystemVersion"].Count > 0) 36Debug.Assert(computerDE.Properties["OperatingSystemVersion"].Count == 1); 38version = (string)computerDE.Properties["OperatingSystemVersion"].Value;