120 references to LdapOption
System.DirectoryServices.Protocols (120)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (28)
114
public static partial int ldap_get_option_bool(global::System.DirectoryServices.Protocols.ConnectionHandle ldapHandle, global::System.DirectoryServices.Protocols.
LdapOption
option, ref bool outValue)
144
static extern unsafe int __PInvoke(nint __ldapHandle_native, global::System.DirectoryServices.Protocols.
LdapOption
__option_native, int* __outValue_native);
155
public static unsafe partial int ldap_get_option_secInfo(global::System.DirectoryServices.Protocols.ConnectionHandle ldapHandle, global::System.DirectoryServices.Protocols.
LdapOption
option, void* outValue)
181
static extern unsafe int __PInvoke(nint __ldapHandle_native, global::System.DirectoryServices.Protocols.
LdapOption
__option_native, void* __outValue_native);
192
public static partial int ldap_get_option_sechandle(global::System.DirectoryServices.Protocols.ConnectionHandle ldapHandle, global::System.DirectoryServices.Protocols.
LdapOption
option, ref global::System.DirectoryServices.Protocols.SecurityHandle outValue)
220
static extern unsafe int __PInvoke(nint __ldapHandle_native, global::System.DirectoryServices.Protocols.
LdapOption
__option_native, global::System.DirectoryServices.Protocols.SecurityHandle* __outValue_native);
231
private static partial int ldap_get_option_int(nint ldapHandle, global::System.DirectoryServices.Protocols.
LdapOption
option, ref int outValue)
244
static extern unsafe int __PInvoke(nint __ldapHandle_native, global::System.DirectoryServices.Protocols.
LdapOption
__option_native, int* __outValue_native);
255
public static partial int ldap_get_option_int(global::System.DirectoryServices.Protocols.ConnectionHandle ldapHandle, global::System.DirectoryServices.Protocols.
LdapOption
option, ref int outValue)
283
static extern unsafe int __PInvoke(nint __ldapHandle_native, global::System.DirectoryServices.Protocols.
LdapOption
__option_native, int* __outValue_native);
294
public static partial int ldap_get_option_ptr(global::System.DirectoryServices.Protocols.ConnectionHandle ldapHandle, global::System.DirectoryServices.Protocols.
LdapOption
option, ref nint outValue)
322
static extern unsafe int __PInvoke(nint __ldapHandle_native, global::System.DirectoryServices.Protocols.
LdapOption
__option_native, nint* __outValue_native);
508
public static partial int ldap_set_option_bool(global::System.DirectoryServices.Protocols.ConnectionHandle ld, global::System.DirectoryServices.Protocols.
LdapOption
option, bool value)
540
static extern unsafe int __PInvoke(nint __ld_native, global::System.DirectoryServices.Protocols.
LdapOption
__option_native, int __value_native);
551
public static partial int ldap_set_option_clientcert(global::System.DirectoryServices.Protocols.ConnectionHandle ldapHandle, global::System.DirectoryServices.Protocols.
LdapOption
option, global::System.DirectoryServices.Protocols.QUERYCLIENTCERT outValue)
581
static extern unsafe int __PInvoke(nint __ldapHandle_native, global::System.DirectoryServices.Protocols.
LdapOption
__option_native, nint __outValue_native);
592
public static partial int ldap_set_option_servercert(global::System.DirectoryServices.Protocols.ConnectionHandle ldapHandle, global::System.DirectoryServices.Protocols.
LdapOption
option, global::System.DirectoryServices.Protocols.VERIFYSERVERCERT outValue)
622
static extern unsafe int __PInvoke(nint __ldapHandle_native, global::System.DirectoryServices.Protocols.
LdapOption
__option_native, nint __outValue_native);
633
public static partial int ldap_set_option_int(global::System.DirectoryServices.Protocols.ConnectionHandle ld, global::System.DirectoryServices.Protocols.
LdapOption
option, ref int inValue)
665
static extern unsafe int __PInvoke(nint __ld_native, global::System.DirectoryServices.Protocols.
LdapOption
__option_native, int* __inValue_native);
676
public static partial int ldap_set_option_ptr(global::System.DirectoryServices.Protocols.ConnectionHandle ldapHandle, global::System.DirectoryServices.Protocols.
LdapOption
option, ref nint inValue)
704
static extern unsafe int __PInvoke(nint __ldapHandle_native, global::System.DirectoryServices.Protocols.
LdapOption
__option_native, nint* __inValue_native);
715
public static partial int ldap_set_option_string(global::System.DirectoryServices.Protocols.ConnectionHandle ldapHandle, global::System.DirectoryServices.Protocols.
LdapOption
option, string inValue)
746
static extern unsafe int __PInvoke(nint __ldapHandle_native, global::System.DirectoryServices.Protocols.
LdapOption
__option_native, byte* __inValue_native);
757
public static partial int ldap_set_option_referral(global::System.DirectoryServices.Protocols.ConnectionHandle ldapHandle, global::System.DirectoryServices.Protocols.
LdapOption
option, ref global::System.DirectoryServices.Protocols.LdapReferralCallback outValue)
794
static extern unsafe int __PInvoke(nint __ldapHandle_native, global::System.DirectoryServices.Protocols.
LdapOption
__option_native, global::System.DirectoryServices.Protocols.LdapReferralCallback.Marshaller.MarshalValue.Native* __outValue_native);
805
public static partial int ldap_set_option_timeval(global::System.DirectoryServices.Protocols.ConnectionHandle ldapHandle, global::System.DirectoryServices.Protocols.
LdapOption
option, ref global::System.DirectoryServices.Protocols.LDAP_TIMEVAL inValue)
833
static extern unsafe int __PInvoke(nint __ldapHandle_native, global::System.DirectoryServices.Protocols.
LdapOption
__option_native, global::System.DirectoryServices.Protocols.LDAP_TIMEVAL* __inValue_native);
src\runtime\src\libraries\Common\src\Interop\Unix\OpenLdap\Interop.Ldap.cs (15)
102
ldap_get_option_int(IntPtr.Zero,
LdapOption
.LDAP_OPT_DEBUG_LEVEL, ref unused);
115
public static partial int ldap_get_option_bool(ConnectionHandle ldapHandle,
LdapOption
option, [MarshalAs(UnmanagedType.Bool)] ref bool outValue);
118
public static unsafe partial int ldap_get_option_secInfo(ConnectionHandle ldapHandle,
LdapOption
option, void* outValue);
121
public static partial int ldap_get_option_sechandle(ConnectionHandle ldapHandle,
LdapOption
option, ref SecurityHandle outValue);
124
private static partial int ldap_get_option_int(IntPtr ldapHandle,
LdapOption
option, ref int outValue);
127
public static partial int ldap_get_option_int(ConnectionHandle ldapHandle,
LdapOption
option, ref int outValue);
130
public static partial int ldap_get_option_ptr(ConnectionHandle ldapHandle,
LdapOption
option, ref IntPtr outValue);
156
public static partial int ldap_set_option_bool(ConnectionHandle ld,
LdapOption
option, [MarshalAs(UnmanagedType.Bool)] bool value);
159
public static partial int ldap_set_option_clientcert(ConnectionHandle ldapHandle,
LdapOption
option, QUERYCLIENTCERT outValue);
162
public static partial int ldap_set_option_servercert(ConnectionHandle ldapHandle,
LdapOption
option, VERIFYSERVERCERT outValue);
165
public static partial int ldap_set_option_int(ConnectionHandle ld,
LdapOption
option, ref int inValue);
168
public static partial int ldap_set_option_ptr(ConnectionHandle ldapHandle,
LdapOption
option, ref IntPtr inValue);
171
public static partial int ldap_set_option_string(ConnectionHandle ldapHandle,
LdapOption
option, [MarshalAs(UnmanagedType.LPUTF8Str)] string inValue);
174
public static partial int ldap_set_option_referral(ConnectionHandle ldapHandle,
LdapOption
option, ref LdapReferralCallback outValue);
177
public static partial int ldap_set_option_timeval(ConnectionHandle ldapHandle,
LdapOption
option, ref LDAP_TIMEVAL inValue);
System\DirectoryServices\Protocols\Interop\LdapPal.Unix.cs (14)
38
Interop.Ldap.ldap_get_option_int(ldapHandle,
LdapOption
.LDAP_OPT_ERROR_NUMBER, ref result);
42
internal static int GetBoolOption(ConnectionHandle ldapHandle,
LdapOption
option, ref bool outValue) => Interop.Ldap.ldap_get_option_bool(ldapHandle, option, ref outValue);
44
internal static int GetIntOption(ConnectionHandle ldapHandle,
LdapOption
option, ref int outValue) => Interop.Ldap.ldap_get_option_int(ldapHandle, option, ref outValue);
46
internal static int GetPtrOption(ConnectionHandle ldapHandle,
LdapOption
option, ref IntPtr outValue) => Interop.Ldap.ldap_get_option_ptr(ldapHandle, option, ref outValue);
48
internal static int GetSecurityHandleOption(ConnectionHandle ldapHandle,
LdapOption
option, ref SecurityHandle outValue) => Interop.Ldap.ldap_get_option_sechandle(ldapHandle, option, ref outValue);
51
internal static unsafe int GetSecInfoOption(ConnectionHandle ldapHandle,
LdapOption
option, SecurityPackageContextConnectionInformation outValue)
101
internal static int SetBoolOption(ConnectionHandle ld,
LdapOption
option, bool value) => Interop.Ldap.ldap_set_option_bool(ld, option, value);
104
internal static int SetClientCertOption(ConnectionHandle ldapHandle,
LdapOption
option, QUERYCLIENTCERT outValue) => Interop.Ldap.ldap_set_option_clientcert(ldapHandle, option, outValue);
106
internal static int SetIntOption(ConnectionHandle ld,
LdapOption
option, ref int inValue) => Interop.Ldap.ldap_set_option_int(ld, option, ref inValue);
108
internal static int SetPtrOption(ConnectionHandle ldapHandle,
LdapOption
option, ref IntPtr inValue) => Interop.Ldap.ldap_set_option_ptr(ldapHandle, option, ref inValue);
110
internal static int SetStringOption(ConnectionHandle ldapHandle,
LdapOption
option, string inValue) => Interop.Ldap.ldap_set_option_string(ldapHandle, option, inValue);
112
internal static int SetReferralOption(ConnectionHandle ldapHandle,
LdapOption
option, ref LdapReferralCallback outValue) => Interop.Ldap.ldap_set_option_referral(ldapHandle, option, ref outValue);
114
internal static int SetTimevalOption(ConnectionHandle ldapHandle,
LdapOption
option, ref LDAP_TIMEVAL inValue) => Interop.Ldap.ldap_set_option_timeval(ldapHandle, option, ref inValue);
117
internal static int SetServerCertOption(ConnectionHandle ldapHandle,
LdapOption
option, VERIFYSERVERCERT outValue) => Interop.Ldap.ldap_set_option_servercert(ldapHandle, option, outValue);
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (1)
946
int certError = LdapPal.SetClientCertOption(_ldapHandle,
LdapOption
.LDAP_OPT_CLIENT_CERTIFICATE, _clientCertificateRoutine);
System\DirectoryServices\Protocols\ldap\LdapConnection.Unix.cs (5)
79
int result = LdapPal.SetStringOption(_ldapHandle,
LdapOption
.LDAP_OPT_URI, uris);
89
int timeoutResult = LdapPal.SetTimevalOption(_ldapHandle,
LdapOption
.LDAP_OPT_NETWORK_TIMEOUT, ref timeout);
159
int error = Interop.Ldap.ldap_get_option_ptr(_ldapHandle,
LdapOption
.LDAP_OPT_X_SASL_REALM, ref outValue);
164
error = Interop.Ldap.ldap_get_option_ptr(_ldapHandle,
LdapOption
.LDAP_OPT_X_SASL_AUTHCID, ref outValue);
169
error = Interop.Ldap.ldap_get_option_ptr(_ldapHandle,
LdapOption
.LDAP_OPT_X_SASL_AUTHZID, ref outValue);
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.cs (48)
163
get => GetIntValueHelper(
LdapOption
.LDAP_OPT_REFERRAL_HOP_LIMIT);
171
SetIntValueHelper(
LdapOption
.LDAP_OPT_REFERRAL_HOP_LIMIT, value);
177
get => GetStringValueHelper(
LdapOption
.LDAP_OPT_HOST_NAME, false);
178
set => SetStringValueHelper(
LdapOption
.LDAP_OPT_HOST_NAME, value);
183
get => GetStringValueHelper(
LdapOption
.LDAP_OPT_DNSDOMAIN_NAME, true);
184
set => SetStringValueHelper(
LdapOption
.LDAP_OPT_DNSDOMAIN_NAME, value);
191
int result = GetIntValueHelper(
LdapOption
.LDAP_OPT_GETDSNAME_FLAGS);
198
SetIntValueHelper(
LdapOption
.LDAP_OPT_GETDSNAME_FLAGS, (int)value);
206
int outValue = GetIntValueHelper(
LdapOption
.LDAP_OPT_HOST_REACHABLE);
215
int result = GetIntValueHelper(
LdapOption
.LDAP_OPT_PING_KEEP_ALIVE);
232
SetIntValueHelper(
LdapOption
.LDAP_OPT_PING_KEEP_ALIVE, seconds);
238
get => GetIntValueHelper(
LdapOption
.LDAP_OPT_PING_LIMIT);
246
SetIntValueHelper(
LdapOption
.LDAP_OPT_PING_LIMIT, value);
254
int result = GetIntValueHelper(
LdapOption
.LDAP_OPT_PING_WAIT_TIME);
271
SetIntValueHelper(
LdapOption
.LDAP_OPT_PING_WAIT_TIME, milliseconds);
279
int outValue = GetIntValueHelper(
LdapOption
.LDAP_OPT_AUTO_RECONNECT);
285
SetIntValueHelper(
LdapOption
.LDAP_OPT_AUTO_RECONNECT, temp);
291
get => GetIntValueHelper(
LdapOption
.LDAP_OPT_SSPI_FLAGS);
292
set => SetIntValueHelper(
LdapOption
.LDAP_OPT_SSPI_FLAGS, value);
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);
334
int outValue = GetIntValueHelper(
LdapOption
.LDAP_OPT_SIGN);
340
SetIntValueHelper(
LdapOption
.LDAP_OPT_SIGN, temp);
348
int outValue = GetIntValueHelper(
LdapOption
.LDAP_OPT_ENCRYPT);
354
SetIntValueHelper(
LdapOption
.LDAP_OPT_ENCRYPT, temp);
360
get => GetStringValueHelper(
LdapOption
.LDAP_OPT_SASL_METHOD, true);
361
set => SetStringValueHelper(
LdapOption
.LDAP_OPT_SASL_METHOD, value);
368
int outValue = GetIntValueHelper(
LdapOption
.LDAP_OPT_ROOTDSE_CACHE);
374
SetIntValueHelper(
LdapOption
.LDAP_OPT_ROOTDSE_CACHE, temp);
382
int outValue = GetIntValueHelper(
LdapOption
.LDAP_OPT_TCP_KEEPALIVE);
388
SetIntValueHelper(
LdapOption
.LDAP_OPT_TCP_KEEPALIVE, temp);
396
int result = GetIntValueHelper(
LdapOption
.LDAP_OPT_SEND_TIMEOUT);
413
SetIntValueHelper(
LdapOption
.LDAP_OPT_SEND_TIMEOUT, seconds);
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);
527
get => (DereferenceAlias)GetIntValueHelper(
LdapOption
.LDAP_OPT_DEREF);
528
set => SetIntValueHelper(
LdapOption
.LDAP_OPT_DEREF, (int)value);
533
SetIntValueHelper(
LdapOption
.LDAP_OPT_AREC_EXCLUSIVE, 1);
549
int error = LdapPal.SetIntOption(_connection._ldapHandle,
LdapOption
.LDAP_OPT_FAST_CONCURRENT_BIND, ref inValue);
759
get => GetIntValueHelper(
LdapOption
.LDAP_OPT_VERSION);
760
set => SetIntValueHelper(
LdapOption
.LDAP_OPT_VERSION, value);
763
private int GetIntValueHelper(
LdapOption
option)
777
private void SetIntValueHelper(
LdapOption
option, int value)
790
private IntPtr GetPtrValueHelper(
LdapOption
option)
804
private void SetPtrValueHelper(
LdapOption
option, IntPtr value)
817
private string GetStringValueHelper(
LdapOption
option, bool releasePtr)
842
private void SetStringValueHelper(
LdapOption
option, string value)
878
int error = LdapPal.SetReferralOption(_connection._ldapHandle,
LdapOption
.LDAP_OPT_REFERRAL_CALLBACK, ref value);
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.Unix.cs (9)
31
get => GetStringValueHelper(
LdapOption
.LDAP_OPT_X_TLS_CACERTDIR, releasePtr: true);
44
SetStringOptionHelper(
LdapOption
.LDAP_OPT_X_TLS_CACERTDIR, value);
66
return GetBoolValueHelper(
LdapOption
.LDAP_OPT_REFERRALS) ? ReferralChasingOptions.All : ReferralChasingOptions.None;
79
SetBoolValueHelper(
LdapOption
.LDAP_OPT_REFERRALS, value == ReferralChasingOptions.All);
90
SetIntValueHelper(
LdapOption
.LDAP_OPT_X_TLS_NEWCTX, 0);
94
internal string ServerErrorMessage => GetStringValueHelper(
LdapOption
.LDAP_OPT_ERROR_STRING, true);
96
private bool GetBoolValueHelper(
LdapOption
option)
107
private void SetBoolValueHelper(
LdapOption
option, bool value)
116
private void SetStringOptionHelper(
LdapOption
option, string value)