3 instantiations of ConnectionHandle
System.DirectoryServices.Protocols (3)
System\DirectoryServices\Protocols\common\DirectoryControl.cs (1)
50
private static readonly ConnectionHandle s_handle = new
ConnectionHandle
();
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (1)
93
_ldapHandle = new
ConnectionHandle
(handle, _needDispose);
System\DirectoryServices\Protocols\ldap\LdapConnection.Linux.cs (1)
23
_ldapHandle = new
ConnectionHandle
();
156 references to ConnectionHandle
System.DirectoryServices.Protocols (156)
_generated\0\LibraryImports.g.cs (76)
73
public static partial nint ldap_get_dn(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, nint result)
78
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
108
public static partial int ldap_get_option_bool(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, global::System.DirectoryServices.Protocols.LdapOption option, ref bool outValue)
114
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
148
public static unsafe partial int ldap_get_option_secInfo(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, global::System.DirectoryServices.Protocols.LdapOption option, void* outValue)
153
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
183
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)
188
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
242
public static partial int ldap_get_option_int(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, global::System.DirectoryServices.Protocols.LdapOption option, ref int outValue)
247
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
279
public static partial int ldap_get_option_ptr(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, global::System.DirectoryServices.Protocols.LdapOption option, ref nint outValue)
284
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
316
public static partial nint ldap_get_values_len(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, nint result, string name)
323
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
356
public static partial int ldap_result(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, int messageId, int all, in global::System.DirectoryServices.Protocols.LDAP_TIMEVAL timeout, ref nint Mesage)
362
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
398
public static partial int ldap_result2error(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, nint result, int freeIt)
403
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
433
public static partial int ldap_search(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, string dn, int scope, string filter, nint attributes, bool attributeOnly, nint servercontrol, nint clientcontrol, in global::System.DirectoryServices.Protocols.LDAP_TIMEVAL timelimit, int sizelimit, ref int messageNumber)
443
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
483
public static partial int ldap_set_option_bool(global::System.DirectoryServices.Protocols.
ConnectionHandle
ld, global::System.DirectoryServices.Protocols.LdapOption option, bool value)
490
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ld_native__marshaller = new();
524
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)
530
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
564
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)
570
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
604
public static partial int ldap_set_option_int(global::System.DirectoryServices.Protocols.
ConnectionHandle
ld, global::System.DirectoryServices.Protocols.LdapOption option, ref int inValue)
610
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ld_native__marshaller = new();
645
public static partial int ldap_set_option_ptr(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, global::System.DirectoryServices.Protocols.LdapOption option, ref nint inValue)
650
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
682
public static partial int ldap_set_option_string(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, global::System.DirectoryServices.Protocols.LdapOption option, string inValue)
689
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
722
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)
729
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
769
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)
774
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
806
public static partial int ldap_start_tls(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, nint serverControls, nint clientControls)
811
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
841
public static partial int ldap_parse_result(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, nint result, ref int serverError, ref nint dn, ref nint message, ref nint referral, ref nint control, byte freeIt)
846
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
882
public static partial int ldap_parse_result_referral(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, nint result, nint serverError, nint dn, nint message, ref nint referral, nint control, byte freeIt)
887
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
919
public static partial int ldap_parse_extended_result(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, nint result, ref nint oid, ref nint data, byte freeIt)
924
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
957
public static partial int ldap_parse_reference(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, nint result, ref nint referrals, nint ServerControls, byte freeIt)
962
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
994
internal static partial int ldap_sasl_bind(global::System.DirectoryServices.Protocols.
ConnectionHandle
ld, string dn, string mechanism, global::System.DirectoryServices.Protocols.BerVal cred, nint serverctrls, nint clientctrls, nint servercredp)
1003
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ld_native__marshaller = new();
1041
internal static partial int ldap_sasl_interactive_bind(global::System.DirectoryServices.Protocols.
ConnectionHandle
ld, string dn, string mechanism, nint serverctrls, nint clientctrls, uint flags, global::LDAP_SASL_INTERACT_PROC proc, nint defaults)
1051
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ld_native__marshaller = new();
1099
public static partial int ldap_extended_operation(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, string oid, global::System.DirectoryServices.Protocols.BerVal data, nint servercontrol, nint clientcontrol, ref int messageNumber)
1106
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
1142
public static partial nint ldap_first_attribute(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, nint result, ref nint address)
1147
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
1179
public static partial nint ldap_first_entry(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, nint result)
1184
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
1214
public static partial nint ldap_first_reference(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, nint result)
1219
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
1297
public static partial int ldap_modify(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, string dn, nint attrs, nint servercontrol, nint clientcontrol, ref int messageNumber)
1304
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
1339
public static partial nint ldap_next_attribute(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, nint result, nint address)
1344
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
1374
public static partial nint ldap_next_entry(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, nint result)
1379
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
1409
public static partial nint ldap_next_reference(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, nint result)
1414
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
1444
public static partial int ldap_abandon(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, int messagId)
1449
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
1479
public static partial int ldap_add(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, string dn, nint attrs, nint servercontrol, nint clientcontrol, ref int messageNumber)
1486
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
1521
public static partial int ldap_delete_ext(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, string dn, nint servercontrol, nint clientcontrol, ref int messageNumber)
1528
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
1563
public static partial int ldap_rename(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, string dn, string newRdn, string newParentDn, int deleteOldRdn, nint servercontrol, nint clientcontrol, ref int messageNumber)
1574
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
1615
public static partial int ldap_compare(global::System.DirectoryServices.Protocols.
ConnectionHandle
ldapHandle, string dn, string attributeName, global::System.DirectoryServices.Protocols.BerVal binaryValue, nint servercontrol, nint clientcontrol, ref int messageNumber)
1624
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.DirectoryServices.Protocols.
ConnectionHandle
>.ManagedToUnmanagedIn __ldapHandle_native__marshaller = new();
src\runtime\src\libraries\Common\src\Interop\Linux\OpenLdap\Interop.Ldap.cs (38)
110
public static partial IntPtr ldap_get_dn(
ConnectionHandle
ldapHandle, IntPtr result);
113
public static partial int ldap_get_option_bool(
ConnectionHandle
ldapHandle, LdapOption option, [MarshalAs(UnmanagedType.Bool)] ref bool outValue);
116
public static unsafe partial int ldap_get_option_secInfo(
ConnectionHandle
ldapHandle, LdapOption option, void* outValue);
119
public static partial int ldap_get_option_sechandle(
ConnectionHandle
ldapHandle, LdapOption option, ref SecurityHandle outValue);
125
public static partial int ldap_get_option_int(
ConnectionHandle
ldapHandle, LdapOption option, ref int outValue);
128
public static partial int ldap_get_option_ptr(
ConnectionHandle
ldapHandle, LdapOption option, ref IntPtr outValue);
131
public static partial IntPtr ldap_get_values_len(
ConnectionHandle
ldapHandle, IntPtr result, [MarshalAs(UnmanagedType.LPUTF8Str)] string name);
134
public static partial int ldap_result(
ConnectionHandle
ldapHandle, int messageId, int all, in LDAP_TIMEVAL timeout, ref IntPtr Mesage);
137
public static partial int ldap_result2error(
ConnectionHandle
ldapHandle, IntPtr result, int freeIt);
141
ConnectionHandle
ldapHandle,
154
public static partial int ldap_set_option_bool(
ConnectionHandle
ld, LdapOption option, [MarshalAs(UnmanagedType.Bool)] bool value);
157
public static partial int ldap_set_option_clientcert(
ConnectionHandle
ldapHandle, LdapOption option, QUERYCLIENTCERT outValue);
160
public static partial int ldap_set_option_servercert(
ConnectionHandle
ldapHandle, LdapOption option, VERIFYSERVERCERT outValue);
163
public static partial int ldap_set_option_int(
ConnectionHandle
ld, LdapOption option, ref int inValue);
166
public static partial int ldap_set_option_ptr(
ConnectionHandle
ldapHandle, LdapOption option, ref IntPtr inValue);
169
public static partial int ldap_set_option_string(
ConnectionHandle
ldapHandle, LdapOption option, [MarshalAs(UnmanagedType.LPUTF8Str)] string inValue);
172
public static partial int ldap_set_option_referral(
ConnectionHandle
ldapHandle, LdapOption option, ref LdapReferralCallback outValue);
175
public static partial int ldap_set_option_timeval(
ConnectionHandle
ldapHandle, LdapOption option, ref LDAP_TIMEVAL inValue);
179
public static partial int ldap_start_tls(
ConnectionHandle
ldapHandle, IntPtr serverControls, IntPtr clientControls);
182
public static partial int ldap_parse_result(
ConnectionHandle
ldapHandle, IntPtr result, ref int serverError, ref IntPtr dn, ref IntPtr message, ref IntPtr referral, ref IntPtr control, byte freeIt);
185
public static partial int ldap_parse_result_referral(
ConnectionHandle
ldapHandle, IntPtr result, IntPtr serverError, IntPtr dn, IntPtr message, ref IntPtr referral, IntPtr control, byte freeIt);
188
public static partial int ldap_parse_extended_result(
ConnectionHandle
ldapHandle, IntPtr result, ref IntPtr oid, ref IntPtr data, byte freeIt);
191
public static partial int ldap_parse_reference(
ConnectionHandle
ldapHandle, IntPtr result, ref IntPtr referrals, IntPtr ServerControls, byte freeIt);
195
ConnectionHandle
ld,
205
ConnectionHandle
ld,
218
public static partial int ldap_extended_operation(
ConnectionHandle
ldapHandle, [MarshalAs(UnmanagedType.LPUTF8Str)] string oid, BerVal data, IntPtr servercontrol, IntPtr clientcontrol, ref int messageNumber);
221
public static partial IntPtr ldap_first_attribute(
ConnectionHandle
ldapHandle, IntPtr result, ref IntPtr address);
224
public static partial IntPtr ldap_first_entry(
ConnectionHandle
ldapHandle, IntPtr result);
227
public static partial IntPtr ldap_first_reference(
ConnectionHandle
ldapHandle, IntPtr result);
248
public static partial int ldap_modify(
ConnectionHandle
ldapHandle, [MarshalAs(UnmanagedType.LPUTF8Str)] string dn, IntPtr attrs, IntPtr servercontrol, IntPtr clientcontrol, ref int messageNumber);
251
public static partial IntPtr ldap_next_attribute(
ConnectionHandle
ldapHandle, IntPtr result, IntPtr address);
254
public static partial IntPtr ldap_next_entry(
ConnectionHandle
ldapHandle, IntPtr result);
257
public static partial IntPtr ldap_next_reference(
ConnectionHandle
ldapHandle, IntPtr result);
260
public static partial int ldap_abandon(
ConnectionHandle
ldapHandle, int messagId);
263
public static partial int ldap_add(
ConnectionHandle
ldapHandle, [MarshalAs(UnmanagedType.LPUTF8Str)] string dn, IntPtr attrs, IntPtr servercontrol, IntPtr clientcontrol, ref int messageNumber);
266
public static partial int ldap_delete_ext(
ConnectionHandle
ldapHandle, [MarshalAs(UnmanagedType.LPUTF8Str)] string dn, IntPtr servercontrol, IntPtr clientcontrol, ref int messageNumber);
270
ConnectionHandle
ldapHandle,
281
ConnectionHandle
ldapHandle,
System\DirectoryServices\Protocols\common\DirectoryControl.cs (2)
50
private static readonly
ConnectionHandle
s_handle = new ConnectionHandle();
52
public static
ConnectionHandle
GetHandle() => s_handle;
System\DirectoryServices\Protocols\Interop\LdapPal.Linux.cs (39)
10
internal static void CancelDirectoryAsyncOperation(
ConnectionHandle
ldapHandle, int messagId) => Interop.Ldap.ldap_abandon(ldapHandle, messagId);
12
internal static int AddDirectoryEntry(
ConnectionHandle
ldapHandle, string dn, IntPtr attrs, IntPtr servercontrol, IntPtr clientcontrol, ref int messageNumber) =>
15
internal static int CompareDirectoryEntries(
ConnectionHandle
ldapHandle, string dn, string attributeName, string _ /*strValue*/, BerVal binaryValue, IntPtr servercontrol, IntPtr clientcontrol, ref int messageNumber) =>
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);
24
internal static int ExtendedDirectoryOperation(
ConnectionHandle
ldapHandle, string oid, BerVal data, IntPtr servercontrol, IntPtr clientcontrol, ref int 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);
35
internal static int GetLastErrorFromConnection(
ConnectionHandle
ldapHandle)
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)
59
internal static IntPtr GetValuesFromAttribute(
ConnectionHandle
ldapHandle, IntPtr result, string name) => Interop.Ldap.ldap_get_values_len(ldapHandle, result, name);
65
internal static int ModifyDirectoryEntry(
ConnectionHandle
ldapHandle, string dn, IntPtr attrs, IntPtr servercontrol, IntPtr clientcontrol, ref int 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);
78
internal static int ParseResult(
ConnectionHandle
ldapHandle, IntPtr result, ref int serverError, ref IntPtr dn, ref IntPtr message, ref IntPtr referral, ref IntPtr control, byte freeIt) =>
81
internal static int ParseResultReferral(
ConnectionHandle
ldapHandle, IntPtr result, IntPtr serverError, IntPtr dn, IntPtr message, ref IntPtr referral, IntPtr control, byte freeIt)
84
internal static int RenameDirectoryEntry(
ConnectionHandle
ldapHandle, string dn, string newRdn, string newParentDn, int deleteOldRdn, IntPtr servercontrol, IntPtr clientcontrol, ref int 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);
91
internal static int SearchDirectory(
ConnectionHandle
ldapHandle, string dn, int scope, string filter, IntPtr attributes, bool attributeOnly, IntPtr servercontrol, IntPtr clientcontrol, int timelimit, int sizelimit, ref int 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);
123
internal static unsafe int BindToDirectory(
ConnectionHandle
ld, string who, string passwd)
143
internal static int StartTls(
ConnectionHandle
ldapHandle, ref int serverReturnValue, ref IntPtr message, IntPtr serverControls, IntPtr clientControls)
170
internal static byte StopTls(
ConnectionHandle
_/*ldapHandle*/) => 1;
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (1)
47
internal
ConnectionHandle
_ldapHandle;