summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-11-22 14:38:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:31 -0500
commit1b624b69bda1eb94a0aa511eba3df0b9549a3000 (patch)
tree06b292711b37be6f8cda652ff972909e5152412b /source3/rpc_parse
parent4c34e1b7e27bb72075f22b22b2b11d8d654ffdf5 (diff)
downloadsamba-1b624b69bda1eb94a0aa511eba3df0b9549a3000.tar.gz
samba-1b624b69bda1eb94a0aa511eba3df0b9549a3000.tar.bz2
samba-1b624b69bda1eb94a0aa511eba3df0b9549a3000.zip
r11858: Fill in the clientside TRUSTED_DOMAIN_INFO_EX query.
Guenther (This used to be commit 02f13dee6d0bbca71a991682bfe214ed8363e818)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_lsa.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_lsa.c b/source3/rpc_parse/parse_lsa.c
index d924ea27d1..3d28b657f3 100644
--- a/source3/rpc_parse/parse_lsa.c
+++ b/source3/rpc_parse/parse_lsa.c
@@ -3009,6 +3009,44 @@ static BOOL lsa_io_trustdom_query_4(const char *desc, TRUSTED_DOMAIN_INFO_PASSWO
/*******************************************************************
********************************************************************/
+static BOOL lsa_io_trustdom_query_6(const char *desc, TRUSTED_DOMAIN_INFO_EX *info_ex,
+ prs_struct *ps, int depth)
+{
+ uint32 dom_sid_ptr;
+
+ if (!smb_io_unihdr("domain_name_hdr", &info_ex->domain_name.hdr, ps, depth))
+ return False;
+
+ if (!smb_io_unihdr("netbios_name_hdr", &info_ex->netbios_name.hdr, ps, depth))
+ return False;
+
+ if (!prs_uint32("dom_sid_ptr", ps, depth, &dom_sid_ptr))
+ return False;
+
+ if (!prs_uint32("trust_direction", ps, depth, &info_ex->trust_direction))
+ return False;
+
+ if (!prs_uint32("trust_type", ps, depth, &info_ex->trust_type))
+ return False;
+
+ if (!prs_uint32("trust_attributes", ps, depth, &info_ex->trust_attributes))
+ return False;
+
+ if (!smb_io_unistr2("domain_name_unistring", &info_ex->domain_name.unistring, info_ex->domain_name.hdr.buffer, ps, depth))
+ return False;
+
+ if (!smb_io_unistr2("netbios_name_unistring", &info_ex->netbios_name.unistring, info_ex->netbios_name.hdr.buffer, ps, depth))
+ return False;
+
+ if (!smb_io_dom_sid2("sid", &info_ex->sid, ps, depth))
+ return False;
+
+ return True;
+}
+
+/*******************************************************************
+********************************************************************/
+
static BOOL lsa_io_trustdom_query(const char *desc, prs_struct *ps, int depth, LSA_TRUSTED_DOMAIN_INFO *info)
{
prs_debug(ps, depth, desc, "lsa_io_trustdom_query");
@@ -3033,6 +3071,10 @@ static BOOL lsa_io_trustdom_query(const char *desc, prs_struct *ps, int depth, L
if(!lsa_io_trustdom_query_4("password", &info->password, ps, depth))
return False;
break;
+ case 6:
+ if(!lsa_io_trustdom_query_6("info_ex", &info->info_ex, ps, depth))
+ return False;
+ break;
default:
DEBUG(0,("unsupported info-level: %d\n", info->info_class));
return False;