1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

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>
This commit is contained in:
Andrew Tridgell 2009-12-16 14:57:32 +11:00
parent 6c2125572c
commit f9302f9e08

View File

@ -668,6 +668,8 @@ _PUBLIC_ bool ldap_encode(struct ldap_message *msg,
if (!ldap_encode_control(mem_ctx, data, if (!ldap_encode_control(mem_ctx, data,
control_handlers, control_handlers,
msg->controls[i])) { msg->controls[i])) {
DEBUG(1,("Unable to encode control %s\n",
msg->controls[i]->oid));
return false; return false;
} }
} }