[SCM] Samba Shared Repository - branch v3-2-stable updated -
release-3-2-0pre2-244-g02c9176
Karolin Seeger
kseeger at samba.org
Mon Mar 31 06:10:45 GMT 2008
The branch, v3-2-stable has been updated
via 02c9176ec91184900846be011f92ff6b8524b948 (commit)
from fd1c56610e5a1672ab87980b4acee50698aaa1c7 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-stable
- Log -----------------------------------------------------------------
commit 02c9176ec91184900846be011f92ff6b8524b948
Author: Michael Adam <obnox at samba.org>
Date: Sat Mar 29 01:05:17 2008 +0100
winbindd_cache: add missing validation function for pwinfo cache entry
Michael
(cherry picked from commit 6d3fc63bfab06346fa57719e8747397873a3c46d)
-----------------------------------------------------------------------
Summary of changes:
source/winbindd/winbindd_cache.c | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/winbindd/winbindd_cache.c b/source/winbindd/winbindd_cache.c
index a8a98e5..0f8bd49 100644
--- a/source/winbindd/winbindd_cache.c
+++ b/source/winbindd/winbindd_cache.c
@@ -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},
--
Samba Shared Repository
More information about the samba-cvs
mailing list