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