]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
netapi: add NetUserModalsSet and NetUserModalsGet to IDL.
authorGünther Deschner <gd@samba.org>
Thu, 31 Jul 2008 14:42:42 +0000 (16:42 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 11 Aug 2008 17:12:15 +0000 (19:12 +0200)
Guenther

source/librpc/idl/libnetapi.idl

index 30dccebd015cecb7cceb4ff4a94632fec0fb3b5c..d9745d0c73f5e032a4501a4c58f155e6c2733d94 100644 (file)
@@ -509,6 +509,81 @@ interface libnetapi
                [out] uint32 *parm_err
                );
 
+       /*******************************************/
+       /* NetUserModalsGet                        */
+       /*******************************************/
+
+       const int TIMEQ_FOREVER = (uint32_t)-1L;
+
+       typedef struct {
+               uint32 usrmod0_min_passwd_len;
+               uint32 usrmod0_max_passwd_age;
+               uint32 usrmod0_min_passwd_age;
+               uint32 usrmod0_force_logoff;
+               uint32 usrmod0_password_hist_len;
+       } USER_MODALS_INFO_0;
+
+       typedef struct {
+               uint32 usrmod1_role;
+               string usrmod1_primary;
+       } USER_MODALS_INFO_1;
+
+       typedef struct {
+               string usrmod2_domain_name;
+               domsid *usrmod2_domain_id;
+       } USER_MODALS_INFO_2;
+
+       typedef struct {
+               uint32 usrmod3_lockout_duration;
+               uint32 usrmod3_lockout_observation_window;
+               uint32 usrmod3_lockout_threshold;
+       } USER_MODALS_INFO_3;
+
+       typedef struct {
+               uint32 usrmod1001_min_passwd_len;
+       } USER_MODALS_INFO_1001;
+
+       typedef struct {
+               uint32 usrmod1002_max_passwd_age;
+       } USER_MODALS_INFO_1002;
+
+       typedef struct {
+               uint32 usrmod1003_min_passwd_age;
+       } USER_MODALS_INFO_1003;
+
+       typedef struct {
+               uint32 usrmod1004_force_logoff;
+       } USER_MODALS_INFO_1004;
+
+       typedef struct {
+               uint32 usrmod1005_password_hist_len;
+       } USER_MODALS_INFO_1005;
+
+       typedef struct {
+               uint32 usrmod1006_role;
+       } USER_MODALS_INFO_1006;
+
+       typedef struct {
+               string usrmod1007_primary;
+       } USER_MODALS_INFO_1007;
+
+       [nopush,nopull] NET_API_STATUS NetUserModalsGet(
+               [in] string server_name,
+               [in] uint32 level,
+               [out,ref] uint8 **buffer
+               );
+
+       /*******************************************/
+       /* NetUserModalsSet                        */
+       /*******************************************/
+
+       [nopush,nopull] NET_API_STATUS NetUserModalsSet(
+               [in] string server_name,
+               [in] uint32 level,
+               [in] uint8 *buffer,
+               [out,ref] uint32 *parm_err
+               );
+
        /*******************************************/
        /* NetQueryDisplayInformation              */
        /*******************************************/