summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/winbindd.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-10 06:05:21 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-10 06:05:21 +0000
commit217c39f23282e20f96a61a0d5a2434b3f5f66a86 (patch)
treeb44e8710fafc61ddd3095c49de83995cbe8d345a /source/nsswitch/winbindd.h
parentb1d7d800680f77e02185bb237982b284414aac1e (diff)
downloadsamba-217c39f23282e20f96a61a0d5a2434b3f5f66a86.tar.gz
samba-217c39f23282e20f96a61a0d5a2434b3f5f66a86.tar.xz
samba-217c39f23282e20f96a61a0d5a2434b3f5f66a86.zip
winbindd backends can now be marked "consistent" or "inconsistent"
consistent backends (like ADS) always give correct primary group info, so we can play cache tricks to speed things up a lot inconsistent backends (like MSRPC) need to fetch stuff more often
Diffstat (limited to 'source/nsswitch/winbindd.h')
-rw-r--r--source/nsswitch/winbindd.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/nsswitch/winbindd.h b/source/nsswitch/winbindd.h
index 26181326bb2..e22824f33c5 100644
--- a/source/nsswitch/winbindd.h
+++ b/source/nsswitch/winbindd.h
@@ -85,10 +85,12 @@ typedef struct {
} WINBIND_USERINFO;
/* per-domain methods. This is how LDAP vs RPC is selected
- This will eventually be the sole entry point to all the methods,
- I'm just starting small
*/
struct winbindd_methods {
+ /* does this backend provide a consistent view of the data? (ie. is the primary group
+ always correct) */
+ BOOL consistent;
+
/* get a list of users, returning a WINBIND_USERINFO for each one */
NTSTATUS (*query_user_list)(struct winbindd_domain *domain,
TALLOC_CTX *mem_ctx,