8 instantiations of LdapConnection
System.DirectoryServices.AccountManagement (4)
System\DirectoryServices\AccountManagement\Context.cs (4)
170current = new LdapConnection(_directoryIdent); 186current = new LdapConnection(_directoryIdent); 1083ldapConnection = new LdapConnection(directoryid); 1087ldapConnection = new LdapConnection(serverName);
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);
48 references to LdapConnection
System.DirectoryServices.AccountManagement (6)
System\DirectoryServices\AccountManagement\Context.cs (6)
149LdapConnection current = null; 196current = (LdapConnection)_connCache[index]; 202current = (LdapConnection)_connCache[index]; 221private void lockedLdapBind(LdapConnection current, NetworkCredential creds, ContextOptions contextOptions) 343foreach (LdapConnection connection in _connCache.Values) 1074LdapConnection ldapConnection = null;
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)