1 write to directoryInfo
System.Web (1)
Security\ADMembershipProvider.cs (1)
422
directoryInfo
= new DirectoryInformation(adConnectionString, credential, connProtection, clientSearchTimeout, serverSearchTimeout, enablePasswordReset, timeoutUnit);
145 references to directoryInfo
System.Web (145)
Security\ADMembershipProvider.cs (145)
161
return
directoryInfo
.ConnectionProtection;
445
if (
directoryInfo
.DirectoryType == DirectoryType.AD)
567
if (
directoryInfo
.DirectoryType == DirectoryType.ADAM)
570
authTypeForValidation =
directoryInfo
.GetLdapAuthenticationTypes(
directoryInfo
.ConnectionProtection, CredentialsType.NonWindows);
572
if (
directoryInfo
.DirectoryType == DirectoryType.AD)
578
directoryInfo
.SelectServer();
584
directoryInfo
.InitializeDomainAndForestName();
592
connection =
directoryInfo
.CreateNewLdapConnection(authTypeForValidation);
764
DirectoryEntryHolder connection = ActiveDirectoryConnectionHelper.GetDirectoryEntry(
directoryInfo
,
directoryInfo
.CreationContainerDN, true /* revertImpersonation */);
785
if (
directoryInfo
.DirectoryType == DirectoryType.AD)
817
if (
directoryInfo
.DirectoryType == DirectoryType.AD && !IsUpnUnique(username))
896
if (
directoryInfo
.DirectoryType == DirectoryType.AD)
918
if (
directoryInfo
.DirectoryType == DirectoryType.ADAM)
929
if (
directoryInfo
.DirectoryType == DirectoryType.ADAM)
931
DirectoryEntry readersEntry = new DirectoryEntry(
directoryInfo
.GetADsPath("CN=Readers,CN=Roles," +
directoryInfo
.ADAMPartitionDN),
directoryInfo
.GetUsername(),
directoryInfo
.GetPassword(),
directoryInfo
.AuthenticationTypes);
972
else if ((errorCode == unchecked((int) 0x8000500d) && (
directoryInfo
.DirectoryType == DirectoryType.ADAM)))
1057
DirectoryEntryHolder connection = ActiveDirectoryConnectionHelper.GetDirectoryEntry(
directoryInfo
,
directoryInfo
.ContainerDN, true /* revertImpersonation */);
1074
if ((
directoryInfo
.DirectoryType == DirectoryType.AD) && (usernameIsUPN) && (username.IndexOf('@') == -1))
1078
usernameForAuthentication =
directoryInfo
.DomainName + "\\" + sAMAccountName;
1104
if ((
directoryInfo
.DirectoryType == DirectoryType.AD) && (usernameIsUPN) && (username.IndexOf('@') == -1))
1108
usernameForAuthentication =
directoryInfo
.DomainName + "\\" + sAMAccountName;
1252
DirectoryEntryHolder connection = ActiveDirectoryConnectionHelper.GetDirectoryEntry(
directoryInfo
,
directoryInfo
.ContainerDN, true /* revertImpersonation */);
1270
if ((
directoryInfo
.DirectoryType == DirectoryType.AD) && (usernameIsUPN) && (username.IndexOf('@') == -1))
1274
usernameForAuthentication =
directoryInfo
.DomainName + "\\" + sAMAccountName;
1299
if ((
directoryInfo
.DirectoryType == DirectoryType.AD) && (usernameIsUPN) && (username.IndexOf('@') == -1))
1303
usernameForAuthentication =
directoryInfo
.DomainName + "\\" + sAMAccountName;
1321
userEntry.Username = (usernameIsSAMAccountName) ?
directoryInfo
.DomainName + "\\" + usernameForAuthentication : usernameForAuthentication;
1323
userEntry.AuthenticationType =
directoryInfo
.GetAuthenticationTypes(
directoryInfo
.ConnectionProtection, (
directoryInfo
.DirectoryType == DirectoryType.AD) ? CredentialsType.Windows : CredentialsType.NonWindows);
1359
else if ((errorCode == unchecked((int) 0x8000500d) && (
directoryInfo
.DirectoryType == DirectoryType.ADAM)))
1373
userEntry.Username =
directoryInfo
.GetUsername();
1374
userEntry.Password =
directoryInfo
.GetPassword();
1375
userEntry.AuthenticationType =
directoryInfo
.AuthenticationTypes;
1426
DirectoryEntryHolder connection = ActiveDirectoryConnectionHelper.GetDirectoryEntry(
directoryInfo
,
directoryInfo
.ContainerDN, true /* revertImpersonation */);
1501
if ((errorCode == unchecked((int) 0x8000500d) && (
directoryInfo
.DirectoryType == DirectoryType.ADAM)))
1542
DirectoryEntryHolder connection = ActiveDirectoryConnectionHelper.GetDirectoryEntry(
directoryInfo
,
directoryInfo
.ContainerDN, true /* revertImpersonation */);
1639
DirectoryEntryHolder connection = ActiveDirectoryConnectionHelper.GetDirectoryEntry(
directoryInfo
,
directoryInfo
.ContainerDN, true /* revertImpersonation */);
1703
if (
directoryInfo
.DirectoryType == DirectoryType.AD)
1797
DirectoryEntryHolder connection = ActiveDirectoryConnectionHelper.GetDirectoryEntry(
directoryInfo
,
directoryInfo
.ContainerDN, true /* revertImpersonation */);
1814
if ((
directoryInfo
.DirectoryType == DirectoryType.AD) && (usernameIsUPN) && (username.IndexOf('@') == -1))
1818
usernameForAuthentication =
directoryInfo
.DomainName + "\\" + sAMAccountName;
1843
if ((
directoryInfo
.DirectoryType == DirectoryType.AD) && (usernameIsUPN) && (username.IndexOf('@') == -1))
1847
usernameForAuthentication =
directoryInfo
.DomainName + "\\" + sAMAccountName;
1915
DirectoryEntryHolder connection = ActiveDirectoryConnectionHelper.GetDirectoryEntry(
directoryInfo
,
directoryInfo
.ContainerDN, true /* revertImpersonation */);
1970
DirectoryEntryHolder connection = ActiveDirectoryConnectionHelper.GetDirectoryEntry(
directoryInfo
,
directoryInfo
.ContainerDN, true /* revertImpersonation */);
2011
DirectoryEntryHolder connection = ActiveDirectoryConnectionHelper.GetDirectoryEntry(
directoryInfo
,
directoryInfo
.ContainerDN, true /* revertImpersonation */);
2025
if (
directoryInfo
.ClientSearchTimeout != -1)
2026
searcher.ClientTimeout = DateTimeUtil.GetTimeoutFromTimeUnit(
directoryInfo
.ClientSearchTimeout,
directoryInfo
.TimeoutUnit);
2027
if (
directoryInfo
.ServerSearchTimeout != -1)
2028
searcher.ServerPageTimeLimit = DateTimeUtil.GetTimeoutFromTimeUnit(
directoryInfo
.ServerSearchTimeout,
directoryInfo
.TimeoutUnit);
2090
DirectoryEntryHolder connection = ActiveDirectoryConnectionHelper.GetDirectoryEntry(
directoryInfo
,
directoryInfo
.CreationContainerDN, true /* revertImpersonation */);
2202
DirectoryEntryHolder connection = ActiveDirectoryConnectionHelper.GetDirectoryEntry(
directoryInfo
,
directoryInfo
.ContainerDN, true /* revertImpersonation */);
2250
DirectoryEntryHolder connection = ActiveDirectoryConnectionHelper.GetDirectoryEntry(
directoryInfo
,
directoryInfo
.ContainerDN, true /* revertImpersonation */);
2281
NetworkCredential credentialForValidation = (usernameIsSAMAccountName) ? new NetworkCredential(username, password,
directoryInfo
.DomainName)
2293
if (
directoryInfo
.ConcurrentBindSupported)
2323
LdapConnection newConnection =
directoryInfo
.CreateNewLdapConnection(authTypeForValidation);
2375
if (
directoryInfo
.ClientSearchTimeout != -1)
2376
searcher.ClientTimeout = DateTimeUtil.GetTimeoutFromTimeUnit(
directoryInfo
.ClientSearchTimeout,
directoryInfo
.TimeoutUnit);
2377
if (
directoryInfo
.ServerSearchTimeout != -1)
2378
searcher.ServerPageTimeLimit = DateTimeUtil.GetTimeoutFromTimeUnit(
directoryInfo
.ServerSearchTimeout,
directoryInfo
.TimeoutUnit);
2417
if (
directoryInfo
.ClientSearchTimeout != -1)
2418
searcher.ClientTimeout = DateTimeUtil.GetTimeoutFromTimeUnit(
directoryInfo
.ClientSearchTimeout,
directoryInfo
.TimeoutUnit);
2419
if (
directoryInfo
.ServerSearchTimeout != -1)
2420
searcher.ServerPageTimeLimit = DateTimeUtil.GetTimeoutFromTimeUnit(
directoryInfo
.ServerSearchTimeout,
directoryInfo
.TimeoutUnit);
2440
if (
directoryInfo
.DirectoryType == DirectoryType.AD)
2487
if (
directoryInfo
.ClientSearchTimeout != -1)
2488
searcher.ClientTimeout = DateTimeUtil.GetTimeoutFromTimeUnit(
directoryInfo
.ClientSearchTimeout,
directoryInfo
.TimeoutUnit);
2489
if (
directoryInfo
.ServerSearchTimeout != -1)
2490
searcher.ServerPageTimeLimit = DateTimeUtil.GetTimeoutFromTimeUnit(
directoryInfo
.ServerSearchTimeout,
directoryInfo
.TimeoutUnit);
2507
if (
directoryInfo
.DirectoryType == DirectoryType.AD)
2618
DirectoryEntry rootdse = new DirectoryEntry("LDAP://" + serverName + "/RootDSE",
directoryInfo
.GetUsername(),
directoryInfo
.GetPassword(),
directoryInfo
.AuthenticationTypes);
2712
if (
directoryInfo
.DirectoryType == DirectoryType.AD)
2738
isLockedOut = (diffTime <=
directoryInfo
.ADLockoutDuration);
3011
if (
directoryInfo
.DirectoryType == DirectoryType.ADAM)
3016
if ((
directoryInfo
.ConnectionProtection == ActiveDirectoryConnectionProtection.Ssl) && (
directoryInfo
.PortSpecified))
3018
userEntry.Options.PasswordPort =
directoryInfo
.Port;
3021
else if ((
directoryInfo
.ConnectionProtection == ActiveDirectoryConnectionProtection.SignAndSeal) || (
directoryInfo
.ConnectionProtection == ActiveDirectoryConnectionProtection.None))
3023
userEntry.Options.PasswordPort =
directoryInfo
.Port;
3038
if (!((
directoryInfo
.Port == DirectoryInformation.SSL_PORT) &&
3039
(
directoryInfo
.ConnectionProtection == ActiveDirectoryConnectionProtection.Ssl)))
3057
DirectoryEntry rootEntry = new DirectoryEntry("GC://" +
directoryInfo
.ForestName,
directoryInfo
.GetUsername(),
directoryInfo
.GetPassword(),
directoryInfo
.AuthenticationTypes);
3063
if (
directoryInfo
.ClientSearchTimeout != -1)
3064
searcher.ClientTimeout = DateTimeUtil.GetTimeoutFromTimeUnit(
directoryInfo
.ClientSearchTimeout,
directoryInfo
.TimeoutUnit);
3065
if (
directoryInfo
.ServerSearchTimeout != -1)
3066
searcher.ServerPageTimeLimit = DateTimeUtil.GetTimeoutFromTimeUnit(
directoryInfo
.ServerSearchTimeout,
directoryInfo
.TimeoutUnit);
3092
containerEntry = new DirectoryEntry(
directoryInfo
.GetADsPath(
directoryInfo
.ContainerDN),
directoryInfo
.GetUsername(),
directoryInfo
.GetPassword(),
directoryInfo
.AuthenticationTypes);
3103
if (
directoryInfo
.ClientSearchTimeout != -1)
3104
searcher.ClientTimeout = DateTimeUtil.GetTimeoutFromTimeUnit(
directoryInfo
.ClientSearchTimeout,
directoryInfo
.TimeoutUnit);
3105
if (
directoryInfo
.ServerSearchTimeout != -1)
3106
searcher.ServerPageTimeLimit = DateTimeUtil.GetTimeoutFromTimeUnit(
directoryInfo
.ServerSearchTimeout,
directoryInfo
.TimeoutUnit);
3164
if (
directoryInfo
.DirectoryType == DirectoryType.AD)
3204
DirectoryEntry propertyEntry = new DirectoryEntry(
directoryInfo
.GetADsPath("schema") + "/" + attributeName,
directoryInfo
.GetUsername(),
directoryInfo
.GetPassword(),
directoryInfo
.AuthenticationTypes);
3268
DirectoryEntry propertyEntry = new DirectoryEntry(
directoryInfo
.GetADsPath("schema") + "/" + attributeName,
directoryInfo
.GetUsername(),
directoryInfo
.GetPassword(),
directoryInfo
.AuthenticationTypes);
3289
DirectoryEntry de = new DirectoryEntry(
directoryInfo
.GetADsPath("schema") + "/user",
directoryInfo
.GetUsername(),
directoryInfo
.GetPassword(),
directoryInfo
.AuthenticationTypes);