diff options
author | Luke Leighton <lkcl@samba.org> | 1998-11-11 14:23:55 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-11-11 14:23:55 +0000 |
commit | 9f14f281ff7efa1af0242a1dd1f5220d5cfdbf49 (patch) | |
tree | 65504cd76855cbf4e4662fdb4b776d24469b33aa /source3/include | |
parent | 0e09fba835d0d65e2a927befaf3713dd481d8939 (diff) | |
download | samba-9f14f281ff7efa1af0242a1dd1f5220d5cfdbf49.tar.gz samba-9f14f281ff7efa1af0242a1dd1f5220d5cfdbf49.tar.bz2 samba-9f14f281ff7efa1af0242a1dd1f5220d5cfdbf49.zip |
changed syntax of registry commands so keys can start with HKLM or HKU.
sorted lookupsids command
(This used to be commit 13a0ee851fe0ce9acddfe57f9aba19fc78085c39)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 14 | ||||
-rw-r--r-- | source3/include/rpc_reg.h | 2 | ||||
-rw-r--r-- | source3/include/rpcclient.h | 5 |
3 files changed, 12 insertions, 9 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 05dbf3e610..7eb4f4e49d 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -281,6 +281,8 @@ char *tab_depth(int depth); int str_checksum(const char *s); void zero_free(void *p, size_t size); int set_maxfiles(int requested_max); +void reg_get_subkey(char *full_keyname, char *key_name, char *subkey_name); +BOOL reg_split_key(char *full_keyname, uint32 *reg_type, char *key_name); /*The following definitions come from lib/util_file.c */ @@ -358,6 +360,7 @@ BOOL string_init(char **dest,char *src); void string_free(char **s); BOOL string_set(char **dest,char *src); BOOL string_sub(char *s,char *pattern,char *insert); +void split_at_last_component(char *path, char *front, char sep, char *back); /*The following definitions come from lib/util_unistr.c */ @@ -1267,10 +1270,11 @@ BOOL do_lsa_lookup_sids(struct cli_state *cli, POLICY_HND *hnd, int num_sids, DOM_SID **sids, - char **names); + char ***names, + int *num_names); BOOL do_lsa_query_info_pol(struct cli_state *cli, POLICY_HND *hnd, uint16 info_class, - fstring domain_name, fstring domain_sid); + fstring domain_name, DOM_SID *domain_sid); BOOL do_lsa_close(struct cli_state *cli, POLICY_HND *hnd); /*The following definitions come from rpc_client/cli_netlogon.c */ @@ -1295,9 +1299,8 @@ void cli_nt_session_close(struct cli_state *cli); /*The following definitions come from rpc_client/cli_reg.c */ -BOOL do_reg_connect(struct cli_state *cli, char *full_keyname, - POLICY_HND *reg_hnd, - POLICY_HND *key_hnd); +BOOL do_reg_connect(struct cli_state *cli, char *full_keyname, char *key_name, + POLICY_HND *reg_hnd); BOOL do_reg_open_hklm(struct cli_state *cli, uint16 unknown_0, uint32 level, POLICY_HND *hnd); BOOL do_reg_open_hku(struct cli_state *cli, uint16 unknown_0, uint32 level, @@ -2095,7 +2098,6 @@ void cmd_netlogon_login_test(struct client_info *info); void cmd_reg_enum(struct client_info *info); void cmd_reg_query_key(struct client_info *info); -void cmd_reg_test2(struct client_info *info); void cmd_reg_create_val(struct client_info *info); void cmd_reg_delete_val(struct client_info *info); void cmd_reg_delete_key(struct client_info *info); diff --git a/source3/include/rpc_reg.h b/source3/include/rpc_reg.h index 9166134c27..4eff16c3f4 100644 --- a/source3/include/rpc_reg.h +++ b/source3/include/rpc_reg.h @@ -42,6 +42,8 @@ #define REG_INFO 0x11 #define REG_CLOSE 0x05 +#define HKEY_LOCAL_MACHINE 0x80000000 +#define HKEY_USERS 0x80000003 /* REG_Q_OPEN_HKLM */ typedef struct q_reg_open_policy_info diff --git a/source3/include/rpcclient.h b/source3/include/rpcclient.h index eab4d20703..dc2be5d2b8 100644 --- a/source3/include/rpcclient.h +++ b/source3/include/rpcclient.h @@ -60,15 +60,14 @@ struct nt_client_info /************** \PIPE\winreg stuff ********************/ POLICY_HND reg_pol_connect; - POLICY_HND reg_pol_unk_4; /************** \PIPE\lsarpc stuff ********************/ POLICY_HND lsa_info_pol; /* domain member */ - fstring level3_sid; - fstring level5_sid; + DOM_SID level3_sid; + DOM_SID level5_sid; /* domain controller */ fstring level3_dom; |