diff options
author | Volker Lendecke <vl@samba.org> | 2009-08-29 19:28:42 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-08-29 19:42:27 +0200 |
commit | 129562206a17a6debf3a21a82381fdcf470c8665 (patch) | |
tree | 2cd54a67f3b2cebadf1ced0ceb42144becce0d8f /source3 | |
parent | e47491e83c27c5cd8dbc10e69b57f54ff570f703 (diff) | |
download | samba-129562206a17a6debf3a21a82381fdcf470c8665.tar.gz samba-129562206a17a6debf3a21a82381fdcf470c8665.tar.bz2 samba-129562206a17a6debf3a21a82381fdcf470c8665.zip |
s3:winbind: add a fake NDR winbind cache validator
Diffstat (limited to 'source3')
-rw-r--r-- | source3/winbindd/winbindd_cache.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index 8a879fd3d5..65bbe75cd7 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} }; |