svn commit: samba r22845 - in branches/SAMBA_3_0/source/nsswitch: .

obnox at samba.org obnox at samba.org
Mon May 14 12:57:25 GMT 2007


Author: obnox
Date: 2007-05-14 12:57:24 +0000 (Mon, 14 May 2007)
New Revision: 22845

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

Log:
Modified and extended the winbindd cache validation code:

* Replaced signal catching/longjmp magic by a fork:
  Let the child do the actual validation of the entries.
  Exit code and signals are intercepted by waitpid.
* Fix logic so that also encounter of an unknown key in the 
  tdb leads to an error.
* Extended status of validation is kept in a (as yet simple)
  stuct and communicated over a pipe from child to parent.
* Added two validation_ functions for two new keys.

The call of winbindd_validate_cache is still commented out
in the winbindd main loop. But I am currently testing it
and so far it seems to work fine.

The next step in my plan is to generalize the validation
mechanism to a tdb_open_log_validate function in lib/util_tdb.c.
There ist nothing very special about the cache tdb here,
and this might be useful elsewhere...

Michael


Modified:
   branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c


Changeset:
Sorry, the patch is too large (751 lines) to include; please use WebSVN to see it!
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22845


More information about the samba-cvs mailing list