diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-09-11 17:41:38 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-09-11 17:41:38 +0200 |
commit | c0a863b6f35315a748fa3bb4ae4e4e7c48ad2102 (patch) | |
tree | a03797ac414c71c685247b8650d84b189c245c93 /source4/dsdb | |
parent | ea3f21dff6c28dc26a3cf9223da84ff4c545b22c (diff) | |
download | samba-c0a863b6f35315a748fa3bb4ae4e4e7c48ad2102.tar.gz samba-c0a863b6f35315a748fa3bb4ae4e4e7c48ad2102.tar.bz2 samba-c0a863b6f35315a748fa3bb4ae4e4e7c48ad2102.zip |
s4:ldb_register_samba_handlers - fix up and convert result codes to LDB/LDAP results
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/common/tests/dsdb_dn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/dsdb/common/tests/dsdb_dn.c b/source4/dsdb/common/tests/dsdb_dn.c index 183bce28d0..d01e858a0d 100644 --- a/source4/dsdb/common/tests/dsdb_dn.c +++ b/source4/dsdb/common/tests/dsdb_dn.c @@ -44,7 +44,7 @@ static bool torture_dsdb_dn_attrs(struct torture_context *torture) "Failed to init ldb"); torture_assert_int_equal(torture, - ldb_register_samba_handlers(ldb), 0, + ldb_register_samba_handlers(ldb), LDB_SUCCESS, "Failed to register Samba handlers"); ldb_set_utf8_fns(ldb, NULL, wrap_casefold); @@ -127,7 +127,7 @@ static bool torture_dsdb_dn_valid(struct torture_context *torture) "Failed to init ldb"); torture_assert_int_equal(torture, - ldb_register_samba_handlers(ldb), 0, + ldb_register_samba_handlers(ldb), LDB_SUCCESS, "Failed to register Samba handlers"); ldb_set_utf8_fns(ldb, NULL, wrap_casefold); @@ -249,7 +249,7 @@ static bool torture_dsdb_dn_invalid(struct torture_context *torture) "Failed to init ldb"); torture_assert_int_equal(torture, - ldb_register_samba_handlers(ldb), 0, + ldb_register_samba_handlers(ldb), LDB_SUCCESS, "Failed to register Samba handlers"); ldb_set_utf8_fns(ldb, NULL, wrap_casefold); |