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/common | |
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/common')
-rw-r--r-- | source4/dsdb/common/util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index 771d30a4cd..7064fcf67d 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -2751,6 +2751,7 @@ int samdb_is_rodc(struct ldb_context *sam_ctx, const struct GUID *objectGUID, bo if (ret != LDB_SUCCESS) { DEBUG(1,(("Failed to find our own NTDS Settings object by objectGUID=%s!\n"), GUID_string(tmp_ctx, objectGUID))); + *is_rodc = false; talloc_free(tmp_ctx); return ret; } |