From 482a9ef278567a35d3bcad1c2048ee97d86bfb9c Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 5 Oct 2001 00:20:06 +0000 Subject: This is the start of a bit of a rewrite of winbindd's connection handling. I've wrapped up all the decisions about managing, making and closing connections into a connection manager in nsswitch/winbindd_cm.c. It's rather incomplete at the moment - only querying basic user info works at the moment (i.e finger -m DOMAIN/user) and everything else is broken. Jeremy, please take a look and I'll start moving across the rest of winbindd to this new system. (This used to be commit c369cf5af787ed9c642778d21f162716fbf0620e) --- source3/nsswitch/winbindd.h | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'source3/nsswitch/winbindd.h') diff --git a/source3/nsswitch/winbindd.h b/source3/nsswitch/winbindd.h index fe25d5ba5e..17282cf131 100644 --- a/source3/nsswitch/winbindd.h +++ b/source3/nsswitch/winbindd.h @@ -68,17 +68,11 @@ struct getpwent_user { /* Server state structure */ struct winbindd_state { - /* Netbios name of PDC */ - fstring controller; - + /* User and group id pool */ + uid_t uid_low, uid_high; /* Range of uids to allocate */ gid_t gid_low, gid_high; /* Range of gids to allocate */ - - /* Cached handle to lsa pipe */ - CLI_POLICY_HND lsa_handle; - BOOL lsa_handle_open; - BOOL pwdb_initialised; }; extern struct winbindd_state server_state; /* Server information */ @@ -90,22 +84,24 @@ struct winbindd_domain { /* Domain information */ fstring name; /* Domain name */ - fstring controller; /* NetBIOS name of DC */ DOM_SID sid; /* SID for this domain */ BOOL got_domain_info; /* Got controller and sid */ /* Cached handles to samr pipe */ - CLI_POLICY_HND sam_handle, sam_dom_handle; - BOOL sam_handle_open, sam_dom_handle_open; - time_t last_check; - struct winbindd_domain *prev, *next; /* Linked list info */ }; extern struct winbindd_domain *domain_list; /* List of domains we know */ +/* Used to glue a policy handle and cli_state together */ + +typedef struct { + struct cli_state *cli; + POLICY_HND pol; +} CLI_POLICY_HND; + #include "winbindd_proto.h" #include "rpc_parse.h" -- cgit