69 references to Ldap
System.DirectoryServices.Protocols (69)
src\libraries\Common\src\Interop\Linux\OpenLdap\Interop.Ldap.cs (1)
72
Assembly currentAssembly = typeof(
Ldap
).Assembly;
System\DirectoryServices\Protocols\Interop\BerPal.Linux.cs (14)
8
internal static void FreeBervalArray(IntPtr ptrResult) => Interop.
Ldap
.ber_bvecfree(ptrResult);
10
internal static void FreeBerval(IntPtr flattenptr) => Interop.
Ldap
.ber_bvfree(flattenptr);
12
internal static void FreeBerElement(IntPtr berelement, int option) => Interop.
Ldap
.ber_free(berelement, option);
14
internal static int FlattenBerElement(SafeBerHandle berElement, ref IntPtr flattenptr) => Interop.
Ldap
.ber_flatten(berElement, ref flattenptr);
16
internal static int PrintBerArray(SafeBerHandle berElement, string format, IntPtr value, nuint tag) => Interop.
Ldap
.ber_printf_berarray(berElement, format, value, tag);
18
internal static int PrintByteArray(SafeBerHandle berElement, string format, HGlobalMemHandle value, nuint length, nuint tag) => Interop.
Ldap
.ber_printf_bytearray(berElement, format, value, length, tag);
20
internal static int PrintEmptyArgument(SafeBerHandle berElement, string format, nuint tag) => Interop.
Ldap
.ber_printf_emptyarg(berElement, format, tag);
22
internal static int PrintInt(SafeBerHandle berElement, string format, int value, nuint tag) => Interop.
Ldap
.ber_printf_int(berElement, format, value, tag);
28
return Interop.
Ldap
.ber_default_successful_return_code;
31
internal static int ScanNext(SafeBerHandle berElement, string format) => Interop.
Ldap
.ber_scanf_emptyarg(berElement, format);
33
internal static int ScanNextBitString(SafeBerHandle berElement, string format, ref IntPtr ptrResult, ref uint bitLength) => Interop.
Ldap
.ber_scanf_bitstring(berElement, format, ref ptrResult, ref bitLength);
35
internal static int ScanNextInt(SafeBerHandle berElement, string format, ref int result) => Interop.
Ldap
.ber_scanf_int(berElement, format, ref result);
37
internal static int ScanNextPtr(SafeBerHandle berElement, string format, ref IntPtr value) => Interop.
Ldap
.ber_scanf_ptr(berElement, format, ref value);
39
internal static int ScanNextMultiByteArray(SafeBerHandle berElement, string format, ref IntPtr value) => Interop.
Ldap
.ber_scanf_multibytearray(berElement, format, ref value);
System\DirectoryServices\Protocols\Interop\LdapPal.Linux.cs (44)
10
internal static void CancelDirectoryAsyncOperation(ConnectionHandle ldapHandle, int messagId) => Interop.
Ldap
.ldap_abandon(ldapHandle, messagId);
13
Interop.
Ldap
.ldap_add(ldapHandle, dn, attrs, servercontrol, clientcontrol, ref messageNumber);
16
Interop.
Ldap
.ldap_compare(ldapHandle, dn, attributeName, binaryValue, servercontrol, clientcontrol, ref messageNumber);
18
internal static void FreeDirectoryControl(IntPtr control) => Interop.
Ldap
.ldap_control_free(control);
20
internal static void FreeDirectoryControls(IntPtr value) => Interop.
Ldap
.ldap_controls_free(value);
22
internal static int DeleteDirectoryEntry(ConnectionHandle ldapHandle, string dn, IntPtr servercontrol, IntPtr clientcontrol, ref int messageNumber) => Interop.
Ldap
.ldap_delete_ext(ldapHandle, dn, servercontrol, clientcontrol, ref messageNumber);
25
Interop.
Ldap
.ldap_extended_operation(ldapHandle, oid, data, servercontrol, clientcontrol, ref messageNumber);
27
internal static IntPtr GetFirstAttributeFromEntry(ConnectionHandle ldapHandle, IntPtr result, ref IntPtr address) => Interop.
Ldap
.ldap_first_attribute(ldapHandle, result, ref address);
29
internal static IntPtr GetFirstEntryFromResult(ConnectionHandle ldapHandle, IntPtr result) => Interop.
Ldap
.ldap_first_entry(ldapHandle, result);
31
internal static IntPtr GetFirstReferenceFromResult(ConnectionHandle ldapHandle, IntPtr result) => Interop.
Ldap
.ldap_first_reference(ldapHandle, result);
33
internal static IntPtr GetDistinguishedName(ConnectionHandle ldapHandle, IntPtr result) => Interop.
Ldap
.ldap_get_dn(ldapHandle, result);
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);
55
return Interop.
Ldap
.ldap_get_option_secInfo(ldapHandle, option, outValuePtr);
59
internal static IntPtr GetValuesFromAttribute(ConnectionHandle ldapHandle, IntPtr result, string name) => Interop.
Ldap
.ldap_get_values_len(ldapHandle, result, name);
61
internal static void FreeMemory(IntPtr outValue) => Interop.
Ldap
.ldap_memfree(outValue);
63
internal static void FreeMessage(IntPtr outValue) => Interop.
Ldap
.ldap_msgfree(outValue);
66
Interop.
Ldap
.ldap_modify(ldapHandle, dn, attrs, servercontrol, clientcontrol, ref messageNumber);
68
internal static IntPtr GetNextAttributeFromResult(ConnectionHandle ldapHandle, IntPtr result, IntPtr address) => Interop.
Ldap
.ldap_next_attribute(ldapHandle, result, address);
70
internal static IntPtr GetNextEntryFromResult(ConnectionHandle ldapHandle, IntPtr result) => Interop.
Ldap
.ldap_next_entry(ldapHandle, result);
72
internal static IntPtr GetNextReferenceFromResult(ConnectionHandle ldapHandle, IntPtr result) => Interop.
Ldap
.ldap_next_reference(ldapHandle, result);
74
internal static int ParseExtendedResult(ConnectionHandle ldapHandle, IntPtr result, ref IntPtr oid, ref IntPtr data, byte freeIt) => Interop.
Ldap
.ldap_parse_extended_result(ldapHandle, result, ref oid, ref data, freeIt);
76
internal static int ParseReference(ConnectionHandle ldapHandle, IntPtr result, ref IntPtr referrals) => Interop.
Ldap
.ldap_parse_reference(ldapHandle, result, ref referrals, IntPtr.Zero, 0);
79
Interop.
Ldap
.ldap_parse_result(ldapHandle, result, ref serverError, ref dn, ref message, ref referral, ref control, freeIt);
82
=> Interop.
Ldap
.ldap_parse_result_referral(ldapHandle, result, serverError, dn, message, ref referral, control, freeIt);
85
Interop.
Ldap
.ldap_rename(ldapHandle, dn, newRdn, newParentDn, deleteOldRdn, servercontrol, clientcontrol, ref messageNumber);
87
internal static int GetResultFromAsyncOperation(ConnectionHandle ldapHandle, int messageId, int all, LDAP_TIMEVAL timeout, ref IntPtr Message) => Interop.
Ldap
.ldap_result(ldapHandle, messageId, all, timeout, ref Message);
89
internal static int ResultToErrorCode(ConnectionHandle ldapHandle, IntPtr result, int freeIt) => Interop.
Ldap
.ldap_result2error(ldapHandle, result, freeIt);
103
return Interop.
Ldap
.ldap_search(ldapHandle, dn, scope, filter, attributes, attributeOnly, servercontrol, clientcontrol, searchTimeout, sizelimit, ref messageNumber);
105
internal static int SetBoolOption(ConnectionHandle ld, LdapOption option, bool value) => Interop.
Ldap
.ldap_set_option_bool(ld, option, value);
108
internal static int SetClientCertOption(ConnectionHandle ldapHandle, LdapOption option, QUERYCLIENTCERT outValue) => Interop.
Ldap
.ldap_set_option_clientcert(ldapHandle, option, outValue);
110
internal static int SetIntOption(ConnectionHandle ld, LdapOption option, ref int inValue) => Interop.
Ldap
.ldap_set_option_int(ld, option, ref inValue);
112
internal static int SetPtrOption(ConnectionHandle ldapHandle, LdapOption option, ref IntPtr inValue) => Interop.
Ldap
.ldap_set_option_ptr(ldapHandle, option, ref inValue);
114
internal static int SetStringOption(ConnectionHandle ldapHandle, LdapOption option, string inValue) => Interop.
Ldap
.ldap_set_option_string(ldapHandle, option, inValue);
116
internal static int SetReferralOption(ConnectionHandle ldapHandle, LdapOption option, ref LdapReferralCallback outValue) => Interop.
Ldap
.ldap_set_option_referral(ldapHandle, option, ref outValue);
118
internal static int SetTimevalOption(ConnectionHandle ldapHandle, LdapOption option, ref LDAP_TIMEVAL inValue) => Interop.
Ldap
.ldap_set_option_timeval(ldapHandle, option, ref inValue);
121
internal static int SetServerCertOption(ConnectionHandle ldapHandle, LdapOption option, VERIFYSERVERCERT outValue) => Interop.
Ldap
.ldap_set_option_servercert(ldapHandle, option, outValue);
135
return Interop.
Ldap
.ldap_sasl_bind(ld, who, Interop.LDAP_SASL_SIMPLE, passwordBerval, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);
150
int error = Interop.
Ldap
.ldap_start_tls(ldapHandle, serverControls, clientControls);
172
internal static void FreeValue(IntPtr referral) => Interop.
Ldap
.ldap_value_free(referral);
174
internal static void FreeAttributes(IntPtr berelement) => Interop.
Ldap
.ldap_value_free_len(berelement);
System\DirectoryServices\Protocols\Interop\SafeHandles.Linux.cs (6)
15
Interop.
Ldap
.ldap_initialize(out handle, null);
22
Interop.
Ldap
.ldap_initialize(out handle, uri);
44
Interop.
Ldap
.ldap_unbind_ext_s(handle, ref nullPointer, ref nullPointer);
56
SetHandle(Interop.
Ldap
.ber_alloc(1));
72
SetHandle(Interop.
Ldap
.ber_init(value));
81
Interop.
Ldap
.ber_free(handle, 1);
System\DirectoryServices\Protocols\ldap\LdapConnection.Linux.cs (4)
146
return Interop.
Ldap
.ldap_sasl_interactive_bind(_ldapHandle, null, Interop.KerberosDefaultMechanism, IntPtr.Zero, IntPtr.Zero, Interop.LDAP_SASL_QUIET, LdapPal.SaslInteractionProcedure, ptrToDefaults);
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);