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 | 8b232cbb3e44179bb48fe000c9236678f65b8c25 (patch) | |
tree | af1ac36d3cfd9ef5eeb3548ae1afdc6a09762d44 /source3/nsswitch/winbindd_cache.c | |
parent | 8caaebf56e02c0c4754e79145819c89b66b552cc (diff) | |
download | samba-8b232cbb3e44179bb48fe000c9236678f65b8c25.tar.gz samba-8b232cbb3e44179bb48fe000c9236678f65b8c25.tar.bz2 samba-8b232cbb3e44179bb48fe000c9236678f65b8c25.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
(This used to be commit 921215cf4bfbd4d7457f81e181bb1a74a4531ca1)
Diffstat (limited to 'source3/nsswitch/winbindd_cache.c')
-rw-r--r-- | source3/nsswitch/winbindd_cache.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index 5eabcfca20..27e168b6f9 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/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; |