git.samba.org
/
ira
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s4/rodc: Fix the callbacks up the stack to handle referrals on modify requests
[ira/wip.git]
/
source4
/
dsdb
/
samdb
/
ldb_modules
/
instancetype.c
diff --git
a/source4/dsdb/samdb/ldb_modules/instancetype.c
b/source4/dsdb/samdb/ldb_modules/instancetype.c
index 0a297d587a9e13744e4f093d22e6c24072ebd382..7828ce1d2699f726ef2c95839265a6e3eedbb3c9 100644
(file)
--- a/
source4/dsdb/samdb/ldb_modules/instancetype.c
+++ b/
source4/dsdb/samdb/ldb_modules/instancetype.c
@@
-57,6
+57,10
@@
static int it_add_callback(struct ldb_request *req, struct ldb_reply *ares)
LDB_ERR_OPERATIONS_ERROR);
}
+ if (ares->type == LDB_REPLY_REFERRAL) {
+ return ldb_module_send_referral(ac->req, ares->referral);
+ }
+
if (ares->error != LDB_SUCCESS) {
return ldb_module_done(ac->req, ares->controls,
ares->response, ares->error);