diff options
author | Simo Sorce <idra@samba.org> | 2006-02-22 05:21:43 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:51:59 -0500 |
commit | d590dea10b3abf93fcc8138189291e8b66bae7d7 (patch) | |
tree | d859a38ca49d480c36e3a8a3ef2ac28e2b964066 /source4/lib/ldb/ldb_ldap | |
parent | 00fe70e5b917769418f68eaa255d3a06a9a08ce7 (diff) | |
download | samba-d590dea10b3abf93fcc8138189291e8b66bae7d7.tar.gz samba-d590dea10b3abf93fcc8138189291e8b66bae7d7.tar.bz2 samba-d590dea10b3abf93fcc8138189291e8b66bae7d7.zip |
r13615: Make ldb_set_errstring get ldb instead of module as parameter.
The module was just used to get to the ldb so it was meningless.
Also add LDB_WAIT_ONCE e relative code in ldb_ildap.c
(This used to be commit d5b467b7c132b0bd4d23918ba7bf3370b1afcce8)
Diffstat (limited to 'source4/lib/ldb/ldb_ldap')
-rw-r--r-- | source4/lib/ldb/ldb_ldap/ldb_ldap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/lib/ldb/ldb_ldap/ldb_ldap.c b/source4/lib/ldb/ldb_ldap/ldb_ldap.c index 7233498eb3..c27ded7767 100644 --- a/source4/lib/ldb/ldb_ldap/ldb_ldap.c +++ b/source4/lib/ldb/ldb_ldap/ldb_ldap.c @@ -78,7 +78,7 @@ static int lldb_rename(struct ldb_module *module, const struct ldb_dn *olddn, co lldb->last_rc = ldap_rename_s(lldb->ldap, old_dn, newrdn, parentdn, 1, NULL, NULL); if (lldb->last_rc != LDAP_SUCCESS) { - ldb_set_errstring(module, talloc_strdup(module, ldap_err2string(lldb->last_rc))); + ldb_set_errstring(module->ldb, talloc_strdup(module, ldap_err2string(lldb->last_rc))); ret = -1; } @@ -108,7 +108,7 @@ static int lldb_delete(struct ldb_module *module, const struct ldb_dn *edn) lldb->last_rc = ldap_delete_s(lldb->ldap, dn); if (lldb->last_rc != LDAP_SUCCESS) { - ldb_set_errstring(module, talloc_strdup(module, ldap_err2string(lldb->last_rc))); + ldb_set_errstring(module->ldb, talloc_strdup(module, ldap_err2string(lldb->last_rc))); ret = -1; } @@ -226,7 +226,7 @@ static int lldb_search_bytree(struct ldb_module *module, const struct ldb_dn *ba 0, &ldapres); talloc_free(search_base); if (lldb->last_rc != LDAP_SUCCESS) { - ldb_set_errstring(module, talloc_strdup(module, ldap_err2string(lldb->last_rc))); + ldb_set_errstring(module->ldb, talloc_strdup(module, ldap_err2string(lldb->last_rc))); return lldb->last_rc; } @@ -412,7 +412,7 @@ static int lldb_add(struct ldb_module *module, const struct ldb_message *msg) lldb->last_rc = ldap_add_s(lldb->ldap, dn, mods); if (lldb->last_rc != LDAP_SUCCESS) { - ldb_set_errstring(module, talloc_strdup(module, ldap_err2string(lldb->last_rc))); + ldb_set_errstring(module->ldb, talloc_strdup(module, ldap_err2string(lldb->last_rc))); ret = -1; } @@ -451,7 +451,7 @@ static int lldb_modify(struct ldb_module *module, const struct ldb_message *msg) lldb->last_rc = ldap_modify_s(lldb->ldap, dn, mods); if (lldb->last_rc != LDAP_SUCCESS) { - ldb_set_errstring(module, talloc_strdup(module, ldap_err2string(lldb->last_rc))); + ldb_set_errstring(module->ldb, talloc_strdup(module, ldap_err2string(lldb->last_rc))); ret = -1; } |