]> git.samba.org - amitay/samba.git/commitdiff
ldap: give a debug error when we don't know a control
authorAndrew Tridgell <tridge@samba.org>
Wed, 16 Dec 2009 03:57:32 +0000 (14:57 +1100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 16 Dec 2009 09:56:23 +0000 (20:56 +1100)
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>

libcli/ldap/ldap_message.c

index 8b0f8a2ea1560f36f6f9e96dfd57fc31f9528f0b..1e4421442ca832324a6e2dd763294e8a97c6c9c7 100644 (file)
@@ -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;
                        }
                }