mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
winbindd_cache: add missing validation function for pwinfo cache entry
Michael
(This used to be commit 6d3fc63bfa
)
This commit is contained in:
parent
43fdd1748c
commit
2487f0c88c
@ -3209,6 +3209,29 @@ static int validate_de(TALLOC_CTX *mem_ctx, const char *keystr, TDB_DATA dbuf,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int validate_pwinfo(TALLOC_CTX *mem_ctx, const char *keystr,
|
||||
TDB_DATA dbuf, struct tdb_validation_status *state)
|
||||
{
|
||||
struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
|
||||
|
||||
if (!centry) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
(void)centry_string(centry, mem_ctx);
|
||||
(void)centry_string(centry, mem_ctx);
|
||||
(void)centry_string(centry, mem_ctx);
|
||||
(void)centry_uint32(centry);
|
||||
|
||||
centry_free(centry);
|
||||
|
||||
if (!(state->success)) {
|
||||
return 1;
|
||||
}
|
||||
DEBUG(10,("validate_pwinfo: %s ok\n", keystr));
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int validate_trustdoms(TALLOC_CTX *mem_ctx, const char *keystr, TDB_DATA dbuf,
|
||||
struct tdb_validation_status *state)
|
||||
{
|
||||
@ -3307,6 +3330,7 @@ struct key_val_struct {
|
||||
{"GM/", validate_gm},
|
||||
{"DR/", validate_dr},
|
||||
{"DE/", validate_de},
|
||||
{"NSS/PWINFO/", validate_pwinfo},
|
||||
{"TRUSTDOMS/", validate_trustdoms},
|
||||
{"TRUSTDOMCACHE/", validate_trustdomcache},
|
||||
{"WINBINDD_OFFLINE", validate_offline},
|
||||
|
Loading…
Reference in New Issue
Block a user