86 references to LdapPal
System.DirectoryServices.Protocols (86)
System\DirectoryServices\Protocols\Interop\LdapPal.Linux.cs (1)
128
passwordPtr =
LdapPal
.StringToPtr(passwd);
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (54)
251
error =
LdapPal
.GetLastErrorFromConnection(_ldapHandle);
374
error =
LdapPal
.GetLastErrorFromConnection(_ldapHandle);
416
LdapPal
.CancelDirectoryAsyncOperation(_ldapHandle, messageId);
561
error =
LdapPal
.DeleteDirectoryEntry(_ldapHandle, ((DeleteRequest)request).DistinguishedName, serverControlArray, clientControlArray, ref messageID);
566
error =
LdapPal
.RenameDirectoryEntry(
617
error =
LdapPal
.CompareDirectoryEntries(
652
error =
LdapPal
.AddDirectoryEntry(
660
error =
LdapPal
.ModifyDirectoryEntry(
683
error =
LdapPal
.ExtendedDirectoryOperation(
713
IntPtr controlPtr =
LdapPal
.StringToPtr(searchRequest.Attributes[i]);
732
error =
LdapPal
.SearchDirectory(
946
int certError =
LdapPal
.SetClientCertOption(_ldapHandle, LdapOption.LDAP_OPT_CLIENT_CERTIFICATE, _clientCertificateRoutine);
1040
error =
LdapPal
.BindToDirectory(_ldapHandle, null, null);
1052
error =
LdapPal
.BindToDirectory(_ldapHandle, tempDomainName.ToString(), password);
1202
ldctl_oid =
LdapPal
.StringToPtr(((DirectoryControl)controlList[i]).Type),
1285
attributes[i].attribute =
LdapPal
.StringToPtr(modAttribute.Name);
1379
error =
LdapPal
.GetResultFromAsyncOperation(_ldapHandle, messageId, (int)resultType, timeout, ref ldapResult);
1391
error =
LdapPal
.GetResultFromAsyncOperation(_ldapHandle, messageId, (int)resultType, timeout, ref ldapResult);
1452
resultError =
LdapPal
.ParseExtendedResult(_ldapHandle, ldapResult, ref requestName, ref requestValue, 0 /*not free it*/);
1458
name =
LdapPal
.PtrToString(requestName);
1495
entryMessage =
LdapPal
.GetFirstEntryFromResult(_ldapHandle, ldapResult);
1507
entryMessage =
LdapPal
.GetNextEntryFromResult(_ldapHandle, entryMessage);
1511
IntPtr referenceMessage =
LdapPal
.GetFirstReferenceFromResult(_ldapHandle, ldapResult);
1521
referenceMessage =
LdapPal
.GetNextReferenceFromResult(_ldapHandle, referenceMessage);
1554
LdapPal
.FreeMemory(requestName);
1559
LdapPal
.FreeMemory(requestValue);
1564
LdapPal
.FreeMessage(ldapResult);
1587
error =
LdapPal
.GetLastErrorFromConnection(_ldapHandle);
1593
LdapPal
.CancelDirectoryAsyncOperation(_ldapHandle, messageId);
1610
int resultError =
LdapPal
.ParseResult(_ldapHandle, ldapResult, ref serverError, ref dn, ref message, ref referral, ref control, 0 /* not free it */);
1615
responseDn =
LdapPal
.PtrToString(dn);
1618
responseMessage =
LdapPal
.PtrToString(message);
1629
string s =
LdapPal
.PtrToString((IntPtr)singleReferral);
1671
int tmpResult =
LdapPal
.ResultToErrorCode(_ldapHandle, ldapResult, 0 /* not free it */);
1685
LdapPal
.FreeMemory(dn);
1690
LdapPal
.FreeMemory(message);
1695
LdapPal
.FreeValue(referral);
1700
LdapPal
.FreeDirectoryControls(control);
1715
dn =
LdapPal
.GetDistinguishedName(_ldapHandle, entryMessage);
1718
entryDn =
LdapPal
.PtrToString(dn);
1719
LdapPal
.FreeMemory(dn);
1727
attribute =
LdapPal
.GetFirstAttributeFromEntry(_ldapHandle, entryMessage, ref address);
1735
LdapPal
.FreeMemory(attribute);
1737
attribute =
LdapPal
.GetNextAttributeFromResult(_ldapHandle, entryMessage, address);
1752
LdapPal
.FreeMemory(dn);
1757
LdapPal
.FreeMemory(attribute);
1774
string name =
LdapPal
.PtrToString(attributeName);
1776
IntPtr valuesArray =
LdapPal
.GetValuesFromAttribute(_ldapHandle, entryMessage, name);
1804
LdapPal
.FreeAttributes(valuesArray);
1814
int error =
LdapPal
.ParseReference(_ldapHandle, referenceMessage, ref referenceArray);
1828
string s =
LdapPal
.PtrToString(tempPtr);
1835
LdapPal
.FreeValue(referenceArray);
1855
LdapPal
.FreeValue(referenceArray);
1924
string controlType =
LdapPal
.PtrToString(control.ldctl_oid);
System\DirectoryServices\Protocols\ldap\LdapConnection.Linux.cs (4)
79
int result =
LdapPal
.SetStringOption(_ldapHandle, LdapOption.LDAP_OPT_URI, uris);
89
int timeoutResult =
LdapPal
.SetTimevalOption(_ldapHandle, LdapOption.LDAP_OPT_NETWORK_TIMEOUT, ref timeout);
108
error =
LdapPal
.BindToDirectory(_ldapHandle, cred.user, cred.password);
146
return Interop.Ldap.ldap_sasl_interactive_bind(_ldapHandle, null, Interop.KerberosDefaultMechanism, IntPtr.Zero, IntPtr.Zero, Interop.LDAP_SASL_QUIET,
LdapPal
.SaslInteractionProcedure, ptrToDefaults);
System\DirectoryServices\Protocols\ldap\LdapPartialResultsProcessor.cs (1)
220
LdapPal
.CancelDirectoryAsyncOperation(connection._ldapHandle, asyncResult._messageID);
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.cs (23)
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);
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);
549
int error =
LdapPal
.SetIntOption(_connection._ldapHandle, LdapOption.LDAP_OPT_FAST_CONCURRENT_BIND, ref inValue);
605
int error =
LdapPal
.StartTls(_connection._ldapHandle, ref serverError, ref ldapResult, serverControlArray, clientControlArray);
609
int resultError =
LdapPal
.ParseResultReferral(_connection._ldapHandle, ldapResult, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, ref referral, IntPtr.Zero, 0 /* not free it */);
618
string s =
LdapPal
.PtrToString((IntPtr)singleReferral);
628
LdapPal
.FreeValue(referral);
738
LdapPal
.FreeValue(referral);
750
byte result =
LdapPal
.StopTls(_connection._ldapHandle);
771
int error =
LdapPal
.GetIntOption(_connection._ldapHandle, option, ref outValue);
785
int error =
LdapPal
.SetIntOption(_connection._ldapHandle, option, ref temp);
798
int error =
LdapPal
.GetPtrOption(_connection._ldapHandle, option, ref outValue);
812
int error =
LdapPal
.SetPtrOption(_connection._ldapHandle, option, ref temp);
825
int error =
LdapPal
.GetPtrOption(_connection._ldapHandle, option, ref outValue);
831
stringValue =
LdapPal
.PtrToString(outValue);
836
LdapPal
.FreeMemory(outValue);
852
inValue =
LdapPal
.StringToPtr(value);
857
int error =
LdapPal
.SetPtrOption(_connection._ldapHandle, option, ref inValue);
878
int error =
LdapPal
.SetReferralOption(_connection._ldapHandle, LdapOption.LDAP_OPT_REFERRAL_CALLBACK, ref value);
895
NewDN =
LdapPal
.PtrToString(NewDNPtr);
959
newDN =
LdapPal
.PtrToString(newDNPtr);
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.Linux.cs (3)
97
int error =
LdapPal
.GetBoolOption(_connection._ldapHandle, option, ref outValue);
107
int error =
LdapPal
.SetBoolOption(_connection._ldapHandle, option, value);
116
int error =
LdapPal
.SetStringOption(_connection._ldapHandle, option, value);