svn commit: samba r16816 - in trunk/source/nsswitch: .

gd at samba.org gd at samba.org
Wed Jul 5 09:10:57 GMT 2006


Author: gd
Date: 2006-07-05 09:10:56 +0000 (Wed, 05 Jul 2006)
New Revision: 16816

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16816

Log:
Reverting some hunks from Volkers r16803, fixing cached credentials and
removal of oldest creds when reaching MAX_CACHED_LOGINS.

Guenther

Modified:
   trunk/source/nsswitch/winbindd_cache.c


Changeset:
Modified: trunk/source/nsswitch/winbindd_cache.c
===================================================================
--- trunk/source/nsswitch/winbindd_cache.c	2006-07-05 06:47:34 UTC (rev 16815)
+++ trunk/source/nsswitch/winbindd_cache.c	2006-07-05 09:10:56 UTC (rev 16816)
@@ -223,9 +223,8 @@
 }
 
 /*
-  pull a time_t from a cache entry -- apparently unused 
+  pull a time_t from a cache entry 
 */
-#if 0 
 static time_t centry_time(struct cache_entry *centry)
 {
 	time_t ret;
@@ -238,7 +237,6 @@
 	centry->ofs += sizeof(time_t);
 	return ret;
 }
-#endif
 
 /* pull a string from a cache entry, using the supplied
    talloc context 
@@ -843,6 +841,7 @@
 	struct winbind_cache *cache = get_cache(domain);
 	struct cache_entry *centry = NULL;
 	NTSTATUS status;
+	time_t t;
 	uint32 rid;
 
 	if (!cache->tdb) {
@@ -865,6 +864,7 @@
 		return NT_STATUS_OBJECT_NAME_NOT_FOUND;
 	}
 
+	t = centry_time(centry);
 	*cached_nt_pass = (const uint8 *)centry_string(centry, mem_ctx);
 
 #if DEBUG_PASSWORD



More information about the samba-cvs mailing list