git.samba.org
/
nivanova
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c21255
)
ldap: give a debug error when we don't know a control
author
Andrew Tridgell
<tridge@samba.org>
Wed, 16 Dec 2009 03:57:32 +0000
(14:57 +1100)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/libcli/ldap/ldap_message.c
b/libcli/ldap/ldap_message.c
index 8b0f8a2ea1560f36f6f9e96dfd57fc31f9528f0b..1e4421442ca832324a6e2dd763294e8a97c6c9c7 100644
(file)
--- 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;
}
}