From 93c10333c51da2361a283ea1017be1788452dd75 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 27 Aug 2008 00:30:04 +0200 Subject: netapi: fix ENCRYPTED_PWLEN in IDL. Guenther (This used to be commit 2c6b3208d3bf3d44b58248e9068924657897c917) --- source3/librpc/idl/libnetapi.idl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/librpc/idl/libnetapi.idl') diff --git a/source3/librpc/idl/libnetapi.idl b/source3/librpc/idl/libnetapi.idl index 1bb0aafe94..6050caba0e 100644 --- a/source3/librpc/idl/libnetapi.idl +++ b/source3/librpc/idl/libnetapi.idl @@ -289,7 +289,7 @@ interface libnetapi uint32 usri20_user_id; } USER_INFO_20; - const int ENCRYPTED_PWLEN = 256; + const int ENCRYPTED_PWLEN = 16; [public] typedef struct { uint8 usri21_password[ENCRYPTED_PWLEN]; -- cgit From 965f947e27a9af53e4cd5167f16a17d9ae6116c0 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 27 Aug 2008 01:43:52 +0200 Subject: netapi: add usriX_profile/usriX_home_dir_drive/usriX_primary_group_id to USER_INFO_X in IDL. Guenther (This used to be commit 59e27519adebd45cbd5207cfa5df212d11ca648b) --- source3/librpc/idl/libnetapi.idl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/librpc/idl/libnetapi.idl') diff --git a/source3/librpc/idl/libnetapi.idl b/source3/librpc/idl/libnetapi.idl index 6050caba0e..71bbccb8fd 100644 --- a/source3/librpc/idl/libnetapi.idl +++ b/source3/librpc/idl/libnetapi.idl @@ -436,6 +436,9 @@ interface libnetapi string usriX_logon_server; uint32 usriX_country_code; uint32 usriX_code_page; + string usriX_profile; + string usriX_home_dir_drive; + uint32 usriX_primary_group_id; } USER_INFO_X; [nopush,nopull] NET_API_STATUS NetUserAdd( -- cgit From c5b924b4e77ad749ae0c7ad5090f8c37a52a1100 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 27 Aug 2008 11:47:39 +0200 Subject: netapi: add NetUserGetGroups to IDL. Guenther (This used to be commit 4d15d1ff20dee216b2fc064bc19712bd3a9cec70) --- source3/librpc/idl/libnetapi.idl | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) (limited to 'source3/librpc/idl/libnetapi.idl') diff --git a/source3/librpc/idl/libnetapi.idl b/source3/librpc/idl/libnetapi.idl index 71bbccb8fd..b9d94edf9a 100644 --- a/source3/librpc/idl/libnetapi.idl +++ b/source3/librpc/idl/libnetapi.idl @@ -512,6 +512,29 @@ interface libnetapi [out] uint32 *parm_err ); + /*******************************************/ + /* NetUserGetGroups */ + /*******************************************/ + + [public] typedef struct { + string grui0_name; + } GROUP_USERS_INFO_0; + + [public] typedef struct { + string grui1_name; + uint32 grui1_attributes; + } GROUP_USERS_INFO_1; + + [nopush,nopull] NET_API_STATUS NetUserGetGroups( + [in] string server_name, + [in] string user_name, + [in] uint32 level, + [out] uint8 **buffer, + [in] uint32 prefmaxlen, + [out,ref] uint32 *entries_read, + [out,ref] uint32 *total_entries + ); + /*******************************************/ /* NetUserModalsGet */ /*******************************************/ @@ -738,15 +761,6 @@ interface libnetapi /* NetGroupGetUsers */ /*******************************************/ - [public] typedef struct { - string grui0_name; - } GROUP_USERS_INFO_0; - - [public] typedef struct { - string grui1_name; - uint32 grui1_attributes; - } GROUP_USERS_INFO_1; - [nopush,nopull] NET_API_STATUS NetGroupGetUsers( [in] string server_name, [in] string group_name, -- cgit From d97c694e4b0917f67eaa7470462c99c5fdad67f7 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 27 Aug 2008 19:14:32 +0200 Subject: netapi: fix IDL for USER_INFO_4. Guenther (This used to be commit ca69c442f2007d46729a6fce920800d25195e946) --- source3/librpc/idl/libnetapi.idl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/librpc/idl/libnetapi.idl') diff --git a/source3/librpc/idl/libnetapi.idl b/source3/librpc/idl/libnetapi.idl index b9d94edf9a..f5af5445e3 100644 --- a/source3/librpc/idl/libnetapi.idl +++ b/source3/librpc/idl/libnetapi.idl @@ -244,7 +244,7 @@ interface libnetapi string usri4_logon_server; uint32 usri4_country_code; uint32 usri4_code_page; - dom_sid *usri4_user_sid; + domsid *usri4_user_sid; uint32 usri4_primary_group_id; string usri4_profile; string usri4_home_dir_drive; -- cgit From 6f7afee75188071eb69a2c81e646b3bed4c408e9 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 27 Aug 2008 22:35:14 +0200 Subject: netapi: add USER_PRIV_* constants to IDL. Guenther (This used to be commit 3bb042d0e14e8a4f1feaace7f310143ff44a933a) --- source3/librpc/idl/libnetapi.idl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/librpc/idl/libnetapi.idl') diff --git a/source3/librpc/idl/libnetapi.idl b/source3/librpc/idl/libnetapi.idl index f5af5445e3..6853cee439 100644 --- a/source3/librpc/idl/libnetapi.idl +++ b/source3/librpc/idl/libnetapi.idl @@ -150,6 +150,11 @@ interface libnetapi string usri0_name; } USER_INFO_0; + /* priv */ + const int USER_PRIV_GUEST = 0; + const int USER_PRIV_USER = 1; + const int USER_PRIV_ADMIN = 2; + [public] typedef struct { string usri1_name; string usri1_password; -- cgit From 592f3a120153c24cf53bc8535a3b4611dbfe5f1d Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 27 Aug 2008 23:40:44 +0200 Subject: netapi: add AF_OP constants to IDL. Guenther (This used to be commit 2bd24258782811a014a191650883d50d4bf7d0b0) --- source3/librpc/idl/libnetapi.idl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source3/librpc/idl/libnetapi.idl') diff --git a/source3/librpc/idl/libnetapi.idl b/source3/librpc/idl/libnetapi.idl index 6853cee439..b80c6fe2b9 100644 --- a/source3/librpc/idl/libnetapi.idl +++ b/source3/librpc/idl/libnetapi.idl @@ -166,6 +166,14 @@ interface libnetapi string usri1_script_path; } USER_INFO_1; + /* auth_flags in USER_INFO_2 */ + + const int AF_OP_PRINT = 0x1; + const int AF_OP_COMM = 0x2; + const int AF_OP_SERVER = 0x4; + const int AF_OP_ACCOUNTS = 0x8; + const int AF_SETTABLE_BITS = (AF_OP_PRINT | AF_OP_COMM | AF_OP_SERVER | AF_OP_ACCOUNTS); + [public] typedef struct { string usri2_name; string usri2_password; -- cgit From 8e578838828357bac0769f1bfe5273c8244daec3 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 28 Aug 2008 00:58:24 +0200 Subject: netapi: add NetShareAdd to IDL. Guenther (This used to be commit 58d3a682631aa1fc3d90078db7c301de77cb7e73) --- source3/librpc/idl/libnetapi.idl | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'source3/librpc/idl/libnetapi.idl') diff --git a/source3/librpc/idl/libnetapi.idl b/source3/librpc/idl/libnetapi.idl index b80c6fe2b9..fb70841921 100644 --- a/source3/librpc/idl/libnetapi.idl +++ b/source3/librpc/idl/libnetapi.idl @@ -962,4 +962,26 @@ interface libnetapi [in] string server_name, [out,ref] uint8 **buffer ); + + /*******************************************/ + /* NetShareAdd */ + /*******************************************/ + + typedef struct { + string shi2_netname; + uint32 shi2_type; + string shi2_remark; + uint32 shi2_permissions; + uint32 shi2_max_uses; + uint32 shi2_current_uses; + string shi2_path; + string shi2_passwd; + } SHARE_INFO_2; + + [nopush,nopull] NET_API_STATUS NetShareAdd( + [in] string server_name, + [in] uint32 level, + [in] uint8 *buffer, + [out] uint32 *parm_err + ); } -- cgit From 02bd97b0b008d83d612de214e4302f38f92045bc Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 28 Aug 2008 11:54:16 +0200 Subject: netapi: add USER_MAXSTORAGE_UNLIMITED to IDL. Guenther (This used to be commit 71623f853d475eac8b4293d454706c3288bcbc10) --- source3/librpc/idl/libnetapi.idl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/librpc/idl/libnetapi.idl') diff --git a/source3/librpc/idl/libnetapi.idl b/source3/librpc/idl/libnetapi.idl index fb70841921..62363c4bee 100644 --- a/source3/librpc/idl/libnetapi.idl +++ b/source3/librpc/idl/libnetapi.idl @@ -174,6 +174,8 @@ interface libnetapi const int AF_OP_ACCOUNTS = 0x8; const int AF_SETTABLE_BITS = (AF_OP_PRINT | AF_OP_COMM | AF_OP_SERVER | AF_OP_ACCOUNTS); + const int USER_MAXSTORAGE_UNLIMITED = (uint32_t)-1L; + [public] typedef struct { string usri2_name; string usri2_password; -- cgit From 639bb00a67ff15916ce5029d3f3ebe2434456afc Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 29 Aug 2008 12:46:01 +0200 Subject: netapi: add NetJoinFlags to IDL. Guenther (This used to be commit 10345cb987f8652f5e94e612910bfcd0478b26bc) --- source3/librpc/idl/libnetapi.idl | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'source3/librpc/idl/libnetapi.idl') diff --git a/source3/librpc/idl/libnetapi.idl b/source3/librpc/idl/libnetapi.idl index 62363c4bee..0b91876832 100644 --- a/source3/librpc/idl/libnetapi.idl +++ b/source3/librpc/idl/libnetapi.idl @@ -29,13 +29,28 @@ interface libnetapi /* NetJoinDomain */ /*******************************************/ + typedef [public,bitmap32bit] bitmap { + NETSETUP_JOIN_DOMAIN = 0x00000001, + NETSETUP_ACCT_CREATE = 0x00000002, + NETSETUP_ACCT_DELETE = 0x00000004, + NETSETUP_WIN9X_UPGRADE = 0x00000010, + NETSETUP_DOMAIN_JOIN_IF_JOINED = 0x00000020, + NETSETUP_JOIN_UNSECURE = 0x00000040, + NETSETUP_MACHINE_PWD_PASSED = 0x00000080, + NETSETUP_DEFER_SPN_SET = 0x00000100, + NETSETUP_JOIN_DC_ACCOUNT = 0x00000200, + NETSETUP_JOIN_WITH_NEW_NAME = 0x00000400, + NETSETUP_INSTALL_INVOCATION = 0x00040000, + NETSETUP_IGNORE_UNSUPPORTED_FLAGS = 0x10000000 + } NetJoinFlags; + [nopush,nopull] NET_API_STATUS NetJoinDomain( [in,unique] string *server, [in,ref] string *domain, [in,unique] string *account_ou, [in,unique] string *account, [in,unique] string *password, - [in] uint32 join_flags + [in] NetJoinFlags join_flags ); /*******************************************/ @@ -46,7 +61,7 @@ interface libnetapi [in,unique] string *server_name, [in,unique] string *account, [in,unique] string *password, - [in] uint32 unjoin_flags + [in] NetJoinFlags unjoin_flags ); /*******************************************/ -- cgit