r24575: Implement setpwent
[jelmer/samba4-debian.git] / source / winbind / wb_server.h
index 37debbb5ddc891b222870fb31ffa5c6c68b30def..359dcb82e2afe4710851c90ba105a206026b8153 100644 (file)
@@ -23,7 +23,6 @@
 #include "nsswitch/winbindd_nss.h"
 #include "libnet/libnet.h"
 
-
 #define WINBINDD_SAMBA3_SOCKET "pipe"
 /* the privileged socket is in smbd_tmp_dir() */
 #define WINBINDD_SAMBA3_PRIVILEGED_SOCKET "winbind_pipe"
@@ -106,6 +105,20 @@ struct wbsrv_connection {
        safe_strcpy(dest, src, sizeof(dest)-1);\
 } while(0)
 
+/*
+  state of a pwent query
+*/
+struct wbsrv_pwent {
+       /* Current UserList structure, contains 1+ user structs */
+       struct libnet_UserList *user_list;
+
+       /* Index of the next user struct in the current UserList struct */
+       uint32_t page_index;
+
+       /* The libnet_ctx to use for the libnet_UserList call */
+       struct libnet_context *libnet_ctx;
+};
+
 /*
   state of one request