diff options
author | Simo Sorce <idra@samba.org> | 2003-05-03 01:29:18 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2003-05-03 01:29:18 +0000 |
commit | 921215cf4bfbd4d7457f81e181bb1a74a4531ca1 (patch) | |
tree | 15cef88fc0aa912d53ceaaf26bc6708e0ef17c20 /source/nsswitch/winbindd_cache.c | |
parent | 28b73a39219fd717c60eba207143fb40d5ff123a (diff) | |
download | samba-921215cf4bfbd4d7457f81e181bb1a74a4531ca1.tar.gz samba-921215cf4bfbd4d7457f81e181bb1a74a4531ca1.tar.xz samba-921215cf4bfbd4d7457f81e181bb1a74a4531ca1.zip |
fixes to *_util.c files
add winbindd_passdb backend
this makes it possible to have nua accounts on security = user servers to
show up in unic through nss_winbind.so
the problem is that we do not have group support, so nss group support is
not very good at this time (read: totally absent)
we NEED group support in passdb
Diffstat (limited to 'source/nsswitch/winbindd_cache.c')
-rw-r--r-- | source/nsswitch/winbindd_cache.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/nsswitch/winbindd_cache.c b/source/nsswitch/winbindd_cache.c index 5eabcfca208..27e168b6f99 100644 --- a/source/nsswitch/winbindd_cache.c +++ b/source/nsswitch/winbindd_cache.c @@ -100,7 +100,12 @@ static struct winbind_cache *get_cache(struct winbindd_domain *domain) ret = smb_xmalloc(sizeof(*ret)); ZERO_STRUCTP(ret); - switch (lp_security()) { + + if (!strcmp(domain->name, lp_workgroup()) && (lp_security() == SEC_USER)) { + extern struct winbindd_methods passdb_methods; + ret->backend = &passdb_methods; + + } else switch (lp_security()) { #ifdef HAVE_ADS case SEC_ADS: { extern struct winbindd_methods ads_methods; |