summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2001-11-22 16:54:48 +0000
committerJean-François Micouleau <jfm@samba.org>2001-11-22 16:54:48 +0000
commit33e20222e03482b20224b0b077beefb4079baa34 (patch)
tree21b376dea5bc41e8c9556100f0dbc23e196e57d8 /source3/rpc_parse
parent2e8ae887857249822b84461fd503105555873508 (diff)
downloadsamba-33e20222e03482b20224b0b077beefb4079baa34.tar.gz
samba-33e20222e03482b20224b0b077beefb4079baa34.tar.bz2
samba-33e20222e03482b20224b0b077beefb4079baa34.zip
add another command to rpcclient: getdispname. Show the full description
of a privilege. J.F. (This used to be commit 84035ae72f422edadd9fa7e493c3d8176bb6a53d)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_lsa.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_lsa.c b/source3/rpc_parse/parse_lsa.c
index 34feac32a7..767eb5ef19 100644
--- a/source3/rpc_parse/parse_lsa.c
+++ b/source3/rpc_parse/parse_lsa.c
@@ -1416,6 +1416,21 @@ BOOL lsa_io_r_enum_privs(char *desc, LSA_R_ENUM_PRIVS *r_q, prs_struct *ps, int
return True;
}
+void init_lsa_priv_get_dispname(LSA_Q_PRIV_GET_DISPNAME *trn, POLICY_HND *hnd, char *name, uint16 lang_id, uint16 lang_id_sys)
+{
+ int len_name = strlen(name);
+
+ if(len_name == 0)
+ len_name = 1;
+
+ memcpy(&trn->pol, hnd, sizeof(trn->pol));
+
+ init_uni_hdr(&trn->hdr_name, len_name);
+ init_unistr2(&trn->name, name, len_name);
+ trn->lang_id = lang_id;
+ trn->lang_id_sys = lang_id_sys;
+}
+
/*******************************************************************
reads or writes a structure.
********************************************************************/