summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_cache.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-02-07 17:55:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:09:57 -0500
commit3ad6e4d2790d8beea8227db3fe7ed05a9b0a2eeb (patch)
tree71045d0d6dc0350eefd9d2eccb579e7ceb8111d3 /source3/nsswitch/winbindd_cache.c
parent88aae1a6e8c12bb933509ae36cb4a6cf2fc6602b (diff)
downloadsamba-3ad6e4d2790d8beea8227db3fe7ed05a9b0a2eeb.tar.gz
samba-3ad6e4d2790d8beea8227db3fe7ed05a9b0a2eeb.tar.bz2
samba-3ad6e4d2790d8beea8227db3fe7ed05a9b0a2eeb.zip
r13377: Fix from Volker: Make offline authentication work with NT4 as well
(handle no ACB_NORMAL flag and save name2sid as early as possible). Guenther (This used to be commit a04a5e40b774b7fe535e9cbbabddf94ee5578005)
Diffstat (limited to 'source3/nsswitch/winbindd_cache.c')
-rw-r--r--source3/nsswitch/winbindd_cache.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c
index 910e30b07e..297c608bc1 100644
--- a/source3/nsswitch/winbindd_cache.c
+++ b/source3/nsswitch/winbindd_cache.c
@@ -2048,6 +2048,14 @@ BOOL lookup_cached_name(TALLOC_CTX *mem_ctx,
return NT_STATUS_IS_OK(status);
}
+void cache_name2sid(struct winbindd_domain *domain,
+ const char *domain_name, const char *name,
+ enum SID_NAME_USE type, const DOM_SID *sid)
+{
+ wcache_save_name_to_sid(domain, NT_STATUS_OK, domain_name, name,
+ sid, type);
+}
+
/* delete all centries that don't have NT_STATUS_OK set */
static int traverse_fn_cleanup(TDB_CONTEXT *the_tdb, TDB_DATA kbuf,
TDB_DATA dbuf, void *state)