diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-11-11 19:25:32 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-11-12 16:34:15 +1100 |
commit | 081d57345fad546d73f9ec97e61f59c64cefee58 (patch) | |
tree | 07b03291373e2c8294b99a6b7d97a59327c110da /source4/dsdb | |
parent | 5940ca60e23d142e4d3d0b2ce12f191663147d03 (diff) | |
download | samba-081d57345fad546d73f9ec97e61f59c64cefee58.tar.gz samba-081d57345fad546d73f9ec97e61f59c64cefee58.tar.bz2 samba-081d57345fad546d73f9ec97e61f59c64cefee58.zip |
s4:dsdb/schema Allow a schema set when bound against a remote LDAP server
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/schema/schema_set.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/dsdb/schema/schema_set.c b/source4/dsdb/schema/schema_set.c index 4c9e608801..ab870741cf 100644 --- a/source4/dsdb/schema/schema_set.c +++ b/source4/dsdb/schema/schema_set.c @@ -139,8 +139,8 @@ static int dsdb_schema_set_attributes(struct ldb_context *ldb, struct dsdb_schem } } - if (ret == LDB_ERR_OPERATIONS_ERROR || ret == LDB_ERR_INSUFFICIENT_ACCESS_RIGHTS) { - /* We might be on a read-only DB */ + if (ret == LDB_ERR_OPERATIONS_ERROR || ret == LDB_ERR_INSUFFICIENT_ACCESS_RIGHTS || ret == LDB_ERR_INVALID_DN_SYNTAX) { + /* We might be on a read-only DB or LDAP */ ret = LDB_SUCCESS; } if (ret != LDB_SUCCESS) { @@ -166,7 +166,7 @@ static int dsdb_schema_set_attributes(struct ldb_context *ldb, struct dsdb_schem ret = samdb_replace(ldb, mem_ctx, mod_msg); } } - if (ret == LDB_ERR_OPERATIONS_ERROR || ret == LDB_ERR_INSUFFICIENT_ACCESS_RIGHTS) { + if (ret == LDB_ERR_OPERATIONS_ERROR || ret == LDB_ERR_INSUFFICIENT_ACCESS_RIGHTS || ret == LDB_ERR_INVALID_DN_SYNTAX) { /* We might be on a read-only DB */ ret = LDB_SUCCESS; } |