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