re-run make idl.
authorGünther Deschner <gd@samba.org>
Mon, 11 Aug 2008 17:07:51 +0000 (19:07 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 11 Aug 2008 17:12:25 +0000 (19:12 +0200)
Guenther
(This used to be commit 36c5de4702c03bd71d689aaecea87168133021c2)

source3/librpc/gen_ndr/libnetapi.h
source3/librpc/gen_ndr/ndr_libnetapi.c
source3/librpc/gen_ndr/ndr_libnetapi.h

index f1352c6461f826638c9e6920129c6270bc927475..04e62d14af3107e67cde0d6e402a95d9422cd05b 100644 (file)
@@ -16,6 +16,7 @@
 #define FILTER_INTERDOMAIN_TRUST_ACCOUNT       ( 0x0008 )
 #define FILTER_WORKSTATION_TRUST_ACCOUNT       ( 0x0010 )
 #define FILTER_SERVER_TRUST_ACCOUNT    ( 0x0020 )
+#define TIMEQ_FOREVER  ( (uint32_t)-1L )
 enum NET_API_STATUS
 #ifndef USE_UINT_ENUMS
  {
@@ -340,6 +341,58 @@ struct USER_INFO_X {
        uint32_t usriX_code_page;
 };
 
+struct USER_MODALS_INFO_0 {
+       uint32_t usrmod0_min_passwd_len;
+       uint32_t usrmod0_max_passwd_age;
+       uint32_t usrmod0_min_passwd_age;
+       uint32_t usrmod0_force_logoff;
+       uint32_t usrmod0_password_hist_len;
+};
+
+struct USER_MODALS_INFO_1 {
+       uint32_t usrmod1_role;
+       const char * usrmod1_primary;
+};
+
+struct USER_MODALS_INFO_2 {
+       const char * usrmod2_domain_name;
+       struct domsid *usrmod2_domain_id;/* [unique] */
+};
+
+struct USER_MODALS_INFO_3 {
+       uint32_t usrmod3_lockout_duration;
+       uint32_t usrmod3_lockout_observation_window;
+       uint32_t usrmod3_lockout_threshold;
+};
+
+struct USER_MODALS_INFO_1001 {
+       uint32_t usrmod1001_min_passwd_len;
+};
+
+struct USER_MODALS_INFO_1002 {
+       uint32_t usrmod1002_max_passwd_age;
+};
+
+struct USER_MODALS_INFO_1003 {
+       uint32_t usrmod1003_min_passwd_age;
+};
+
+struct USER_MODALS_INFO_1004 {
+       uint32_t usrmod1004_force_logoff;
+};
+
+struct USER_MODALS_INFO_1005 {
+       uint32_t usrmod1005_password_hist_len;
+};
+
+struct USER_MODALS_INFO_1006 {
+       uint32_t usrmod1006_role;
+};
+
+struct USER_MODALS_INFO_1007 {
+       const char * usrmod1007_primary;
+};
+
 struct NET_DISPLAY_USER {
        const char * usri1_name;
        const char * usri1_comment;
@@ -665,6 +718,35 @@ struct NetUserSetInfo {
 };
 
 
+struct NetUserModalsGet {
+       struct {
+               const char * server_name;
+               uint32_t level;
+       } in;
+
+       struct {
+               uint8_t **buffer;/* [ref] */
+               enum NET_API_STATUS result;
+       } out;
+
+};
+
+
+struct NetUserModalsSet {
+       struct {
+               const char * server_name;
+               uint32_t level;
+               uint8_t *buffer;/* [ref] */
+       } in;
+
+       struct {
+               uint32_t *parm_err;/* [ref] */
+               enum NET_API_STATUS result;
+       } out;
+
+};
+
+
 struct NetQueryDisplayInformation {
        struct {
                const char * server_name;/* [unique] */
index 64f1c4fbd08d339befbb2042e3a18d10660fa96d..393f0ad5e5b72926fb90a56c69eb7d375cc5c99e 100644 (file)
@@ -2613,6 +2613,69 @@ _PUBLIC_ void ndr_print_NetUserSetInfo(struct ndr_print *ndr, const char *name,
        ndr->depth--;
 }
 
+_PUBLIC_ void ndr_print_NetUserModalsGet(struct ndr_print *ndr, const char *name, int flags, const struct NetUserModalsGet *r)
+{
+       ndr_print_struct(ndr, name, "NetUserModalsGet");
+       ndr->depth++;
+       if (flags & NDR_SET_VALUES) {
+               ndr->flags |= LIBNDR_PRINT_SET_VALUES;
+       }
+       if (flags & NDR_IN) {
+               ndr_print_struct(ndr, "in", "NetUserModalsGet");
+               ndr->depth++;
+               ndr_print_string(ndr, "server_name", r->in.server_name);
+               ndr_print_uint32(ndr, "level", r->in.level);
+               ndr->depth--;
+       }
+       if (flags & NDR_OUT) {
+               ndr_print_struct(ndr, "out", "NetUserModalsGet");
+               ndr->depth++;
+               ndr_print_ptr(ndr, "buffer", r->out.buffer);
+               ndr->depth++;
+               ndr_print_ptr(ndr, "buffer", *r->out.buffer);
+               ndr->depth++;
+               if (*r->out.buffer) {
+                       ndr_print_uint8(ndr, "buffer", **r->out.buffer);
+               }
+               ndr->depth--;
+               ndr->depth--;
+               ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
+               ndr->depth--;
+       }
+       ndr->depth--;
+}
+
+_PUBLIC_ void ndr_print_NetUserModalsSet(struct ndr_print *ndr, const char *name, int flags, const struct NetUserModalsSet *r)
+{
+       ndr_print_struct(ndr, name, "NetUserModalsSet");
+       ndr->depth++;
+       if (flags & NDR_SET_VALUES) {
+               ndr->flags |= LIBNDR_PRINT_SET_VALUES;
+       }
+       if (flags & NDR_IN) {
+               ndr_print_struct(ndr, "in", "NetUserModalsSet");
+               ndr->depth++;
+               ndr_print_string(ndr, "server_name", r->in.server_name);
+               ndr_print_uint32(ndr, "level", r->in.level);
+               ndr_print_ptr(ndr, "buffer", r->in.buffer);
+               ndr->depth++;
+               ndr_print_uint8(ndr, "buffer", *r->in.buffer);
+               ndr->depth--;
+               ndr->depth--;
+       }
+       if (flags & NDR_OUT) {
+               ndr_print_struct(ndr, "out", "NetUserModalsSet");
+               ndr->depth++;
+               ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
+               ndr->depth++;
+               ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
+               ndr->depth--;
+               ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
+               ndr->depth--;
+       }
+       ndr->depth--;
+}
+
 _PUBLIC_ void ndr_print_NetQueryDisplayInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetQueryDisplayInformation *r)
 {
        ndr_print_struct(ndr, name, "NetQueryDisplayInformation");
index 6be6a3b5b30a716caf9e5b338f8e02c861559d53..9a72d985420d0d3083b56ed90c2511def7ef5360 100644 (file)
 
 #define NDR_NETUSERSETINFO (0x0e)
 
-#define NDR_NETQUERYDISPLAYINFORMATION (0x0f)
+#define NDR_NETUSERMODALSGET (0x0f)
 
-#define NDR_NETGROUPADD (0x10)
+#define NDR_NETUSERMODALSSET (0x10)
 
-#define NDR_NETGROUPDEL (0x11)
+#define NDR_NETQUERYDISPLAYINFORMATION (0x11)
 
-#define NDR_NETGROUPENUM (0x12)
+#define NDR_NETGROUPADD (0x12)
 
-#define NDR_NETGROUPSETINFO (0x13)
+#define NDR_NETGROUPDEL (0x13)
 
-#define NDR_NETGROUPGETINFO (0x14)
+#define NDR_NETGROUPENUM (0x14)
 
-#define NDR_NETGROUPADDUSER (0x15)
+#define NDR_NETGROUPSETINFO (0x15)
 
-#define NDR_NETGROUPDELUSER (0x16)
+#define NDR_NETGROUPGETINFO (0x16)
 
-#define NDR_NETGROUPGETUSERS (0x17)
+#define NDR_NETGROUPADDUSER (0x17)
 
-#define NDR_NETLOCALGROUPADD (0x18)
+#define NDR_NETGROUPDELUSER (0x18)
 
-#define NDR_NETLOCALGROUPDEL (0x19)
+#define NDR_NETGROUPGETUSERS (0x19)
 
-#define NDR_NETLOCALGROUPGETINFO (0x1a)
+#define NDR_NETLOCALGROUPADD (0x1a)
 
-#define NDR_NETLOCALGROUPSETINFO (0x1b)
+#define NDR_NETLOCALGROUPDEL (0x1b)
 
-#define NDR_NETLOCALGROUPENUM (0x1c)
+#define NDR_NETLOCALGROUPGETINFO (0x1c)
 
-#define NDR_NETREMOTETOD (0x1d)
+#define NDR_NETLOCALGROUPSETINFO (0x1d)
 
-#define NDR_LIBNETAPI_CALL_COUNT (30)
+#define NDR_NETLOCALGROUPENUM (0x1e)
+
+#define NDR_NETREMOTETOD (0x1f)
+
+#define NDR_LIBNETAPI_CALL_COUNT (32)
 enum ndr_err_code ndr_push_NET_API_STATUS(struct ndr_push *ndr, int ndr_flags, enum NET_API_STATUS r);
 enum ndr_err_code ndr_pull_NET_API_STATUS(struct ndr_pull *ndr, int ndr_flags, enum NET_API_STATUS *r);
 void ndr_print_NET_API_STATUS(struct ndr_print *ndr, const char *name, enum NET_API_STATUS r);
@@ -235,6 +239,12 @@ void ndr_print_NetUserGetInfo(struct ndr_print *ndr, const char *name, int flags
 enum ndr_err_code ndr_push_NetUserSetInfo(struct ndr_push *ndr, int flags, const struct NetUserSetInfo *r);
 enum ndr_err_code ndr_pull_NetUserSetInfo(struct ndr_pull *ndr, int flags, struct NetUserSetInfo *r);
 void ndr_print_NetUserSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetUserSetInfo *r);
+enum ndr_err_code ndr_push_NetUserModalsGet(struct ndr_push *ndr, int flags, const struct NetUserModalsGet *r);
+enum ndr_err_code ndr_pull_NetUserModalsGet(struct ndr_pull *ndr, int flags, struct NetUserModalsGet *r);
+void ndr_print_NetUserModalsGet(struct ndr_print *ndr, const char *name, int flags, const struct NetUserModalsGet *r);
+enum ndr_err_code ndr_push_NetUserModalsSet(struct ndr_push *ndr, int flags, const struct NetUserModalsSet *r);
+enum ndr_err_code ndr_pull_NetUserModalsSet(struct ndr_pull *ndr, int flags, struct NetUserModalsSet *r);
+void ndr_print_NetUserModalsSet(struct ndr_print *ndr, const char *name, int flags, const struct NetUserModalsSet *r);
 enum ndr_err_code ndr_push_NetQueryDisplayInformation(struct ndr_push *ndr, int flags, const struct NetQueryDisplayInformation *r);
 enum ndr_err_code ndr_pull_NetQueryDisplayInformation(struct ndr_pull *ndr, int flags, struct NetQueryDisplayInformation *r);
 void ndr_print_NetQueryDisplayInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetQueryDisplayInformation *r);