diff options
author | Simo Sorce <idra@samba.org> | 2006-08-13 07:32:05 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:15:31 -0500 |
commit | a9ad616a6820cb98f85e2543f65a2b711e080da7 (patch) | |
tree | a09e78dd0546a6aeb1505974bd994f642738233d | |
parent | c017cb1461375edfa64844b179516a650e0618c9 (diff) | |
download | samba-a9ad616a6820cb98f85e2543f65a2b711e080da7.tar.gz samba-a9ad616a6820cb98f85e2543f65a2b711e080da7.tar.bz2 samba-a9ad616a6820cb98f85e2543f65a2b711e080da7.zip |
r17513: ldb_set_errstring is an ldb private string, samdb uses DEBUG() statements
(This used to be commit c57b6420aa4a220257df714aaccb016acb4bae24)
-rw-r--r-- | source4/dsdb/samdb/samdb.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/dsdb/samdb/samdb.c b/source4/dsdb/samdb/samdb.c index 2136294661..3c2283a471 100644 --- a/source4/dsdb/samdb/samdb.c +++ b/source4/dsdb/samdb/samdb.c @@ -27,7 +27,6 @@ #include "librpc/gen_ndr/ndr_misc.h" #include "librpc/gen_ndr/ndr_security.h" #include "lib/ldb/include/ldb.h" -#include "lib/ldb/include/ldb_private.h" #include "lib/ldb/include/ldb_errors.h" #include "libcli/security/security.h" #include "auth/credentials/credentials.h" @@ -690,7 +689,7 @@ int samdb_copy_template(struct ldb_context *ldb, return ret; } if (res->count != 1) { - ldb_set_errstring(ldb, talloc_asprintf(ldb, "samdb_copy_template: ERROR: template '%s' matched %d records, expected 1\n", filter, + DEBUG(1, ("samdb_copy_template: ERROR: template '%s' matched %d records, expected 1\n", filter, res->count)); talloc_free(res); return LDB_ERR_OPERATIONS_ERROR; @@ -720,7 +719,7 @@ int samdb_copy_template(struct ldb_context *ldb, ret = samdb_find_or_add_value(ldb, msg, el->name, (char *)el->values[j].data); if (ret) { - ldb_set_errstring(ldb, talloc_asprintf(ldb, "Adding objectClass %s failed.\n", el->values[j].data)); + DEBUG(1, ( "Adding objectClass %s failed.\n", el->values[j].data)); talloc_free(res); return ret; } @@ -728,7 +727,7 @@ int samdb_copy_template(struct ldb_context *ldb, ret = samdb_find_or_add_attribute(ldb, msg, el->name, (char *)el->values[j].data); if (ret) { - ldb_set_errstring(ldb, talloc_asprintf(ldb, "Adding attribute %s failed.\n", el->name)); + DEBUG(1, ("Adding attribute %s failed.\n", el->name)); talloc_free(res); return ret; } |