test password_hash bypass master4-gensec
authorStefan Metzmacher <metze@samba.org>
Mon, 13 Dec 2010 10:42:48 +0000 (11:42 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 14 Dec 2010 12:22:40 +0000 (13:22 +0100)
source4/dsdb/samdb/ldb_modules/password_hash.c

index 75df54be294e4b3542410dd949a14e6a528bb63b..51b0997392ba5a6bad1ed494270174e8bd00c3f8 100644 (file)
@@ -184,6 +184,9 @@ static int password_hash_bypass(struct ldb_module *module, struct ldb_request *r
        sce = dsdb_get_single_valued_attr(msg, "supplementalCredentials",
                                          request->operation);
 
+#undef ldb_error
+#define ldb_error(ldb, ecode, reason) (ldb_debug(ldb, LDB_DEBUG_FATAL, "reason[%s]\n", reason),abort(), ldb_error_at(ldb, ecode, reason, __FILE__, __LINE__))
+
 #define CHECK_HASH_ELEMENT(e, min, max) do {\
        if (e && e->num_values) { \
                unsigned int _count; \
@@ -544,6 +547,10 @@ static int password_hash_bypass(struct ldb_module *module, struct ldb_request *r
        return ldb_next_request(module, request);
 }
 
+#define ldb_next_request(m, r) password_hash_bypass(m, r)
+#undef ldb_error
+#define ldb_error(ldb, ecode, reason) ldb_error_at(ldb, ecode, reason, __FILE__, __LINE__)
+
 /* Get the NT hash, and fill it in as an entry in the password history, 
    and specify it into io->g.nt_hash */