85 references to SDSUtils
System.DirectoryServices.AccountManagement (85)
System\DirectoryServices\AccountManagement\AD\ADAMStoreCtx.cs (2)
223SDSUtils.SetPassword(de, newPassword); 248SDSUtils.ChangePassword(de, oldPassword, newPassword);
System\DirectoryServices\AccountManagement\AD\ADDNLinkedAttrSet.cs (6)
214this.current = SDSUtils.BuildDirectoryEntry( 375DirectoryEntry groupDE = SDSUtils.BuildDirectoryEntry(BuildPathFromDN(groupDN), _storeCtx.Credentials, _storeCtx.AuthTypes); 380DirectorySearcher ds = SDSUtils.ConstructSearcher(groupDE); 455memberDE = SDSUtils.BuildDirectoryEntry( 555DirectoryEntry groupDE = SDSUtils.BuildDirectoryEntry( 857DirectorySearcher ds = SDSUtils.ConstructSearcher((DirectoryEntry)foreignGroup.UnderlyingObject);
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (19)
297this.authTypes = SDSUtils.MapOptionsToAuthTypes(options); 368SDSUtils.InsertPrincipal( 371new SDSUtils.GroupMembershipUpdater(UpdateGroupMembership), 413SDSUtils.DeleteDirectoryEntry((DirectoryEntry)p.UnderlyingObject); 669SDSUtils.ApplyChangesToDirectory( 672new SDSUtils.GroupMembershipUpdater(UpdateGroupMembership), 703SDSUtils.DeleteDirectoryEntry((DirectoryEntry)p.UnderlyingObject); 768SDSUtils.MoveDirectoryEntry((DirectoryEntry)p.GetUnderlyingObject(), 805de.Properties["userAccountControl"].Value = SDSUtils.AD_DefaultUAC_Machine; 809de.Properties["userAccountControl"].Value = SDSUtils.AD_DefaultUAC; 908SDSUtils.SetPassword(de, newPassword); 937SDSUtils.ChangePassword(de, oldPassword, newPassword); 979SDSUtils.WriteAttribute(de.Path, attribute, value, this.credentials, this.authTypes); 988SDSUtils.WriteAttribute<T>(de.Path, attribute, value, this.credentials, this.authTypes); 1288searchers[index] = SDSUtils.ConstructSearcher(de); 1512DirectorySearcher[] memberSearcher = { SDSUtils.ConstructSearcher(this.ctxBase) }; 1680dsMembers[0] = SDSUtils.ConstructSearcher((DirectoryEntry)g.UnderlyingObject); 1810defaultNCDirEntry = SDSUtils.BuildDirectoryEntry(path, this.credentials, this.authTypes); 2516DirectoryEntry domainNC = SDSUtils.BuildDirectoryEntry(
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (16)
260bool targetIsFromGC = SDSUtils.IsObjectFromGC(path); 273string dnsDomainName = SDSUtils.ConstructDnsDomainNameFromDn(distinguishedName); 282dcEntry = SDSUtils.BuildDirectoryEntry("LDAP://" + dnsDomainName + "/" + GetEscapedDN(distinguishedName), this.Credentials, this.authTypes); 290p = SDSUtils.DirectoryEntryToPrincipal((targetIsFromGC ? dcEntry : de), constructedContext ?? this.OwningContext, (Type)discriminant); 295p = SDSUtils.SearchResultToPrincipal(sr, constructedContext ?? this.OwningContext, (Type)discriminant); 862SDSUtils.SingleScalarFromDirectoryEntry<string>(properties, suggestedAdProperty, p, propertyName); 868SDSUtils.MultiScalarFromDirectoryEntry<string>(properties, suggestedAdProperty, p, propertyName); 873SDSUtils.SingleScalarFromDirectoryEntry<bool>(properties, suggestedAdProperty, p, propertyName); 921SDSUtils.SingleScalarFromDirectoryEntry<int>(properties, suggestedAdProperty, p, propertyName); 926SDSUtils.SingleScalarFromDirectoryEntry<byte[]>(properties, suggestedAdProperty, p, propertyName); 932SDSUtils.MultiScalarFromDirectoryEntry<byte[]>(properties, suggestedAdProperty, p, propertyName); 939SDSUtils.AccountControlFromDirectoryEntry(properties, suggestedAdProperty, p, propertyName, false); 1198SDSUtils.MultiStringToDirectoryEntryConverter(p, propertyName, de, suggestedAdProperty); 1285SDSUtils.AccountControlToDirectoryEntry(p, propertyName, de, suggestedAdProperty, false, p.unpersisted); 1497copyOfDe = SDSUtils.BuildDirectoryEntry( 1521groupDe = SDSUtils.BuildDirectoryEntry(
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (9)
47if (SDSUtils.IsOfObjectClass(sr, "computer")) 51else if (SDSUtils.IsOfObjectClass(sr, "user")) 55else if (SDSUtils.IsOfObjectClass(sr, "group")) 105if (SDSUtils.IsOfObjectClass(de, "computer")) 109else if (SDSUtils.IsOfObjectClass(de, "user")) 113else if (SDSUtils.IsOfObjectClass(de, "group")) 223SDSUtils.ApplyChangesToDirectory( 411copyOfDe = SDSUtils.BuildDirectoryEntry(dePath, credentials, authTypes); 453copyOfDe = SDSUtils.BuildDirectoryEntry(dePath, credentials, authTypes);
System\DirectoryServices\AccountManagement\AD\TokenGroupsSet.cs (2)
56DirectoryEntry currentDE = SDSUtils.BuildDirectoryEntry( 80_current = SDSUtils.BuildDirectoryEntry(
System\DirectoryServices\AccountManagement\Context.cs (3)
632AuthenticationTypes authTypes = SDSUtils.MapOptionsToAuthTypes(_options); 723AuthenticationTypes authTypes = SDSUtils.MapOptionsToAuthTypes(_options); 804AuthenticationTypes authTypes = SDSUtils.MapOptionsToAuthTypes(_options);
System\DirectoryServices\AccountManagement\SAM\SAMGroupsSet.cs (1)
61DirectoryEntry de = SDSUtils.BuildDirectoryEntry(
System\DirectoryServices\AccountManagement\SAM\SAMMembersSet.cs (2)
130DirectoryEntry de = SDSUtils.BuildDirectoryEntry( 243DirectoryEntry de = SDSUtils.BuildDirectoryEntry(
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (14)
172_authTypes = SDSUtils.MapOptionsToAuthTypes(options); 226SDSUtils.InsertPrincipal( 229new SDSUtils.GroupMembershipUpdater(UpdateGroupMembership), 277SDSUtils.ApplyChangesToDirectory( 280new SDSUtils.GroupMembershipUpdater(UpdateGroupMembership), 307SDSUtils.DeleteDirectoryEntry((DirectoryEntry)p.UnderlyingObject); 330return (SDSUtils.StatusFromAccountControl((int)values[0], PropertyNames.PwdInfoCannotChangePassword)); 379de.Properties["userFlags"].Value = SDSUtils.SAM_DefaultUAC; 432copyOfDe = SDSUtils.BuildDirectoryEntry(de.Path, _credentials, _authTypes); 473SDSUtils.SetPassword(de, newPassword); 499SDSUtils.ChangePassword(de, oldPassword, newPassword); 538SDSUtils.WriteAttribute(de.Path, attribute, value, _credentials, _authTypes); 589DirectoryEntries entries = SDSUtils.BuildDirectoryEntry(_ctxBase.Path, _credentials, _authTypes).Children; 644DirectoryEntries entries = SDSUtils.BuildDirectoryEntry(_ctxBase.Path, _credentials, _authTypes).Children;
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_LoadStore.cs (10)
145SDSUtils.SetPassword(de, password); 209Principal p = SDSUtils.DirectoryEntryToPrincipal(de, this.OwningContext, null); 565DirectoryEntry de = SDSUtils.BuildDirectoryEntry(_credentials, _authTypes); 777SDSUtils.SingleScalarFromDirectoryEntry<string>(new dSPropertyCollection(de.Properties), suggestedWinNTProperty, p, propertyName); 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); 893SDSUtils.AccountControlFromDirectoryEntry(new dSPropertyCollection(de.Properties), suggestedWinNTProperty, p, propertyName, true); 923SDSUtils.MultiStringToDirectoryEntryConverter(p, propertyName, de, suggestedWinNTProperty); 1003SDSUtils.AccountControlToDirectoryEntry(p, propertyName, de, suggestedWinNTProperty, true, p.unpersisted);
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_Query.cs (1)
87DirectoryEntries entries = SDSUtils.BuildDirectoryEntry(_ctxBase.Path, _credentials, _authTypes).Children;