86 references to LdapPal
System.DirectoryServices.Protocols (86)
System\DirectoryServices\Protocols\Interop\LdapPal.Unix.cs (1)
124passwordPtr = LdapPal.StringToPtr(passwd);
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (54)
251error = LdapPal.GetLastErrorFromConnection(_ldapHandle); 374error = LdapPal.GetLastErrorFromConnection(_ldapHandle); 416LdapPal.CancelDirectoryAsyncOperation(_ldapHandle, messageId); 561error = LdapPal.DeleteDirectoryEntry(_ldapHandle, ((DeleteRequest)request).DistinguishedName, serverControlArray, clientControlArray, ref messageID); 566error = LdapPal.RenameDirectoryEntry( 617error = LdapPal.CompareDirectoryEntries( 652error = LdapPal.AddDirectoryEntry( 660error = LdapPal.ModifyDirectoryEntry( 683error = LdapPal.ExtendedDirectoryOperation( 713IntPtr controlPtr = LdapPal.StringToPtr(searchRequest.Attributes[i]); 732error = LdapPal.SearchDirectory( 946int certError = LdapPal.SetClientCertOption(_ldapHandle, LdapOption.LDAP_OPT_CLIENT_CERTIFICATE, _clientCertificateRoutine); 1040error = LdapPal.BindToDirectory(_ldapHandle, null, null); 1052error = LdapPal.BindToDirectory(_ldapHandle, tempDomainName.ToString(), password); 1202ldctl_oid = LdapPal.StringToPtr(((DirectoryControl)controlList[i]).Type), 1285attributes[i].attribute = LdapPal.StringToPtr(modAttribute.Name); 1378error = LdapPal.GetResultFromAsyncOperation(_ldapHandle, messageId, (int)resultType, timeout, ref ldapResult); 1389error = LdapPal.GetResultFromAsyncOperation(_ldapHandle, messageId, (int)resultType, timeout, ref ldapResult); 1450resultError = LdapPal.ParseExtendedResult(_ldapHandle, ldapResult, ref requestName, ref requestValue, 0 /*not free it*/); 1456name = LdapPal.PtrToString(requestName); 1493entryMessage = LdapPal.GetFirstEntryFromResult(_ldapHandle, ldapResult); 1505entryMessage = LdapPal.GetNextEntryFromResult(_ldapHandle, entryMessage); 1509IntPtr referenceMessage = LdapPal.GetFirstReferenceFromResult(_ldapHandle, ldapResult); 1519referenceMessage = LdapPal.GetNextReferenceFromResult(_ldapHandle, referenceMessage); 1552LdapPal.FreeMemory(requestName); 1557LdapPal.FreeMemory(requestValue); 1562LdapPal.FreeMessage(ldapResult); 1585error = LdapPal.GetLastErrorFromConnection(_ldapHandle); 1591LdapPal.CancelDirectoryAsyncOperation(_ldapHandle, messageId); 1608int resultError = LdapPal.ParseResult(_ldapHandle, ldapResult, ref serverError, ref dn, ref message, ref referral, ref control, 0 /* not free it */); 1613responseDn = LdapPal.PtrToString(dn); 1616responseMessage = LdapPal.PtrToString(message); 1627string s = LdapPal.PtrToString((IntPtr)singleReferral); 1669int tmpResult = LdapPal.ResultToErrorCode(_ldapHandle, ldapResult, 0 /* not free it */); 1683LdapPal.FreeMemory(dn); 1688LdapPal.FreeMemory(message); 1693LdapPal.FreeValue(referral); 1698LdapPal.FreeDirectoryControls(control); 1713dn = LdapPal.GetDistinguishedName(_ldapHandle, entryMessage); 1716entryDn = LdapPal.PtrToString(dn); 1717LdapPal.FreeMemory(dn); 1725attribute = LdapPal.GetFirstAttributeFromEntry(_ldapHandle, entryMessage, ref address); 1733LdapPal.FreeMemory(attribute); 1735attribute = LdapPal.GetNextAttributeFromResult(_ldapHandle, entryMessage, address); 1750LdapPal.FreeMemory(dn); 1755LdapPal.FreeMemory(attribute); 1772string name = LdapPal.PtrToString(attributeName); 1774IntPtr valuesArray = LdapPal.GetValuesFromAttribute(_ldapHandle, entryMessage, name); 1802LdapPal.FreeAttributes(valuesArray); 1812int error = LdapPal.ParseReference(_ldapHandle, referenceMessage, ref referenceArray); 1826string s = LdapPal.PtrToString(tempPtr); 1833LdapPal.FreeValue(referenceArray); 1853LdapPal.FreeValue(referenceArray); 1922string controlType = LdapPal.PtrToString(control.ldctl_oid);
System\DirectoryServices\Protocols\ldap\LdapConnection.Unix.cs (4)
79int result = LdapPal.SetStringOption(_ldapHandle, LdapOption.LDAP_OPT_URI, uris); 89int timeoutResult = LdapPal.SetTimevalOption(_ldapHandle, LdapOption.LDAP_OPT_NETWORK_TIMEOUT, ref timeout); 108error = LdapPal.BindToDirectory(_ldapHandle, cred.user, cred.password); 146return 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)
220LdapPal.CancelDirectoryAsyncOperation(connection._ldapHandle, asyncResult._messageID);
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.cs (23)
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); 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); 549int error = LdapPal.SetIntOption(_connection._ldapHandle, LdapOption.LDAP_OPT_FAST_CONCURRENT_BIND, ref inValue); 605int error = LdapPal.StartTls(_connection._ldapHandle, ref serverError, ref ldapResult, serverControlArray, clientControlArray); 609int resultError = LdapPal.ParseResultReferral(_connection._ldapHandle, ldapResult, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, ref referral, IntPtr.Zero, 0 /* not free it */); 618string s = LdapPal.PtrToString((IntPtr)singleReferral); 628LdapPal.FreeValue(referral); 738LdapPal.FreeValue(referral); 750byte result = LdapPal.StopTls(_connection._ldapHandle); 771int error = LdapPal.GetIntOption(_connection._ldapHandle, option, ref outValue); 785int error = LdapPal.SetIntOption(_connection._ldapHandle, option, ref temp); 798int error = LdapPal.GetPtrOption(_connection._ldapHandle, option, ref outValue); 812int error = LdapPal.SetPtrOption(_connection._ldapHandle, option, ref temp); 825int error = LdapPal.GetPtrOption(_connection._ldapHandle, option, ref outValue); 831stringValue = LdapPal.PtrToString(outValue); 836LdapPal.FreeMemory(outValue); 852inValue = LdapPal.StringToPtr(value); 857int error = LdapPal.SetPtrOption(_connection._ldapHandle, option, ref inValue); 878int error = LdapPal.SetReferralOption(_connection._ldapHandle, LdapOption.LDAP_OPT_REFERRAL_CALLBACK, ref value); 895NewDN = LdapPal.PtrToString(NewDNPtr); 959newDN = LdapPal.PtrToString(newDNPtr);
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.Unix.cs (3)
101int error = LdapPal.GetBoolOption(_connection._ldapHandle, option, ref outValue); 111int error = LdapPal.SetBoolOption(_connection._ldapHandle, option, value); 120int error = LdapPal.SetStringOption(_connection._ldapHandle, option, value);