* initialized? */
bool getgrent_initialized; /* Has getgrent_state been
* initialized? */
- struct getent_state *getpwent_state; /* State for getpwent() */
struct getent_state *getgrent_state; /* State for getgrent() */
+
+ struct getpwent_state *pwent_state; /* State for getpwent() */
+ struct getgrent_state *grent_state; /* State for getgrent() */
};
/* State between get{pw,gr}ent() calls */
struct wbint_userinfo *users;
};
+struct getgrent_state {
+ struct winbindd_domain *domain;
+ int next_group;
+ int num_groups;
+ struct wbint_Principal *groups;
+};
+
/* Storage for cached getpwent() user entries */
struct getpwent_user {
struct policy_handle sam_connect_handle, sam_domain_handle;
struct rpc_pipe_client *lsa_pipe;
+ struct rpc_pipe_client *lsa_pipe_tcp;
struct policy_handle lsa_policy;
struct rpc_pipe_client *netlogon_pipe;