s4-dsdb: give the DN on a shema attribute failure
authorAndrew Tridgell <tridge@samba.org>
Sun, 7 Nov 2010 00:25:00 +0000 (11:25 +1100)
committerAndrew Tridgell <tridge@samba.org>
Sun, 7 Nov 2010 22:50:05 +0000 (22:50 +0000)
source4/dsdb/schema/schema_init.c

index c1032f90c271deafda56f054524935c4d81c3669..bcb51f6b1ab8bd9b024f7f565400e3fbe937155f 100644 (file)
@@ -450,7 +450,7 @@ static int dsdb_schema_setup_ldb_schema_attribute(struct ldb_context *ldb,
        const struct ldb_val *get_string_val = ldb_msg_find_ldb_val(msg, attr); \
        if (get_string_val == NULL) { \
                if (strict) {                                     \
-                       d_printf("%s: %s == NULL\n", __location__, attr); \
+                       d_printf("%s: %s == NULL in %s\n", __location__, attr, ldb_dn_get_linearized(msg->dn)); \
                        return WERR_INVALID_PARAM;                      \
                } else {                                                \
                        (p)->elem = NULL;                               \