From 129562206a17a6debf3a21a82381fdcf470c8665 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 29 Aug 2009 19:28:42 +0200 Subject: [PATCH] s3:winbind: add a fake NDR winbind cache validator --- source3/winbindd/winbindd_cache.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index 8a879fd3d5c..65bbe75cd7f 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -3615,6 +3615,16 @@ static int validate_offline(TALLOC_CTX *mem_ctx, const char *keystr, TDB_DATA db return 0; } +static int validate_ndr(TALLOC_CTX *mem_ctx, const char *keystr, TDB_DATA dbuf, + struct tdb_validation_status *state) +{ + /* + * Ignore validation for now. The proper way to do this is with a + * checksum. Just pure parsing does not really catch much. + */ + return 0; +} + static int validate_cache_version(TALLOC_CTX *mem_ctx, const char *keystr, TDB_DATA dbuf, struct tdb_validation_status *state) { @@ -3660,6 +3670,7 @@ struct key_val_struct { {"NSS/NA/", validate_nss_na}, {"NSS/AN/", validate_nss_an}, {"WINBINDD_OFFLINE", validate_offline}, + {"NDR/", validate_ndr}, {WINBINDD_CACHE_VERSION_KEYSTR, validate_cache_version}, {NULL, NULL} }; -- 2.11.4.GIT