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

Reorganize retrieving errors and server-sent controls

This attaches the data to the tldap_message instead of the tevent_req.

It adds tldap_ctx_lastmsg() to retrieve the last message for the users of
the sync wrappers.
This commit is contained in:
Volker Lendecke
2009-06-20 18:42:18 +02:00
parent 22cb9bdfd3
commit a3eb0a32a9
3 changed files with 72 additions and 93 deletions

View File

@ -318,7 +318,7 @@ const char *tldap_errstr(TALLOC_CTX *mem_ctx, struct tldap_context *ld, int rc)
const char *ld_error = NULL;
char *res;
ld_error = tldap_ctx_diagnosticmessage(ld);
ld_error = tldap_msg_diagnosticmessage(tldap_ctx_lastmsg(ld));
res = talloc_asprintf(mem_ctx, "LDAP error %d (%s), %s", rc,
tldap_err2string(rc),
ld_error ? ld_error : "unknown");