winbindd: only call winbindd_validate_cache when not in offline logon mode.
commit9c48ccb25eb7eb564ce18ea1bda51861488a7538
authorMichael Adam <obnox@samba.org>
Thu, 10 Apr 2008 09:53:53 +0000 (10 11:53 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 10 Apr 2008 14:10:28 +0000 (10 16:10 +0200)
tree64e5e31c1255956247570acb1aea4987a3f06059
parenta5ef5ca119a151022435589ac310a798f71fd379
winbindd: only call winbindd_validate_cache when not in offline logon mode.

originally, the cache was cleared before calling validate, but
this way, we skipt the validation of the database when not in
offline logon mode.

This is put into a new wrapper function winbindd_cache_validate_and_initialize()
which is now called in winbindd.c instead calling validate and
initialize functions separately.

Michael
(cherry picked from commit 641b5e3fecfce9581536de8daf6d7e6ecbefaf34)
source/winbindd/winbindd.c
source/winbindd/winbindd_cache.c