6 instantiations of LdapConnection
Microsoft.AspNetCore.Authentication.Negotiate (2)
PostConfigureNegotiateOptions.cs (2)
76
ldapSettings.LdapConnection = new
LdapConnection
(di);
83
ldapSettings.LdapConnection = new
LdapConnection
(di, credentials);
System.DirectoryServices.Protocols (4)
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.cs (4)
925
tempReferralConnection = new
LdapConnection
(((LdapDirectoryIdentifier)(_connection.Directory)), _connection.GetCredential(), _connection.AuthType, ReferralFromConnection);
990
tempReferralConnection = new
LdapConnection
(((LdapDirectoryIdentifier)(_connection.Directory)), _connection.GetCredential(), _connection.AuthType, referralFromConnection);
1015
tempNewConnection = new
LdapConnection
(identifier, cred, _connection.AuthType, newConnection);
1057
dereferenceConnection = new
LdapConnection
(((LdapDirectoryIdentifier)(_connection.Directory)), _connection.GetCredential(), _connection.AuthType, ConnectionToDereference);
44 references to LdapConnection
Microsoft.AspNetCore.Authentication.Negotiate (2)
Internal\LdapAdapter.cs (1)
101
private static void GetNestedGroups(
LdapConnection
connection, ClaimsIdentity principal, string distinguishedName, string groupCN, ILogger logger, IList<string> retrievedClaims, HashSet<string> processedGroups)
LdapSettings.cs (1)
57
public
LdapConnection
? LdapConnection { get; set; }
System.DirectoryServices.Protocols (42)
System\DirectoryServices\Protocols\ldap\LdapAsyncResult.cs (2)
76
internal
LdapConnection
_con;
86
public LdapPartialAsyncResult(int messageID, AsyncCallback callbackRoutine, object state, bool partialResults,
LdapConnection
con, bool partialCallback, TimeSpan requestTimeout) : base(callbackRoutine, state, partialResults)
System\DirectoryServices\Protocols\ldap\LdapPartialResultsProcessor.cs (1)
129
LdapConnection
connection = asyncResult._con;
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.cs (39)
17
public delegate
LdapConnection
QueryForConnectionCallback(
LdapConnection
primaryConnection,
LdapConnection
referralFromConnection, string newDistinguishedName, LdapDirectoryIdentifier identifier, NetworkCredential credential, long currentUserToken);
18
public delegate bool NotifyOfNewConnectionCallback(
LdapConnection
primaryConnection,
LdapConnection
referralFromConnection, string newDistinguishedName, LdapDirectoryIdentifier identifier,
LdapConnection
newConnection, NetworkCredential credential, long currentUserToken, int errorCodeFromBind);
19
public delegate void DereferenceConnectionCallback(
LdapConnection
primaryConnection,
LdapConnection
connectionToDereference);
20
public delegate X509Certificate QueryClientCertificateCallback(
LdapConnection
connection, byte[][] trustedCAs);
21
public delegate bool VerifyServerCertificateCallback(
LdapConnection
connection, X509Certificate certificate);
142
private readonly
LdapConnection
_connection;
152
internal unsafe LdapSessionOptions(
LdapConnection
connection)
573
managedServerControls =
LdapConnection
.BuildControlArray(controls, true);
590
managedClientControls =
LdapConnection
.BuildControlArray(controls, false);
902
LdapConnection
tempReferralConnection = null;
907
lock (
LdapConnection
.s_objectLock)
910
WeakReference reference = (WeakReference)(
LdapConnection
.s_handleTable[ReferralFromConnection]);
914
tempReferralConnection = (
LdapConnection
)reference.Target;
921
LdapConnection
.s_handleTable.Remove(ReferralFromConnection);
928
LdapConnection
.s_handleTable.Add(ReferralFromConnection, new WeakReference(tempReferralConnection));
935
LdapConnection
con = _callbackRoutine.QueryForConnection(_connection, tempReferralConnection, NewDN, identifier, cred, tokenValue);
966
LdapConnection
tempNewConnection = null;
967
LdapConnection
tempReferralConnection = null;
969
lock (
LdapConnection
.s_objectLock)
975
WeakReference reference = (WeakReference)(
LdapConnection
.s_handleTable[referralFromConnection]);
976
if (reference != null && reference.Target is
LdapConnection
conn && conn._ldapHandle != null)
986
LdapConnection
.s_handleTable.Remove(referralFromConnection);
993
LdapConnection
.s_handleTable.Add(referralFromConnection, new WeakReference(tempReferralConnection));
1000
WeakReference reference = (WeakReference)(
LdapConnection
.s_handleTable[newConnection]);
1001
if (reference != null && reference.IsAlive && null != ((
LdapConnection
)reference.Target)._ldapHandle)
1004
tempNewConnection = (
LdapConnection
)reference.Target;
1011
LdapConnection
.s_handleTable.Remove(newConnection);
1018
LdapConnection
.s_handleTable.Add(newConnection, new WeakReference(tempNewConnection));
1045
LdapConnection
dereferenceConnection;
1049
lock (
LdapConnection
.s_objectLock)
1051
reference = (WeakReference)(
LdapConnection
.s_handleTable[ConnectionToDereference]);
1061
dereferenceConnection = (
LdapConnection
)reference.Target;
1113
private static bool AddLdapHandleRef(
LdapConnection
ldapConnection)
1124
private static void ReleaseLdapHandleRef(
LdapConnection
ldapConnection)