s4:ldap_backend.c/"map_ldb_error" - handle errors similar to "PyErr_SetLdbError"
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Wed, 21 Sep 2011 09:59:06 +0000 (11:59 +0200)
committerAndrew Tridgell <tridge@samba.org>
Tue, 11 Oct 2011 06:42:07 +0000 (08:42 +0200)
commit96a9f823edd9c9387d6708fa8c3a4dc5de75127d
treefeebe2334fe385909eb2dadb88c556685faf1886
parent7599d59d1afd0814c14953a830ba4a618187e95e
s4:ldap_backend.c/"map_ldb_error" - handle errors similar to "PyErr_SetLdbError"

If the call was done using an error string ("add_err_string"), then use that one
without an additional "ldb_strerror()" for the definitive LDAP output.
Otherwise generate one using "ldb_strerror()".
This omits redundancies in the error string generation (twice the same
information by "ldb_strerror()").

Signed-off-by: Andrew Tridgell <tridge@samba.org>
source4/ldap_server/ldap_backend.c