diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-02-24 16:49:26 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-02-24 17:55:41 +0100 |
commit | f6b0a99cefaedfa7642af31f8fcc4457bacb07a3 (patch) | |
tree | fcf642d55c047b01fab265695912c28eb7e8f024 /source4/ldap_server | |
parent | 7b1c5c94f6a08108d90a73ba78a91df661d68064 (diff) | |
download | samba-f6b0a99cefaedfa7642af31f8fcc4457bacb07a3.tar.gz samba-f6b0a99cefaedfa7642af31f8fcc4457bacb07a3.tar.bz2 samba-f6b0a99cefaedfa7642af31f8fcc4457bacb07a3.zip |
libcli/ldap: move generic ldap control encoding code to ldap_message.c
As they can we static there, we pass the specific handlers as parameter
where we need to support controls.
metze
Diffstat (limited to 'source4/ldap_server')
-rw-r--r-- | source4/ldap_server/ldap_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c index da44c02aa8..a924024160 100644 --- a/source4/ldap_server/ldap_server.c +++ b/source4/ldap_server/ldap_server.c @@ -104,7 +104,7 @@ static void ldapsrv_process_message(struct ldapsrv_connection *conn, bool ret; msg = call->replies->msg; - if (!ldap_encode(msg, &b, call)) { + if (!ldap_encode(msg, samba_ldap_control_handlers(), &b, call)) { DEBUG(0,("Failed to encode ldap reply of type %d\n", msg->type)); talloc_free(call); return; @@ -150,7 +150,7 @@ static NTSTATUS ldapsrv_decode(void *private_data, DATA_BLOB blob) return NT_STATUS_NO_MEMORY; } - status = ldap_decode(asn1, msg); + status = ldap_decode(asn1, samba_ldap_control_handlers(), msg); if (!NT_STATUS_IS_OK(status)) { asn1_free(asn1); return status; |