diff options
author | Tim Potter <tpot@samba.org> | 2001-10-05 00:20:06 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-10-05 00:20:06 +0000 |
commit | 482a9ef278567a35d3bcad1c2048ee97d86bfb9c (patch) | |
tree | a4cf752314cb3605aaa9c204c873f8b221df03ff /source3/nsswitch/winbindd.h | |
parent | 18190fc0513d6fa8824fa0b105aeb16dd428106b (diff) | |
download | samba-482a9ef278567a35d3bcad1c2048ee97d86bfb9c.tar.gz samba-482a9ef278567a35d3bcad1c2048ee97d86bfb9c.tar.bz2 samba-482a9ef278567a35d3bcad1c2048ee97d86bfb9c.zip |
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)
Diffstat (limited to 'source3/nsswitch/winbindd.h')
-rw-r--r-- | source3/nsswitch/winbindd.h | 22 |
1 files changed, 9 insertions, 13 deletions
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" |