summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-16 14:57:32 +1100
committerAndrew Tridgell <tridge@samba.org>2009-12-16 20:56:23 +1100
commitf9302f9e08d68f6fd974e02668c2bae273981688 (patch)
treede8bab96666d599f15e885ee50616d78edcf20ce
parent6c2125572cfbcd1878dfe99893ddae37f95d1f6e (diff)
downloadsamba-f9302f9e08d68f6fd974e02668c2bae273981688.tar.gz
samba-f9302f9e08d68f6fd974e02668c2bae273981688.tar.bz2
samba-f9302f9e08d68f6fd974e02668c2bae273981688.zip
ldap: give a debug error when we don't know a control
This interface should really have a proper error interface, but at least a DEBUG() gives the user a chance of finding the error Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--libcli/ldap/ldap_message.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcli/ldap/ldap_message.c b/libcli/ldap/ldap_message.c
index 8b0f8a2ea1..1e4421442c 100644
--- a/libcli/ldap/ldap_message.c
+++ b/libcli/ldap/ldap_message.c
@@ -668,6 +668,8 @@ _PUBLIC_ bool ldap_encode(struct ldap_message *msg,
if (!ldap_encode_control(mem_ctx, data,
control_handlers,
msg->controls[i])) {
+ DEBUG(1,("Unable to encode control %s\n",
+ msg->controls[i]->oid));
return false;
}
}