summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-06 22:27:13 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-07 10:27:23 +0100
commitf1a8fbfc980d648253e96bee88676b7ce478c1de (patch)
treebc69fe3feb152c220cf24c51b7b293552a24366b /source4/dsdb/samdb
parent4217734a51adbcdf3dcf45599e119247958802af (diff)
downloadsamba-f1a8fbfc980d648253e96bee88676b7ce478c1de.tar.gz
samba-f1a8fbfc980d648253e96bee88676b7ce478c1de.tar.bz2
samba-f1a8fbfc980d648253e96bee88676b7ce478c1de.zip
s4:descriptor LDB module - don't ignore referrals if we are executing an ordinary external search operation
Referrals are valid results.
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/descriptor.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/descriptor.c b/source4/dsdb/samdb/ldb_modules/descriptor.c
index 9b950affda..71f1ddd6f6 100644
--- a/source4/dsdb/samdb/ldb_modules/descriptor.c
+++ b/source4/dsdb/samdb/ldb_modules/descriptor.c
@@ -566,17 +566,15 @@ static int descriptor_search_callback(struct ldb_request *req, struct ldb_reply
return ldb_module_send_entry(ac->req, ares->message, ares->controls);
case LDB_REPLY_REFERRAL:
- /* ignore referrals */
- break;
+ return ldb_module_send_referral(ac->req, ares->referral);
case LDB_REPLY_DONE:
return ldb_module_done(ac->req, ares->controls,
ares->response, ares->error);
}
- talloc_free(ares);
- return LDB_SUCCESS;
fail:
+ talloc_free(ares);
return ldb_module_done(ac->req, NULL, NULL, ret);
}