s3-winbindd: add cm_connect_lsa_tcp().
[samba.git] / source3 / winbindd / winbindd.h
index 454fea70e692cd823ab7240eb67eee03a34dcc34..c0df6fde3e00d7ec2fac73acd750ea6c3eb75de3 100644 (file)
@@ -65,8 +65,10 @@ struct winbindd_cli_state {
                                                   * 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 */
@@ -86,6 +88,13 @@ struct getpwent_state {
        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 {
@@ -106,6 +115,7 @@ struct winbindd_cm_conn {
        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;