dsdb: make the name of non related class more obvious
authorMatthieu Patou <mat@matws.net>
Mon, 6 May 2013 08:09:05 +0000 (01:09 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 14 May 2013 03:21:31 +0000 (15:21 +1200)
Signed-off-by: Matthieu Patou <mat@matws.net>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/objectclass.c

index de154ec0180fb9fd96d6e8c2feb7aa1530b570f4..f6f7338d3cf597f2f11058765df1ac3017a53171 100644 (file)
@@ -127,8 +127,9 @@ static int check_unrelated_objectclasses(struct ldb_module *module,
                }
 
                ldb_asprintf_errstring(ldb,
-                                      "objectclass: the objectclass '%s' seems to be unrelated to the entry!",
-                                      tmp_class->lDAPDisplayName);
+                                      "objectclass: the objectclass '%s' seems to be unrelated to %s!",
+                                      tmp_class->lDAPDisplayName,
+                                      struct_objectclass->lDAPDisplayName);
                return LDB_ERR_OBJECT_CLASS_VIOLATION;
        }