3 writes to _ldapHandle
System.DirectoryServices.Protocols (3)
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (2)
93_ldapHandle = new ConnectionHandle(handle, _needDispose); 1172_ldapHandle = null;
System\DirectoryServices\Protocols\ldap\LdapConnection.Linux.cs (1)
23_ldapHandle = new ConnectionHandle();
76 references to _ldapHandle
System.DirectoryServices.Protocols (76)
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (39)
165if (_ldapHandle != null) 167_ldapHandle._needDispose = value; 181if (s_handleTable[_ldapHandle.DangerousGetHandle()] != null) 183s_handleTable.Remove(_ldapHandle.DangerousGetHandle()); 186s_handleTable.Add(_ldapHandle.DangerousGetHandle(), new WeakReference(this)); 254error = LdapPal.GetLastErrorFromConnection(_ldapHandle); 377error = LdapPal.GetLastErrorFromConnection(_ldapHandle); 419LdapPal.CancelDirectoryAsyncOperation(_ldapHandle, messageId); 567error = LdapPal.DeleteDirectoryEntry(_ldapHandle, ((DeleteRequest)request).DistinguishedName, serverControlArray, clientControlArray, ref messageID); 573_ldapHandle, 624_ldapHandle, 659_ldapHandle, 667_ldapHandle, 690_ldapHandle, 739_ldapHandle, 952int certError = LdapPal.SetClientCertOption(_ldapHandle, LdapOption.LDAP_OPT_CLIENT_CERTIFICATE, _clientCertificateRoutine); 1046error = LdapPal.BindToDirectory(_ldapHandle, null, null); 1058error = LdapPal.BindToDirectory(_ldapHandle, tempDomainName.ToString(), password); 1159if (_ldapHandle != null) 1161s_handleTable.Remove(_ldapHandle.DangerousGetHandle()); 1167if (_needDispose && _ldapHandle != null && !_ldapHandle.IsInvalid) 1169_ldapHandle.Dispose(); 1385error = LdapPal.GetResultFromAsyncOperation(_ldapHandle, messageId, (int)resultType, timeout, ref ldapResult); 1397error = LdapPal.GetResultFromAsyncOperation(_ldapHandle, messageId, (int)resultType, timeout, ref ldapResult); 1458resultError = LdapPal.ParseExtendedResult(_ldapHandle, ldapResult, ref requestName, ref requestValue, 0 /*not free it*/); 1501entryMessage = LdapPal.GetFirstEntryFromResult(_ldapHandle, ldapResult); 1513entryMessage = LdapPal.GetNextEntryFromResult(_ldapHandle, entryMessage); 1517IntPtr referenceMessage = LdapPal.GetFirstReferenceFromResult(_ldapHandle, ldapResult); 1527referenceMessage = LdapPal.GetNextReferenceFromResult(_ldapHandle, referenceMessage); 1593error = LdapPal.GetLastErrorFromConnection(_ldapHandle); 1599LdapPal.CancelDirectoryAsyncOperation(_ldapHandle, messageId); 1616int resultError = LdapPal.ParseResult(_ldapHandle, ldapResult, ref serverError, ref dn, ref message, ref referral, ref control, 0 /* not free it */); 1677int tmpResult = LdapPal.ResultToErrorCode(_ldapHandle, ldapResult, 0 /* not free it */); 1721dn = LdapPal.GetDistinguishedName(_ldapHandle, entryMessage); 1733attribute = LdapPal.GetFirstAttributeFromEntry(_ldapHandle, entryMessage, ref address); 1743attribute = LdapPal.GetNextAttributeFromResult(_ldapHandle, entryMessage, address); 1782IntPtr valuesArray = LdapPal.GetValuesFromAttribute(_ldapHandle, entryMessage, name); 1820int error = LdapPal.ParseReference(_ldapHandle, referenceMessage, ref referenceArray);
System\DirectoryServices\Protocols\ldap\LdapConnection.Linux.cs (7)
33Debug.Assert(!_ldapHandle.IsInvalid); 79return LdapPal.SetStringOption(_ldapHandle, LdapOption.LDAP_OPT_URI, uris); 94error = LdapPal.BindToDirectory(_ldapHandle, cred.user, cred.password); 132return Interop.Ldap.ldap_sasl_interactive_bind(_ldapHandle, null, Interop.KerberosDefaultMechanism, IntPtr.Zero, IntPtr.Zero, Interop.LDAP_SASL_QUIET, LdapPal.SaslInteractionProcedure, ptrToDefaults); 145int error = Interop.Ldap.ldap_get_option_ptr(_ldapHandle, LdapOption.LDAP_OPT_X_SASL_REALM, ref outValue); 150error = Interop.Ldap.ldap_get_option_ptr(_ldapHandle, LdapOption.LDAP_OPT_X_SASL_AUTHCID, ref outValue); 155error = Interop.Ldap.ldap_get_option_ptr(_ldapHandle, LdapOption.LDAP_OPT_X_SASL_AUTHZID, ref outValue);
System\DirectoryServices\Protocols\ldap\LdapPartialResultsProcessor.cs (1)
220LdapPal.CancelDirectoryAsyncOperation(connection._ldapHandle, asyncResult._messageID);
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.cs (26)
305int error = LdapPal.GetSecInfoOption(_connection._ldapHandle, LdapOption.LDAP_OPT_SSL_INFO, secInfo); 323int error = LdapPal.GetSecurityHandleOption(_connection._ldapHandle, LdapOption.LDAP_OPT_SECURITY_CONTEXT, ref tempHandle); 475int certError = LdapPal.SetClientCertOption(_connection._ldapHandle, LdapOption.LDAP_OPT_CLIENT_CERTIFICATE, _connection._clientCertificateRoutine); 517int error = LdapPal.SetServerCertOption(_connection._ldapHandle, LdapOption.LDAP_OPT_SERVER_CERTIFICATE, _serverCertificateRoutine); 549int error = LdapPal.SetIntOption(_connection._ldapHandle, LdapOption.LDAP_OPT_FAST_CONCURRENT_BIND, ref inValue); 605int error = LdapPal.StartTls(_connection._ldapHandle, ref serverError, ref ldapResult, serverControlArray, clientControlArray); 609int resultError = LdapPal.ParseResultReferral(_connection._ldapHandle, ldapResult, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, ref referral, IntPtr.Zero, 0 /* not free it */); 750byte result = LdapPal.StopTls(_connection._ldapHandle); 771int error = LdapPal.GetIntOption(_connection._ldapHandle, option, ref outValue); 785int error = LdapPal.SetIntOption(_connection._ldapHandle, option, ref temp); 798int error = LdapPal.GetPtrOption(_connection._ldapHandle, option, ref outValue); 812int error = LdapPal.SetPtrOption(_connection._ldapHandle, option, ref temp); 825int error = LdapPal.GetPtrOption(_connection._ldapHandle, option, ref outValue); 857int error = LdapPal.SetPtrOption(_connection._ldapHandle, option, ref inValue); 878int error = LdapPal.SetReferralOption(_connection._ldapHandle, LdapOption.LDAP_OPT_REFERRAL_CALLBACK, ref value); 936if (con != null && con._ldapHandle != null && !con._ldapHandle.IsInvalid) 941*ConnectionToUse = con._ldapHandle.DangerousGetHandle(); 976if (reference != null && reference.Target is LdapConnection conn && conn._ldapHandle != null) 1001if (reference != null && reference.IsAlive && null != ((LdapConnection)reference.Target)._ldapHandle) 1116if (ldapConnection != null && ldapConnection._ldapHandle != null && !ldapConnection._ldapHandle.IsInvalid) 1118ldapConnection._ldapHandle.DangerousAddRef(ref success); 1126if (ldapConnection != null && ldapConnection._ldapHandle != null && !ldapConnection._ldapHandle.IsInvalid) 1128ldapConnection._ldapHandle.DangerousRelease();
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.Linux.cs (3)
97int error = LdapPal.GetBoolOption(_connection._ldapHandle, option, ref outValue); 107int error = LdapPal.SetBoolOption(_connection._ldapHandle, option, value); 116int error = LdapPal.SetStringOption(_connection._ldapHandle, option, value);