summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-09-25 16:40:30 -0700
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-02 17:57:12 +0200
commite6d82267454a4678484b62cd5b28527f845af84f (patch)
tree0cd1326e2f1d6a9aebea57a746132b1d935cb07a /source4/dsdb/samdb
parentab9c2320661901c05b217cc86a46e8b15e3f8425 (diff)
downloadsamba-e6d82267454a4678484b62cd5b28527f845af84f.tar.gz
samba-e6d82267454a4678484b62cd5b28527f845af84f.tar.bz2
samba-e6d82267454a4678484b62cd5b28527f845af84f.zip
s4:dsdb Return correct error on invalid attribute
This error per the Microsoft testsuite
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/objectclass.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/objectclass.c b/source4/dsdb/samdb/ldb_modules/objectclass.c
index cc88d6b96d..6d22141a3b 100644
--- a/source4/dsdb/samdb/ldb_modules/objectclass.c
+++ b/source4/dsdb/samdb/ldb_modules/objectclass.c
@@ -361,7 +361,8 @@ static int fix_attributes(struct ldb_context *ldb, const struct dsdb_schema *sch
if (!attribute) {
if (strcasecmp(msg->elements[i].name, "clearTextPassword") != 0) {
ldb_asprintf_errstring(ldb, "attribute %s is not a valid attribute in schema", msg->elements[i].name);
- return LDB_ERR_UNDEFINED_ATTRIBUTE_TYPE;
+ /* Apparently Windows sends exactly this behaviour */
+ return LDB_ERR_NO_SUCH_ATTRIBUTE;
}
} else {
msg->elements[i].name = attribute->lDAPDisplayName;