diff options
author | Matthieu Patou <mat@matws.net> | 2010-02-23 16:03:16 +0300 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-02-24 14:50:30 +0100 |
commit | 00aeca7d7f6a940b208e7549e0d7c88f744f1d63 (patch) | |
tree | 4e5ef7a32a66fb32d57afdfeb477a0184f97e07f /source4 | |
parent | 8416570ea31a3370774fe6884f443876ea2cba3c (diff) | |
download | samba-00aeca7d7f6a940b208e7549e0d7c88f744f1d63.tar.gz samba-00aeca7d7f6a940b208e7549e0d7c88f744f1d63.tar.bz2 samba-00aeca7d7f6a940b208e7549e0d7c88f744f1d63.zip |
dsdb: Add a more explicit error message for constructed attributes
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/objectclass.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/objectclass.c b/source4/dsdb/samdb/ldb_modules/objectclass.c index 475b53a7cb..8bcac1153b 100644 --- a/source4/dsdb/samdb/ldb_modules/objectclass.c +++ b/source4/dsdb/samdb/ldb_modules/objectclass.c @@ -364,6 +364,7 @@ static int fix_check_attributes(struct ldb_context *ldb, /* We have to deny write operations on constructed attributes */ if ((attribute->systemFlags & DS_FLAG_ATTR_IS_CONSTRUCTED) != 0) { + ldb_asprintf_errstring(ldb, "attribute %s is constructed", msg->elements[i].name); if (op == LDB_ADD) { return LDB_ERR_UNDEFINED_ATTRIBUTE_TYPE; } else { |