diff options
author | Anatoliy Atanasov <anatoliy.atanasov@postpath.com> | 2010-05-04 11:49:18 +0200 |
---|---|---|
committer | Anatoliy Atanasov <anatoliy.atanasov@postpath.com> | 2010-05-04 18:32:18 +0200 |
commit | f84aeea7399eec38f7906dedaf3652af48c3d184 (patch) | |
tree | 1bd0d1f8757053ab5b2fa779d5c5464626b42994 /source4/dsdb/samdb/ldb_modules/partition.c | |
parent | bcdaa23798f74cdec8973201a849f562929ea416 (diff) | |
download | samba-f84aeea7399eec38f7906dedaf3652af48c3d184.tar.gz samba-f84aeea7399eec38f7906dedaf3652af48c3d184.tar.bz2 samba-f84aeea7399eec38f7906dedaf3652af48c3d184.zip |
s4/rodc: Support read-only database
Check on modify if we are RODC and return referral.
On the ldap backend side now we pass context and ldb_modify_default_callback
to propagate the referral error to the client.
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/partition.c')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/partition.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/partition.c b/source4/dsdb/samdb/ldb_modules/partition.c index 19bd03633a..6c0d9cdd4e 100644 --- a/source4/dsdb/samdb/ldb_modules/partition.c +++ b/source4/dsdb/samdb/ldb_modules/partition.c @@ -167,8 +167,7 @@ static int partition_req_callback(struct ldb_request *req, switch (ares->type) { case LDB_REPLY_REFERRAL: - /* ignore referrals for now */ - break; + return ldb_module_send_referral(ac->req, ares->referral); case LDB_REPLY_ENTRY: if (ac->req->operation != LDB_SEARCH) { |