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
();
78 references to ConnectionHandle
System.DirectoryServices.Protocols (78)
src\libraries\Common\src\Interop\Linux\OpenLdap\Interop.Ldap.cs (37)
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);
176
public static partial int ldap_start_tls(
ConnectionHandle
ldapHandle, IntPtr serverControls, IntPtr clientControls);
179
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);
182
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);
185
public static partial int ldap_parse_extended_result(
ConnectionHandle
ldapHandle, IntPtr result, ref IntPtr oid, ref IntPtr data, byte freeIt);
188
public static partial int ldap_parse_reference(
ConnectionHandle
ldapHandle, IntPtr result, ref IntPtr referrals, IntPtr ServerControls, byte freeIt);
192
ConnectionHandle
ld,
202
ConnectionHandle
ld,
215
public static partial int ldap_extended_operation(
ConnectionHandle
ldapHandle, [MarshalAs(UnmanagedType.LPUTF8Str)] string oid, BerVal data, IntPtr servercontrol, IntPtr clientcontrol, ref int messageNumber);
218
public static partial IntPtr ldap_first_attribute(
ConnectionHandle
ldapHandle, IntPtr result, ref IntPtr address);
221
public static partial IntPtr ldap_first_entry(
ConnectionHandle
ldapHandle, IntPtr result);
224
public static partial IntPtr ldap_first_reference(
ConnectionHandle
ldapHandle, IntPtr result);
245
public static partial int ldap_modify(
ConnectionHandle
ldapHandle, [MarshalAs(UnmanagedType.LPUTF8Str)] string dn, IntPtr attrs, IntPtr servercontrol, IntPtr clientcontrol, ref int messageNumber);
248
public static partial IntPtr ldap_next_attribute(
ConnectionHandle
ldapHandle, IntPtr result, IntPtr address);
251
public static partial IntPtr ldap_next_entry(
ConnectionHandle
ldapHandle, IntPtr result);
254
public static partial IntPtr ldap_next_reference(
ConnectionHandle
ldapHandle, IntPtr result);
257
public static partial int ldap_abandon(
ConnectionHandle
ldapHandle, int messagId);
260
public static partial int ldap_add(
ConnectionHandle
ldapHandle, [MarshalAs(UnmanagedType.LPUTF8Str)] string dn, IntPtr attrs, IntPtr servercontrol, IntPtr clientcontrol, ref int messageNumber);
263
public static partial int ldap_delete_ext(
ConnectionHandle
ldapHandle, [MarshalAs(UnmanagedType.LPUTF8Str)] string dn, IntPtr servercontrol, IntPtr clientcontrol, ref int messageNumber);
267
ConnectionHandle
ldapHandle,
278
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 (38)
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);
119
internal static int SetServerCertOption(
ConnectionHandle
ldapHandle, LdapOption option, VERIFYSERVERCERT outValue) => Interop.Ldap.ldap_set_option_servercert(ldapHandle, option, outValue);
121
internal static unsafe int BindToDirectory(
ConnectionHandle
ld, string who, string passwd)
141
internal static int StartTls(
ConnectionHandle
ldapHandle, ref int serverReturnValue, ref IntPtr message, IntPtr serverControls, IntPtr clientControls)
168
internal static byte StopTls(
ConnectionHandle
_/*ldapHandle*/) => 1;
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (1)
47
internal
ConnectionHandle
_ldapHandle;