internal override int Init(ref IntPtr ld, string url) => NativeMethodsOsx.ldap_initialize(ref ld, url);
internal override void ldap_msgfree(IntPtr message) => NativeMethodsOsx.ldap_msgfree(message);
internal override IntPtr ldap_next_attribute(SafeHandle ld, IntPtr entry, IntPtr pBer) => NativeMethodsOsx.ldap_next_attribute(ld, entry, pBer);
internal override int ldap_parse_reference(SafeHandle ld, IntPtr reference, ref IntPtr referralsp, ref IntPtr serverctrlsp, int freeit) => NativeMethodsOsx.ldap_parse_reference(ld, reference, ref referralsp, ref serverctrlsp, freeit);
internal override IntPtr ldap_get_dn(SafeHandle ld, IntPtr message) => NativeMethodsOsx.ldap_get_dn(ld, message);
internal override int ldap_parse_result(SafeHandle ld, IntPtr result, ref int errcodep, ref IntPtr matcheddnp, ref IntPtr errmsgp, ref IntPtr referralsp, ref IntPtr serverctrlsp, int freeit) => NativeMethodsOsx.ldap_parse_result(ld, result, ref errcodep, ref matcheddnp, ref errmsgp, ref referralsp, ref serverctrlsp, freeit);
internal override string GetAdditionalErrorInfo(SafeHandle ld) => NativeMethodsOsx.GetAdditionalErrorInfo(ld);
internal override int ldap_extended_operation(SafeHandle ld, string requestoid, IntPtr requestdata, IntPtr serverctrls, IntPtr clientctrls, ref int msgidp) => NativeMethodsOsx.ldap_extended_operation(ld, requestoid, requestdata, serverctrls, clientctrls, ref msgidp);
internal override int ldap_rename(SafeHandle ld, string dn, string newrdn, string newparent, int deleteoldrdn, IntPtr serverctrls, IntPtr clientctrls, ref int msgidp) => NativeMethodsOsx.ldap_rename(ld, dn, newrdn, newparent, deleteoldrdn, serverctrls, clientctrls, ref msgidp);
internal override IntPtr ldap_get_values(SafeHandle ld, IntPtr entry, IntPtr pBer) => NativeMethodsOsx.ldap_get_values(ld, entry, pBer);
internal override int ldap_delete_ext(SafeHandle ld, string dn, IntPtr serverctrls, IntPtr clientctrls, ref int msgidp) => NativeMethodsOsx.ldap_delete_ext(ld, dn, serverctrls, clientctrls, ref msgidp);
internal override void ldap_value_free(IntPtr vals) => NativeMethodsOsx.ldap_value_free(vals);
internal override int ldap_search_ext(SafeHandle ld, string @base, int scope, string filter, string[] attrs, int attrsonly, IntPtr serverctrls, IntPtr clientctrls, IntPtr timeout, int sizelimit, ref int msgidp) => NativeMethodsOsx.ldap_search_ext(ld, @base, scope, filter, attrs, attrsonly, serverctrls, clientctrls, timeout, sizelimit, ref msgidp);
internal override int Init(ref IntPtr ld, string hostname, int port) => NativeMethodsOsx.ldap_initialize(ref ld, $"LDAP://{hostname}:{port}");
internal override int ldap_unbind_s(IntPtr ld) => NativeMethodsOsx.ldap_unbind_s(ld);
internal override int ldap_parse_extended_result(SafeHandle ldapHandle, IntPtr result, ref IntPtr oid, ref IntPtr data, byte freeIt) => NativeMethodsOsx.ldap_parse_extended_result(ldapHandle, result, ref oid, ref data, freeIt);
internal override Native.LdapResultType ldap_result(SafeHandle ld, int msgid, int all, LDAP_TIMEVAL timeout, ref IntPtr pMessage) => NativeMethodsOsx.ldap_result(ld, msgid, all, timeout, ref pMessage);
internal override void ldap_controls_free(IntPtr ctrls) => NativeMethodsOsx.ldap_controls_free(ctrls);
internal override string LdapError2String(int error) => NativeMethodsOsx.LdapError2String(error);
internal override int Init(ref IntPtr ld, Uri uri) => NativeMethodsOsx.ldap_initialize(ref ld, uri.ToString());
internal override int LdapGetLastError(SafeHandle ld) { int err = -1; NativeMethodsOsx.ldap_get_option(ld, (int) Native.LdapOption.LDAP_OPT_RESULT_CODE, ref err); return err; }
internal override int BindSimple(SafeHandle ld, string userDn, string password) => NativeMethodsOsx.ldap_simple_bind_s(ld, userDn, password);
internal override IntPtr ldap_next_entry(SafeHandle ld, IntPtr message) => NativeMethodsOsx.ldap_next_entry(ld, message);
internal override int Abandon(SafeHandle ld, int msgId, IntPtr serverctrls, IntPtr clientctrls) => NativeMethodsOsx.ldap_abandon_ext(ld, msgId, serverctrls, clientctrls);
internal override void ldap_memfree(IntPtr ptr) => NativeMethodsOsx.ldap_memfree(ptr);
internal override int ldap_set_option(SafeHandle ld, int option, IntPtr invalue) => NativeMethodsOsx.ldap_set_option(ld, option, invalue);
internal override IntPtr ldap_first_attribute(SafeHandle ld, IntPtr entry, ref IntPtr ppBer) => NativeMethodsOsx.ldap_first_attribute(ld, entry, ref ppBer);
internal override int ldap_get_option(SafeHandle ld, int option, ref int value) => NativeMethodsOsx.ldap_get_option(ld, option, ref value);
internal override int ldap_count_values(IntPtr vals) => NativeMethodsOsx.ldap_count_values(vals);
internal override int ldap_start_tls_s(SafeHandle ld, ref int serverReturnValue, ref IntPtr message, IntPtr serverctrls, IntPtr clientctrls) { return(NativeMethodsOsx.ldap_start_tls_s(ld, serverctrls, clientctrls)); }