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