Add snooping of sid->domain mapping from POLICY_ACCOUNT_DOMAIN_INFO structures

svn path=/trunk/; revision=7713
This commit is contained in:
Ronnie Sahlberg 2003-05-22 11:48:28 +00:00
parent 5feaba4955
commit 1909e86e15
2 changed files with 6 additions and 4 deletions

View File

@ -3,7 +3,7 @@
* Copyright 2001,2003 Tim Potter <tpot@samba.org>
* 2002 Added LSA command dissectors Ronnie Sahlberg
*
* $Id: packet-dcerpc-lsa.c,v 1.81 2003/05/22 11:03:15 sahlberg Exp $
* $Id: packet-dcerpc-lsa.c,v 1.82 2003/05/22 11:48:28 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -810,11 +810,11 @@ lsa_dissect_POLICY_ACCOUNT_DOMAIN_INFO(tvbuff_t *tvb, int offset,
/* account */
offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
hf_lsa_acct, 0);
hf_lsa_domain, 0);
/* sid */
offset = dissect_ndr_nt_PSID(tvb, offset,
pinfo, tree, drep, -1);
pinfo, tree, drep, hf_lsa_domain_sid);
proto_item_set_len(item, offset-old_offset);
return offset;

View File

@ -2,7 +2,7 @@
* Routines for snooping SID to name mappings
* Copyright 2003, Ronnie Sahlberg
*
* $Id: packet-smb-sidsnooping.c,v 1.5 2003/05/22 11:03:15 sahlberg Exp $
* $Id: packet-smb-sidsnooping.c,v 1.6 2003/05/22 11:48:28 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -92,6 +92,7 @@ add_sid_name_mapping(char *sid, char *name)
/*
* PolicyInformation :
* level 3 : PRIMARY_DOMAIN_INFO lsa.domain_sid -> lsa.domain
* level 5 : ACCOUNT_DOMAIN_INFO lsa.domain_sid -> lsa.domain
* level 12 : DNS_DOMAIN_INFO lsa.domain_sid -> lsa.domain
*/
static int
@ -112,6 +113,7 @@ lsa_policy_information(void *dummy _U_, packet_info *pinfo _U_, epan_dissect_t *
switch(info_level){
case 3:
case 5:
case 12:
gp=proto_get_finfo_ptr_array(edt->tree, hf_lsa_domain);
if(!gp || gp->len!=1){