summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-04 20:48:52 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-07 14:47:19 +0200
commit2d3760c04cd4a17a8c85196a0a7c4275e3b7050c (patch)
treef6b566861f16474cb488e88b21bb10d6d18bf97d /source4/dsdb/samdb
parent2a294d380f13edad6fcdd3572336ba797baaa0e1 (diff)
downloadsamba-2d3760c04cd4a17a8c85196a0a7c4275e3b7050c.tar.gz
samba-2d3760c04cd4a17a8c85196a0a7c4275e3b7050c.tar.bz2
samba-2d3760c04cd4a17a8c85196a0a7c4275e3b7050c.zip
s4:objectclass LDB module - fix error result if an entry doesn't contain a structural objectclass
We need to return LDB_ERR_UNWILLING_TO_PERFORM (not LDB_ERR_NAMING_VIOLATION).
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/objectclass.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/objectclass.c b/source4/dsdb/samdb/ldb_modules/objectclass.c
index 8e3b7aaab4..396ebac7b3 100644
--- a/source4/dsdb/samdb/ldb_modules/objectclass.c
+++ b/source4/dsdb/samdb/ldb_modules/objectclass.c
@@ -556,9 +556,9 @@ static int objectclass_do_add(struct oc_context *ac)
objectclass = get_last_structural_class(schema,objectclass_element);
if(objectclass == NULL) {
ldb_asprintf_errstring(ldb,
- "Failed to find a structural class for %s",
- ldb_dn_get_linearized(msg->dn));
- return LDB_ERR_NAMING_VIOLATION;
+ "Failed to find a structural class for %s",
+ ldb_dn_get_linearized(msg->dn));
+ return LDB_ERR_UNWILLING_TO_PERFORM;
}
rdn_name = ldb_dn_get_rdn_name(msg->dn);