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