r26529: Indeed, this belongs in the schema module. Ranged results need to use
authorAndrew Bartlett <abartlet@samba.org>
Tue, 18 Dec 2007 23:39:27 +0000 (00:39 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:51:52 +0000 (05:51 +0100)
an attribute with ';' in the name.

Andrew Bartlett

source/lib/ldb/common/ldb_msg.c

index 528d1d54f1e0f4658fdedd57af767de3139b8c3a..c1ea9db56bfb11a4319fb6503258199bcac471dd 100644 (file)
@@ -124,11 +124,6 @@ int ldb_msg_add_empty(     struct ldb_message *msg,
 {
        struct ldb_message_element *els;
 
-       /* FIXME: we should probably leave this to the schema module to check */
-       if (! ldb_valid_attr_name(attr_name)) {
-               return LDB_ERR_OPERATIONS_ERROR;
-       }
-
        els = talloc_realloc(msg, msg->elements, 
                             struct ldb_message_element, msg->num_elements+1);
        if (!els) {