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