CVE-2022-32746 s4/dsdb/objectclass_attrs: Fix typo
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 14 Jun 2022 09:09:53 +0000 (21:09 +1200)
committerJule Anger <janger@samba.org>
Sun, 24 Jul 2022 09:41:53 +0000 (11:41 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15009

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
source4/dsdb/samdb/ldb_modules/objectclass_attrs.c

index 6ab46a729a207530ac5b47c20cdca48a056b6ff0..2a77353cdfc0c65eb82e50b935385597b9ed6382 100644 (file)
@@ -263,7 +263,7 @@ static int attr_handler(struct oc_context *ac)
                                                                                                LDB_CONTROL_AS_SYSTEM_OID);
                                        if (!dsdb_module_am_system(ac->module) && !as_system) {
                                                ldb_asprintf_errstring(ldb,
-                                                                      "objectclass_attrs: attribute '%s' on entry '%s' must can only be modified as system",
+                                                                      "objectclass_attrs: attribute '%s' on entry '%s' can only be modified as system",
                                                                       msg->elements[i].name,
                                                                       ldb_dn_get_linearized(msg->dn));
                                                return LDB_ERR_CONSTRAINT_VIOLATION;