1 write to _connection
System.DirectoryServices.Protocols (1)
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.cs (1)
154
_connection
= connection;
56 references to _connection
System.DirectoryServices.Protocols (56)
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.cs (48)
299
if (
_connection
._disposed)
305
int error = LdapPal.GetSecInfoOption(
_connection
._ldapHandle, LdapOption.LDAP_OPT_SSL_INFO, secInfo);
316
if (
_connection
._disposed)
323
int error = LdapPal.GetSecurityHandleOption(
_connection
._ldapHandle, LdapOption.LDAP_OPT_SECURITY_CONTEXT, ref tempHandle);
421
if (
_connection
._disposed)
430
if (
_connection
._disposed)
459
if (
_connection
._disposed)
468
if (
_connection
._disposed)
475
int certError = LdapPal.SetClientCertOption(
_connection
._ldapHandle, LdapOption.LDAP_OPT_CLIENT_CERTIFICATE,
_connection
._clientCertificateRoutine);
490
_connection
.AutoBind = false;
501
if (
_connection
._disposed)
510
if (
_connection
._disposed)
517
int error = LdapPal.SetServerCertOption(
_connection
._ldapHandle, LdapOption.LDAP_OPT_SERVER_CERTIFICATE, _serverCertificateRoutine);
538
if (
_connection
._disposed)
549
int error = LdapPal.SetIntOption(
_connection
._ldapHandle, LdapOption.LDAP_OPT_FAST_CONCURRENT_BIND, ref inValue);
565
if (
_connection
._disposed)
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 */);
745
if (
_connection
._disposed)
750
byte result = LdapPal.StopTls(
_connection
._ldapHandle);
765
if (
_connection
._disposed)
771
int error = LdapPal.GetIntOption(
_connection
._ldapHandle, option, ref outValue);
779
if (
_connection
._disposed)
785
int error = LdapPal.SetIntOption(
_connection
._ldapHandle, option, ref temp);
792
if (
_connection
._disposed)
798
int error = LdapPal.GetPtrOption(
_connection
._ldapHandle, option, ref outValue);
806
if (
_connection
._disposed)
812
int error = LdapPal.SetPtrOption(
_connection
._ldapHandle, option, ref temp);
819
if (
_connection
._disposed)
825
int error = LdapPal.GetPtrOption(
_connection
._ldapHandle, option, ref outValue);
844
if (
_connection
._disposed)
857
int error = LdapPal.SetPtrOption(
_connection
._ldapHandle, option, ref inValue);
878
int error = LdapPal.SetReferralOption(
_connection
._ldapHandle, LdapOption.LDAP_OPT_REFERRAL_CALLBACK, ref value);
925
tempReferralConnection = new LdapConnection(((LdapDirectoryIdentifier)(
_connection
.Directory)),
_connection
.GetCredential(),
_connection
.AuthType, ReferralFromConnection);
935
LdapConnection con = _callbackRoutine.QueryForConnection(
_connection
, tempReferralConnection, NewDN, identifier, cred, tokenValue);
990
tempReferralConnection = new LdapConnection(((LdapDirectoryIdentifier)(
_connection
.Directory)),
_connection
.GetCredential(),
_connection
.AuthType, referralFromConnection);
1015
tempNewConnection = new LdapConnection(identifier, cred,
_connection
.AuthType, newConnection);
1024
bool value = _callbackRoutine.NotifyNewConnection(
_connection
, tempReferralConnection, newDN, identifier, tempNewConnection, cred, tokenValue, errorCodeFromBind);
1057
dereferenceConnection = new LdapConnection(((LdapDirectoryIdentifier)(
_connection
.Directory)),
_connection
.GetCredential(),
_connection
.AuthType, ConnectionToDereference);
1065
_callbackRoutine.DereferenceConnection(
_connection
, dereferenceConnection);
1107
value = _serverCertificateDelegate(
_connection
, certificate);
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.Linux.cs (8)
48
if (
_connection
._disposed) throw new ObjectDisposedException(GetType().Name);
53
if (
_connection
._disposed) throw new ObjectDisposedException(GetType().Name);
94
if (
_connection
._disposed) throw new ObjectDisposedException(GetType().Name);
97
int error = LdapPal.GetBoolOption(
_connection
._ldapHandle, option, ref outValue);
105
if (
_connection
._disposed) throw new ObjectDisposedException(GetType().Name);
107
int error = LdapPal.SetBoolOption(
_connection
._ldapHandle, option, value);
114
if (
_connection
._disposed) throw new ObjectDisposedException(GetType().Name);
116
int error = LdapPal.SetStringOption(
_connection
._ldapHandle, option, value);