bugfix to a bug reported by Ian Schorr:
[obnox/wireshark/wip.git] / packet-dcerpc-netlogon.c
index 409beb889e6056d8990325a305c61c0bbcb24c65..a6edda99ea1562c68424fb8081e825ade663a08f 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright 2001,2003 Tim Potter <tpot@samba.org>
  *  2002 structure and command dissectors by Ronnie Sahlberg
  *
- * $Id: packet-dcerpc-netlogon.c,v 1.92 2003/09/22 00:59:47 tpot Exp $
+ * $Id: packet-dcerpc-netlogon.c,v 1.106 2004/05/19 04:52:31 tpot Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -38,6 +38,9 @@
 #include "packet-dcerpc-lsa.h"
 
 static int proto_dcerpc_netlogon = -1;
+static int hf_netlogon_group_attrs_mandatory = -1;
+static int hf_netlogon_group_attrs_enabled_by_default = -1;
+static int hf_netlogon_group_attrs_enabled = -1;
 static int hf_netlogon_opnum = -1;
 static int hf_netlogon_guid = -1;
 static int hf_netlogon_rc = -1;
@@ -95,7 +98,9 @@ static int hf_netlogon_unknown_short = -1;
 static int hf_netlogon_unknown_char = -1;
 static int hf_netlogon_logon_time = -1;
 static int hf_netlogon_logoff_time = -1;
+static int hf_netlogon_last_logoff_time = -1;
 static int hf_netlogon_kickoff_time = -1;
+static int hf_netlogon_pwd_age = -1;
 static int hf_netlogon_pwd_last_set_time = -1;
 static int hf_netlogon_pwd_can_change_time = -1;
 static int hf_netlogon_pwd_must_change_time = -1;
@@ -122,6 +127,7 @@ static int hf_netlogon_group_rid = -1;
 static int hf_netlogon_logon_srv = -1;
 static int hf_netlogon_principal = -1;
 static int hf_netlogon_logon_dom = -1;
+static int hf_netlogon_resourcegroupcount = -1;
 static int hf_netlogon_downlevel_domain_name = -1;
 static int hf_netlogon_dns_domain_name = -1;
 static int hf_netlogon_domain_name = -1;
@@ -165,7 +171,27 @@ static int hf_netlogon_trust_flags_native_mode = -1;
 static int hf_netlogon_trust_flags_primary = -1;
 static int hf_netlogon_trust_flags_tree_root = -1;
 static int hf_netlogon_trust_parent_index = -1;
+static int hf_netlogon_user_account_control = -1;
+static int hf_netlogon_user_account_control_dont_require_preauth = -1;
+static int hf_netlogon_user_account_control_use_des_key_only = -1;
+static int hf_netlogon_user_account_control_not_delegated = -1;
+static int hf_netlogon_user_account_control_trusted_for_delegation = -1;
+static int hf_netlogon_user_account_control_smartcard_required = -1;
+static int hf_netlogon_user_account_control_encrypted_text_password_allowed = -1;
+static int hf_netlogon_user_account_control_account_auto_locked = -1;
+static int hf_netlogon_user_account_control_dont_expire_password = -1;
+static int hf_netlogon_user_account_control_server_trust_account = -1;
+static int hf_netlogon_user_account_control_workstation_trust_account = -1;
+static int hf_netlogon_user_account_control_interdomain_trust_account = -1;
+static int hf_netlogon_user_account_control_mns_logon_account = -1;
+static int hf_netlogon_user_account_control_normal_account = -1;
+static int hf_netlogon_user_account_control_temp_duplicate_account = -1;
+static int hf_netlogon_user_account_control_password_not_required = -1;
+static int hf_netlogon_user_account_control_home_directory_required = -1;
+static int hf_netlogon_user_account_control_account_disabled = -1;
 static int hf_netlogon_user_flags = -1;
+static int hf_netlogon_user_flags_extra_sids = -1;
+static int hf_netlogon_user_flags_resource_groups = -1;
 static int hf_netlogon_auth_flags = -1;
 static int hf_netlogon_pwd_expired = -1;
 static int hf_netlogon_nt_pwd_present = -1;
@@ -225,6 +251,9 @@ static int hf_netlogon_dc_flags_dns_domain_flag = -1;
 static int hf_netlogon_dc_flags_dns_forest_flag = -1;
 
 static gint ett_dcerpc_netlogon = -1;
+static gint ett_group_attrs = -1;
+static gint ett_user_flags = -1;
+static gint ett_user_account_control = -1;
 static gint ett_QUOTA_LIMITS = -1;
 static gint ett_IDENTITY_INFO = -1;
 static gint ett_DELTA_ENUM = -1;
@@ -255,11 +284,140 @@ static e_uuid_t uuid_dcerpc_netlogon = {
 static guint16 ver_dcerpc_netlogon = 1;
 
 
+static const true_false_string user_account_control_dont_require_preauth= {
+       "This account DONT_REQUIRE_PREAUTHENTICATION",
+       "This account REQUIRES preauthentication",
+};
+static const true_false_string user_account_control_use_des_key_only= {
+       "This account must USE_DES_KEY_ONLY for passwords",
+       "This account does NOT have to use_des_key_only",
+};
+static const true_false_string user_account_control_not_delegated= {
+       "This account is NOT_DELEGATED",
+       "This might have been delegated",
+};
+static const true_false_string user_account_control_trusted_for_delegation= {
+       "This account is TRUSTED_FOR_DELEGATION",
+       "This account is NOT trusted_for_delegation",
+};
+static const true_false_string user_account_control_smartcard_required= {
+       "This account REQUIRES_SMARTCARD to authenticate",
+       "This account does NOT require_smartcard to authenticate",
+};
+static const true_false_string user_account_control_encrypted_text_password_allowed= {
+       "This account allows ENCRYPTED_TEXT_PASSWORD",
+       "This account does NOT allow encrypted_text_password",
+};
+static const true_false_string user_account_control_account_auto_locked= {
+       "This account is AUTO_LOCKED",
+       "This account is NOT auto_locked",
+};
+static const true_false_string user_account_control_dont_expire_password= {
+       "This account DONT_EXPIRE_PASSWORDs",
+       "This account might expire_passwords",
+};
+static const true_false_string user_account_control_server_trust_account= {
+       "This account is a SERVER_TRUST_ACCOUNT",
+       "This account is NOT a server_trust_account",
+};
+static const true_false_string user_account_control_workstation_trust_account= {
+       "This account is a WORKSTATION_TRUST_ACCOUNT",
+       "This account is NOT a workstation_trust_account",
+};
+static const true_false_string user_account_control_interdomain_trust_account= {
+       "This account is an INTERDOMAIN_TRUST_ACCOUNT",
+       "This account is NOT an interdomain_trust_account",
+};
+static const true_false_string user_account_control_mns_logon_account= {
+       "This account is a MNS_LOGON_ACCOUNT",
+       "This account is NOT a mns_logon_account",
+};
+static const true_false_string user_account_control_normal_account= {
+       "This account is a NORMAL_ACCOUNT",
+       "This account is NOT a normal_account",
+};
+static const true_false_string user_account_control_temp_duplicate_account= {
+       "This account is a TEMP_DUPLICATE_ACCOUNT",
+       "This account is NOT a temp_duplicate_account",
+};
+static const true_false_string user_account_control_password_not_required= {
+       "This account REQUIRES_NO_PASSWORD",
+       "This account REQUIRES a password",
+};
+static const true_false_string user_account_control_home_directory_required= {
+       "This account REQUIRES_HOME_DIRECTORY",
+       "This account does NOT require_home_directory",
+};
+static const true_false_string user_account_control_account_disabled= {
+       "This account is DISABLED",
+       "This account is NOT disabled",
+};
+static int
+netlogon_dissect_USER_ACCOUNT_CONTROL(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
+{
+       guint32 mask;
+       proto_item *item = NULL;
+       proto_tree *tree = NULL;
+       dcerpc_info *di;
+
+       di=pinfo->private_data;
+       if(di->conformant_run){
+               /*just a run to handle conformant arrays, nothing to dissect */
+               return offset;
+       }
+
+       offset=dissect_ndr_uint32(tvb, offset, pinfo, NULL, drep,
+                       hf_netlogon_user_account_control, &mask);
+
+       if(parent_tree){
+               item = proto_tree_add_uint(parent_tree, hf_netlogon_user_account_control,
+                       tvb, offset-4, 4, mask);
+               tree = proto_item_add_subtree(item, ett_user_account_control);
+       }
+
+       proto_tree_add_boolean(tree, hf_netlogon_user_account_control_dont_require_preauth,
+               tvb, offset-4, 4, mask);
+       proto_tree_add_boolean(tree, hf_netlogon_user_account_control_use_des_key_only,
+               tvb, offset-4, 4, mask);
+       proto_tree_add_boolean(tree, hf_netlogon_user_account_control_not_delegated,
+               tvb, offset-4, 4, mask);
+       proto_tree_add_boolean(tree, hf_netlogon_user_account_control_trusted_for_delegation,
+               tvb, offset-4, 4, mask);
+       proto_tree_add_boolean(tree, hf_netlogon_user_account_control_smartcard_required,
+               tvb, offset-4, 4, mask);
+       proto_tree_add_boolean(tree, hf_netlogon_user_account_control_encrypted_text_password_allowed,
+               tvb, offset-4, 4, mask);
+       proto_tree_add_boolean(tree, hf_netlogon_user_account_control_account_auto_locked,
+               tvb, offset-4, 4, mask);
+       proto_tree_add_boolean(tree, hf_netlogon_user_account_control_dont_expire_password,
+               tvb, offset-4, 4, mask);
+       proto_tree_add_boolean(tree, hf_netlogon_user_account_control_server_trust_account,
+               tvb, offset-4, 4, mask);
+       proto_tree_add_boolean(tree, hf_netlogon_user_account_control_workstation_trust_account,
+               tvb, offset-4, 4, mask);
+       proto_tree_add_boolean(tree, hf_netlogon_user_account_control_interdomain_trust_account,
+               tvb, offset-4, 4, mask);
+       proto_tree_add_boolean(tree, hf_netlogon_user_account_control_mns_logon_account,
+               tvb, offset-4, 4, mask);
+       proto_tree_add_boolean(tree, hf_netlogon_user_account_control_normal_account,
+               tvb, offset-4, 4, mask);
+       proto_tree_add_boolean(tree, hf_netlogon_user_account_control_temp_duplicate_account,
+               tvb, offset-4, 4, mask);
+       proto_tree_add_boolean(tree, hf_netlogon_user_account_control_password_not_required,
+               tvb, offset-4, 4, mask);
+       proto_tree_add_boolean(tree, hf_netlogon_user_account_control_home_directory_required,
+               tvb, offset-4, 4, mask);
+       proto_tree_add_boolean(tree, hf_netlogon_user_account_control_account_disabled,
+               tvb, offset-4, 4, mask);
+       return offset;
+}
+
 
 static int
 netlogon_dissect_LOGONSRV_HANDLE(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_UNIQUE, "Server Handle", 
@@ -290,7 +448,7 @@ netlogon_dissect_LOGONSRV_HANDLE(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_VALIDATION_UAS_INFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -316,30 +474,20 @@ netlogon_dissect_VALIDATION_UAS_INFO(tvbuff_t *tvb, int offset,
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_bad_pw_count, NULL);
 
-       /* XXX - are these all UNIX "time_t"s, like the time stamps in
-          credentials?
 
-          Or are they, as per some RAP-based operations, UTIMEs? */
-       proto_tree_add_text(tree, tvb, offset, 4, "Last Logon: unknown time format");
-       offset+= 4;
+       offset = dissect_ndr_time_t(tvb, offset, pinfo, tree, drep, hf_netlogon_logon_time, NULL);
 
-       proto_tree_add_text(tree, tvb, offset, 4, "Last Logoff: unknown time format");
-       offset+= 4;
+       offset = dissect_ndr_time_t(tvb, offset, pinfo, tree, drep, hf_netlogon_last_logoff_time, NULL);
 
-       proto_tree_add_text(tree, tvb, offset, 4, "Logoff Time: unknown time format");
-       offset+= 4;
+       offset = dissect_ndr_time_t(tvb, offset, pinfo, tree, drep, hf_netlogon_logoff_time, NULL);
 
-       proto_tree_add_text(tree, tvb, offset, 4, "Kickoff Time: unknown time format");
-       offset+= 4;
+       offset = dissect_ndr_time_t(tvb, offset, pinfo, tree, drep, hf_netlogon_kickoff_time, NULL);
 
-       proto_tree_add_text(tree, tvb, offset, 4, "Password Age: unknown time format");
-       offset+= 4;
+       offset = dissect_ndr_time_t(tvb, offset, pinfo, tree, drep, hf_netlogon_pwd_age, NULL);
 
-       proto_tree_add_text(tree, tvb, offset, 4, "PW Can Change: unknown time format");
-       offset+= 4;
+       offset = dissect_ndr_time_t(tvb, offset, pinfo, tree, drep, hf_netlogon_pwd_can_change_time, NULL);
 
-       proto_tree_add_text(tree, tvb, offset, 4, "PW Must Change: unknown time format");
-       offset+= 4;
+       offset = dissect_ndr_time_t(tvb, offset, pinfo, tree, drep, hf_netlogon_pwd_must_change_time, NULL);
 
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_UNIQUE, "Computer", hf_netlogon_computer_name, 0);
@@ -366,13 +514,13 @@ netlogon_dissect_VALIDATION_UAS_INFO(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrlogonuaslogon_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
 
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
-               NDR_POINTER_REF, "Account", hf_netlogon_acct_name, 0);
+               NDR_POINTER_REF, "Account", hf_netlogon_acct_name, CB_STR_COL_INFO);
 
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_REF, "Workstation", hf_netlogon_workstation, 0);
@@ -383,7 +531,7 @@ netlogon_dissect_netrlogonuaslogon_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogonuaslogon_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_VALIDATION_UAS_INFO, NDR_POINTER_UNIQUE,
@@ -404,7 +552,7 @@ netlogon_dissect_netrlogonuaslogon_reply(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_LOGOFF_UAS_INFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -433,13 +581,13 @@ netlogon_dissect_LOGOFF_UAS_INFO(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrlogonuaslogoff_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
 
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
-               NDR_POINTER_REF, "Account", hf_netlogon_acct_name, 0);
+               NDR_POINTER_REF, "Account", hf_netlogon_acct_name, CB_STR_COL_INFO);
 
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_REF, "Workstation", hf_netlogon_workstation, 0);
@@ -450,7 +598,7 @@ netlogon_dissect_netrlogonuaslogoff_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogonuaslogoff_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_LOGOFF_UAS_INFO, NDR_POINTER_REF,
@@ -477,7 +625,7 @@ netlogon_dissect_netrlogonuaslogoff_reply(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_LOGON_IDENTITY_INFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -502,7 +650,7 @@ netlogon_dissect_LOGON_IDENTITY_INFO(tvbuff_t *tvb, int offset,
                hf_netlogon_logon_id, NULL);
 
        offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
-               hf_netlogon_acct_name, 0);
+               hf_netlogon_acct_name, CB_STR_COL_INFO|3);
 
        offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
                hf_netlogon_workstation, 0);
@@ -530,7 +678,7 @@ netlogon_dissect_LOGON_IDENTITY_INFO(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_LM_OWF_PASSWORD(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep _U_)
+                       guint8 *drep _U_)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -563,7 +711,7 @@ netlogon_dissect_LM_OWF_PASSWORD(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_NT_OWF_PASSWORD(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep _U_)
+                       guint8 *drep _U_)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -599,7 +747,7 @@ netlogon_dissect_NT_OWF_PASSWORD(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_INTERACTIVE_INFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = netlogon_dissect_LOGON_IDENTITY_INFO(tvb, offset,
                pinfo, tree, drep);
@@ -621,7 +769,7 @@ netlogon_dissect_INTERACTIVE_INFO(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_CHALLENGE(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep _U_)
+                       guint8 *drep _U_)
 {
        dcerpc_info *di;
 
@@ -671,7 +819,7 @@ static void dissect_nt_chal_resp_cb(packet_info *pinfo _U_, proto_tree *tree,
 static int
 netlogon_dissect_NETWORK_INFO(tvbuff_t *tvb, int offset,
                packet_info *pinfo, proto_tree *tree,
-               char *drep)
+               guint8 *drep)
 {
        offset = netlogon_dissect_LOGON_IDENTITY_INFO(tvb, offset,
                pinfo, tree, drep);
@@ -699,7 +847,7 @@ netlogon_dissect_NETWORK_INFO(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_SERVICE_INFO(tvbuff_t *tvb, int offset,
                packet_info *pinfo, proto_tree *tree,
-               char *drep)
+               guint8 *drep)
 {
        offset = netlogon_dissect_LOGON_IDENTITY_INFO(tvb, offset,
                pinfo, tree, drep);
@@ -723,7 +871,7 @@ netlogon_dissect_SERVICE_INFO(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_LEVEL(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint16 level;
 
@@ -760,7 +908,7 @@ netlogon_dissect_LEVEL(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_CREDENTIAL(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep _U_)
+                       guint8 *drep _U_)
 {
        dcerpc_info *di;
 
@@ -787,7 +935,7 @@ netlogon_dissect_CREDENTIAL(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_AUTHENTICATOR(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        dcerpc_info *di;
        nstime_t ts;
@@ -818,6 +966,52 @@ netlogon_dissect_AUTHENTICATOR(tvbuff_t *tvb, int offset,
 }
 
 
+static const true_false_string group_attrs_mandatory = {
+       "The MANDATORY bit is SET",
+       "The mandatory bit is NOT set",
+};
+static const true_false_string group_attrs_enabled_by_default = {
+       "The ENABLED_BY_DEFAULT bit is SET",
+       "The enabled_by_default bit is NOT set",
+};
+static const true_false_string group_attrs_enabled = {
+       "The enabled bit is SET",
+       "The enabled bit is NOT set",
+};
+static int
+netlogon_dissect_GROUP_MEMBERSHIP_ATTRIBUTES(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
+{
+       guint32 mask;
+       proto_item *item = NULL;
+       proto_tree *tree = NULL;
+       dcerpc_info *di;
+
+       di=pinfo->private_data;
+       if(di->conformant_run){
+               /*just a run to handle conformant arrays, nothing to dissect */
+               return offset;
+       }
+
+       offset=dissect_ndr_uint32(tvb, offset, pinfo, NULL, drep,
+                       hf_netlogon_attrs, &mask);
+
+       if(parent_tree){
+               item = proto_tree_add_uint(parent_tree, hf_netlogon_attrs,
+                       tvb, offset-4, 4, mask);
+               tree = proto_item_add_subtree(item, ett_group_attrs);
+       }
+
+       proto_tree_add_boolean(tree, hf_netlogon_group_attrs_enabled,
+               tvb, offset-4, 4, mask);
+       proto_tree_add_boolean(tree, hf_netlogon_group_attrs_enabled_by_default,
+               tvb, offset-4, 4, mask);
+       proto_tree_add_boolean(tree, hf_netlogon_group_attrs_mandatory,
+               tvb, offset-4, 4, mask);
+
+       return offset;
+}
+
 /*
  * IDL typedef struct {
  * IDL   long user_id;
@@ -827,7 +1021,7 @@ netlogon_dissect_AUTHENTICATOR(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_GROUP_MEMBERSHIP(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -841,8 +1035,8 @@ netlogon_dissect_GROUP_MEMBERSHIP(tvbuff_t *tvb, int offset,
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_group_rid, NULL);
 
-       offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
-               hf_netlogon_attrs, NULL);
+       offset = netlogon_dissect_GROUP_MEMBERSHIP_ATTRIBUTES(tvb, offset,
+               pinfo, tree, drep);
 
        return offset;
 }
@@ -850,7 +1044,7 @@ netlogon_dissect_GROUP_MEMBERSHIP(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_GROUP_MEMBERSHIP_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_GROUP_MEMBERSHIP);
@@ -866,7 +1060,7 @@ netlogon_dissect_GROUP_MEMBERSHIP_ARRAY(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_USER_SESSION_KEY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep _U_)
+                       guint8 *drep _U_)
 {
        dcerpc_info *di;
 
@@ -883,6 +1077,48 @@ netlogon_dissect_USER_SESSION_KEY(tvbuff_t *tvb, int offset,
        return offset;
 }
 
+
+
+static const true_false_string user_flags_extra_sids= {
+       "The EXTRA_SIDS bit is SET",
+       "The extra_sids is NOT set",
+};
+static const true_false_string user_flags_resource_groups= {
+       "The RESOURCE_GROUPS bit is SET",
+       "The resource_groups is NOT set",
+};
+static int
+netlogon_dissect_USER_FLAGS(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
+{
+       guint32 mask;
+       proto_item *item = NULL;
+       proto_tree *tree = NULL;
+       dcerpc_info *di;
+
+       di=pinfo->private_data;
+       if(di->conformant_run){
+               /*just a run to handle conformant arrays, nothing to dissect */
+               return offset;
+       }
+
+       offset=dissect_ndr_uint32(tvb, offset, pinfo, NULL, drep,
+                       hf_netlogon_user_flags, &mask);
+
+       if(parent_tree){
+               item = proto_tree_add_uint(parent_tree, hf_netlogon_user_flags,
+                       tvb, offset-4, 4, mask);
+               tree = proto_item_add_subtree(item, ett_user_flags);
+       }
+
+       proto_tree_add_boolean(tree, hf_netlogon_user_flags_resource_groups,
+               tvb, offset-4, 4, mask);
+       proto_tree_add_boolean(tree, hf_netlogon_user_flags_extra_sids,
+               tvb, offset-4, 4, mask);
+
+       return offset;
+}
+
 /*
  * IDL typedef struct {
  * IDL   uint64 LogonTime;
@@ -908,13 +1144,15 @@ netlogon_dissect_USER_SESSION_KEY(tvbuff_t *tvb, int offset,
  * IDL   unicodestring logonserver;
  * IDL   unicodestring domainname;
  * IDL   [unique] SID logondomainid;
- * IDL   long expansionroom[10];
+ * IDL   long expansionroom[2];
+ * IDL   long useraccountcontrol;
+ * IDL   long expansionroom[7];
  * IDL } VALIDATION_SAM_INFO;
  */
 static int
 netlogon_dissect_VALIDATION_SAM_INFO(tvbuff_t *tvb, int offset,
                packet_info *pinfo, proto_tree *tree,
-               char *drep)
+               guint8 *drep)
 {
        int i;
 
@@ -973,8 +1211,8 @@ netlogon_dissect_VALIDATION_SAM_INFO(tvbuff_t *tvb, int offset,
                netlogon_dissect_GROUP_MEMBERSHIP_ARRAY, NDR_POINTER_UNIQUE,
                "GROUP_MEMBERSHIP_ARRAY", -1);
 
-       offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
-               hf_netlogon_user_flags, NULL);
+       offset = netlogon_dissect_USER_FLAGS(tvb, offset,
+               pinfo, tree, drep);
 
        offset = netlogon_dissect_USER_SESSION_KEY(tvb, offset,
                pinfo, tree, drep);
@@ -985,12 +1223,18 @@ netlogon_dissect_VALIDATION_SAM_INFO(tvbuff_t *tvb, int offset,
        offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
                hf_netlogon_logon_dom, 0);
 
-       offset = dissect_ndr_nt_PSID(tvb, offset,
-               pinfo, tree, drep, -1);
+       offset = dissect_ndr_nt_PSID(tvb, offset, pinfo, tree, drep);
 
-       for(i=0;i<10;i++){
+       for(i=0;i<2;i++){
                offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
-                       hf_netlogon_reserved, NULL);
+                       hf_netlogon_unknown_long, NULL);
+       }
+       offset = netlogon_dissect_USER_ACCOUNT_CONTROL(tvb, offset,
+                       pinfo, tree, drep);
+
+       for(i=0;i<7;i++){
+               offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
+                       hf_netlogon_unknown_long, NULL);
        }
 
        return offset;
@@ -1023,7 +1267,9 @@ netlogon_dissect_VALIDATION_SAM_INFO(tvbuff_t *tvb, int offset,
  * IDL   unicodestring logonserver;
  * IDL   unicodestring domainname;
  * IDL   [unique] SID logondomainid;
- * IDL   long expansionroom[10];
+ * IDL   long expansionroom[2];
+ * IDL   long useraccountcontrol;
+ * IDL   long expansionroom[7];
  * IDL   long sidcount;
  * IDL   [unique] SID_AND_ATTRIBS;
  * IDL } VALIDATION_SAM_INFO2;
@@ -1031,7 +1277,7 @@ netlogon_dissect_VALIDATION_SAM_INFO(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_VALIDATION_SAM_INFO2(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        int i;
 
@@ -1090,8 +1336,146 @@ netlogon_dissect_VALIDATION_SAM_INFO2(tvbuff_t *tvb, int offset,
                netlogon_dissect_GROUP_MEMBERSHIP_ARRAY, NDR_POINTER_UNIQUE,
                "GROUP_MEMBERSHIP_ARRAY", -1);
 
+       offset = netlogon_dissect_USER_FLAGS(tvb, offset,
+               pinfo, tree, drep);
+
+       offset = netlogon_dissect_USER_SESSION_KEY(tvb, offset,
+               pinfo, tree, drep);
+
+       offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
+               hf_netlogon_logon_srv, 0);
+
+       offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
+               hf_netlogon_logon_dom, 0);
+
+       offset = dissect_ndr_nt_PSID(tvb, offset, pinfo, tree, drep);
+
+       for(i=0;i<2;i++){
+               offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
+                       hf_netlogon_unknown_long, NULL);
+       }
+       offset = netlogon_dissect_USER_ACCOUNT_CONTROL(tvb, offset,
+                       pinfo, tree, drep);
+
+       for(i=0;i<7;i++){
+               offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
+                       hf_netlogon_unknown_long, NULL);
+       }
+
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
-               hf_netlogon_user_flags, NULL);
+               hf_netlogon_num_other_groups, NULL);
+
+        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
+               dissect_ndr_nt_SID_AND_ATTRIBUTES_ARRAY, NDR_POINTER_UNIQUE,
+               "SID_AND_ATTRIBUTES_ARRAY:", -1);
+
+       return offset;
+}
+
+
+
+
+
+/*
+ * IDL typedef struct {
+ * IDL   uint64 LogonTime;
+ * IDL   uint64 LogoffTime;
+ * IDL   uint64 KickOffTime;
+ * IDL   uint64 PasswdLastSet;
+ * IDL   uint64 PasswdCanChange;
+ * IDL   uint64 PasswdMustChange;
+ * IDL   unicodestring effectivename;
+ * IDL   unicodestring fullname;
+ * IDL   unicodestring logonscript;
+ * IDL   unicodestring profilepath;
+ * IDL   unicodestring homedirectory;
+ * IDL   unicodestring homedirectorydrive;
+ * IDL   short LogonCount;
+ * IDL   short BadPasswdCount;
+ * IDL   long userid;
+ * IDL   long primarygroup;
+ * IDL   long groupcount;
+ * IDL   [unique] GROUP_MEMBERSHIP *groupids;
+ * IDL   long userflags;
+ * IDL   USER_SESSION_KEY key;
+ * IDL   unicodestring logonserver;
+ * IDL   unicodestring domainname;
+ * IDL   [unique] SID logondomainid;
+ * IDL   long expansionroom[2];
+ * IDL   long useraccountcontrol;
+ * IDL   long expansionroom[7];
+ * IDL   long sidcount;
+ * IDL   [unique] SID_AND_ATTRIBS;
+ * IDL   [unique] SID resourcegroupdomainsid;
+ * IDL   long resourcegroupcount;
+qqq
+ * IDL } PAC_LOGON_INFO;
+ */
+int
+netlogon_dissect_PAC_LOGON_INFO(tvbuff_t *tvb, int offset,
+                       packet_info *pinfo, proto_tree *tree,
+                       guint8 *drep)
+{
+       int i;
+       guint32 rgc;
+
+       offset = dissect_ndr_nt_NTTIME(tvb, offset, pinfo, tree, drep,
+               hf_netlogon_logon_time);
+
+       offset = dissect_ndr_nt_NTTIME(tvb, offset, pinfo, tree, drep,
+               hf_netlogon_logoff_time);
+
+       offset = dissect_ndr_nt_NTTIME(tvb, offset, pinfo, tree, drep,
+               hf_netlogon_kickoff_time);
+
+       offset = dissect_ndr_nt_NTTIME(tvb, offset, pinfo, tree, drep,
+               hf_netlogon_pwd_last_set_time);
+
+       offset = dissect_ndr_nt_NTTIME(tvb, offset, pinfo, tree, drep,
+               hf_netlogon_pwd_can_change_time);
+
+       offset = dissect_ndr_nt_NTTIME(tvb, offset, pinfo, tree, drep,
+               hf_netlogon_pwd_must_change_time);
+
+       offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
+               hf_netlogon_acct_name, 0);
+
+       offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
+               hf_netlogon_full_name, 0);
+
+       offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
+               hf_netlogon_logon_script, 0);
+
+       offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
+               hf_netlogon_profile_path, 0);
+
+       offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
+               hf_netlogon_home_dir, 0);
+
+       offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
+               hf_netlogon_dir_drive, 0);
+
+       offset = dissect_ndr_uint16(tvb, offset, pinfo, tree, drep,
+               hf_netlogon_logon_count16, NULL);
+
+       offset = dissect_ndr_uint16(tvb, offset, pinfo, tree, drep,
+               hf_netlogon_bad_pw_count16, NULL);
+
+       offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
+               hf_netlogon_user_rid, NULL);
+
+       offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
+               hf_netlogon_group_rid, NULL);
+
+       offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
+               hf_netlogon_num_rids, NULL);
+
+        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
+               netlogon_dissect_GROUP_MEMBERSHIP_ARRAY, NDR_POINTER_UNIQUE,
+               "GROUP_MEMBERSHIP_ARRAY", -1);
+
+       offset = netlogon_dissect_USER_FLAGS(tvb, offset,
+               pinfo, tree, drep);
 
        offset = netlogon_dissect_USER_SESSION_KEY(tvb, offset,
                pinfo, tree, drep);
@@ -1102,10 +1486,16 @@ netlogon_dissect_VALIDATION_SAM_INFO2(tvbuff_t *tvb, int offset,
        offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
                hf_netlogon_logon_dom, 0);
 
-       offset = dissect_ndr_nt_PSID(tvb, offset,
-               pinfo, tree, drep, -1);
+       offset = dissect_ndr_nt_PSID(tvb, offset, pinfo, tree, drep);
+
+       for(i=0;i<2;i++){
+               offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
+                       hf_netlogon_unknown_long, NULL);
+       }
+       offset = netlogon_dissect_USER_ACCOUNT_CONTROL(tvb, offset,
+                       pinfo, tree, drep);
 
-       for(i=0;i<10;i++){
+       for(i=0;i<7;i++){
                offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                        hf_netlogon_unknown_long, NULL);
        }
@@ -1117,6 +1507,15 @@ netlogon_dissect_VALIDATION_SAM_INFO2(tvbuff_t *tvb, int offset,
                dissect_ndr_nt_SID_AND_ATTRIBUTES_ARRAY, NDR_POINTER_UNIQUE,
                "SID_AND_ATTRIBUTES_ARRAY:", -1);
 
+       offset = dissect_ndr_nt_PSID(tvb, offset, pinfo, tree, drep);
+
+       offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
+               hf_netlogon_resourcegroupcount, &rgc);
+
+        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
+               netlogon_dissect_GROUP_MEMBERSHIP_ARRAY, NDR_POINTER_UNIQUE,
+               "ResourceGroupIDs", -1);
+
        return offset;
 }
 
@@ -1125,7 +1524,7 @@ netlogon_dissect_VALIDATION_SAM_INFO2(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_PAC(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep _U_)
+                       guint8 *drep _U_)
 {
        dcerpc_info *di;
        guint32 pac_size;
@@ -1149,7 +1548,7 @@ netlogon_dissect_PAC(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_AUTH(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep _U_)
+                       guint8 *drep _U_)
 {
        dcerpc_info *di;
        guint32 auth_size;
@@ -1181,7 +1580,9 @@ netlogon_dissect_AUTH(tvbuff_t *tvb, int offset,
  * IDL   long auth_size;
  * IDL   [unique][size_is(auth_size)] char *auth;
  * IDL   USER_SESSION_KEY user_session_key;
- * IDL   long expansionroom[10];
+ * IDL   long expansionroom[2];
+ * IDL   long useraccountcontrol;
+ * IDL   long expansionroom[7];
  * IDL   UNICODESTRING dummy1;
  * IDL   UNICODESTRING dummy2;
  * IDL   UNICODESTRING dummy3;
@@ -1191,7 +1592,7 @@ netlogon_dissect_AUTH(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_VALIDATION_PAC_INFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        int i;
 
@@ -1219,7 +1620,14 @@ netlogon_dissect_VALIDATION_PAC_INFO(tvbuff_t *tvb, int offset,
        offset = netlogon_dissect_USER_SESSION_KEY(tvb, offset,
                pinfo, tree, drep);
 
-       for(i=0;i<10;i++){
+       for(i=0;i<2;i++){
+               offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
+                       hf_netlogon_unknown_long, NULL);
+       }
+       offset = netlogon_dissect_USER_ACCOUNT_CONTROL(tvb, offset,
+                       pinfo, tree, drep);
+
+       for(i=0;i<7;i++){
                offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                        hf_netlogon_unknown_long, NULL);
        }
@@ -1251,7 +1659,7 @@ netlogon_dissect_VALIDATION_PAC_INFO(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_VALIDATION(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint16 level;
 
@@ -1301,7 +1709,7 @@ netlogon_dissect_VALIDATION(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrlogonsamlogon_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -1333,7 +1741,7 @@ netlogon_dissect_netrlogonsamlogon_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogonsamlogon_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_UNIQUE,
@@ -1365,7 +1773,7 @@ netlogon_dissect_netrlogonsamlogon_reply(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrlogonsamlogoff_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -1393,7 +1801,7 @@ netlogon_dissect_netrlogonsamlogoff_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netrlogonsamlogoff_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
 
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
@@ -1417,7 +1825,7 @@ netlogon_dissect_netrlogonsamlogoff_reply(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrserverreqchallenge_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -1437,7 +1845,7 @@ netlogon_dissect_netrserverreqchallenge_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netrserverreqchallenge_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_CREDENTIAL, NDR_POINTER_REF,
@@ -1453,7 +1861,7 @@ netlogon_dissect_netrserverreqchallenge_reply(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_NETLOGON_SECURE_CHANNEL_TYPE(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint16(tvb, offset, pinfo, tree, drep,
                        hf_netlogon_secure_channel_type, NULL);
@@ -1474,19 +1882,19 @@ netlogon_dissect_NETLOGON_SECURE_CHANNEL_TYPE(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrserverauthenticate_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
 
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
-               NDR_POINTER_REF, "User Name", hf_netlogon_acct_name, 0);
+               NDR_POINTER_REF, "User Name", hf_netlogon_acct_name, CB_STR_COL_INFO);
 
        offset = netlogon_dissect_NETLOGON_SECURE_CHANNEL_TYPE(tvb, offset,
                pinfo, tree, drep);
 
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
-               NDR_POINTER_REF, "Computer Name", hf_netlogon_computer_name, 0);
+               NDR_POINTER_REF, "Computer Name", hf_netlogon_computer_name, CB_STR_COL_INFO);
 
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_CREDENTIAL, NDR_POINTER_REF,
@@ -1496,7 +1904,7 @@ netlogon_dissect_netrserverauthenticate_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netrserverauthenticate_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_CREDENTIAL, NDR_POINTER_REF,
@@ -1518,7 +1926,7 @@ netlogon_dissect_netrserverauthenticate_reply(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_ENCRYPTED_LM_OWF_PASSWORD(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep _U_)
+                       guint8 *drep _U_)
 {
        dcerpc_info *di;
 
@@ -1548,7 +1956,7 @@ netlogon_dissect_ENCRYPTED_LM_OWF_PASSWORD(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrserverpasswordset_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -1574,7 +1982,7 @@ netlogon_dissect_netrserverpasswordset_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netrserverpasswordset_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_REF,
@@ -1603,7 +2011,7 @@ netlogon_dissect_netrserverpasswordset_reply(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_DELETE_USER(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_UNIQUE, "Account Name", hf_netlogon_acct_name, 0);
@@ -1646,7 +2054,7 @@ netlogon_dissect_DELTA_DELETE_USER(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_SENSITIVE_DATA(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        dcerpc_info *di;
        guint32 data_len;
@@ -1669,7 +2077,7 @@ netlogon_dissect_SENSITIVE_DATA(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_USER_PRIVATE_INFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, drep,
                hf_netlogon_sensitive_data_flag, NULL);
@@ -1728,7 +2136,7 @@ netlogon_dissect_USER_PRIVATE_INFO(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_USER(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
                hf_netlogon_acct_name, 3);
@@ -1869,7 +2277,7 @@ netlogon_dissect_DELTA_USER(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_DOMAIN(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
                hf_netlogon_domain_name, 3);
@@ -1952,7 +2360,7 @@ netlogon_dissect_DELTA_DOMAIN(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_GROUP(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
                hf_netlogon_group_name, 3);
@@ -2014,7 +2422,7 @@ netlogon_dissect_DELTA_GROUP(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_RENAME(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -2057,7 +2465,7 @@ netlogon_dissect_DELTA_RENAME(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_RID(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                                hf_netlogon_user_rid, NULL);
@@ -2068,7 +2476,7 @@ netlogon_dissect_RID(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_RID_array(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                        netlogon_dissect_RID);
@@ -2079,7 +2487,7 @@ netlogon_dissect_RID_array(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_ATTRIB(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_attrs, NULL);
@@ -2090,7 +2498,7 @@ netlogon_dissect_ATTRIB(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_ATTRIB_array(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                        netlogon_dissect_ATTRIB);
@@ -2112,7 +2520,7 @@ netlogon_dissect_ATTRIB_array(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_GROUP_MEMBER(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
         offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_RID_array, NDR_POINTER_UNIQUE,
@@ -2160,7 +2568,7 @@ netlogon_dissect_DELTA_GROUP_MEMBER(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_ALIAS(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
                hf_netlogon_alias_name, 0);
@@ -2214,7 +2622,7 @@ netlogon_dissect_DELTA_ALIAS(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_ALIAS_MEMBER(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_nt_PSID_ARRAY(tvb, offset, pinfo, tree, drep);
 
@@ -2237,7 +2645,7 @@ netlogon_dissect_DELTA_ALIAS_MEMBER(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_EVENT_AUDIT_OPTION(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_event_audit_option, NULL);
@@ -2248,7 +2656,7 @@ netlogon_dissect_EVENT_AUDIT_OPTION(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_EVENT_AUDIT_OPTIONS_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_EVENT_AUDIT_OPTION);
@@ -2270,7 +2678,7 @@ netlogon_dissect_EVENT_AUDIT_OPTIONS_ARRAY(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_QUOTA_LIMITS(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -2332,7 +2740,7 @@ netlogon_dissect_QUOTA_LIMITS(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_POLICY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_max_log_size, NULL);
@@ -2353,8 +2761,7 @@ netlogon_dissect_DELTA_POLICY(tvbuff_t *tvb, int offset,
        offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
                hf_netlogon_domain_name, 0);
 
-       offset = dissect_ndr_nt_PSID(tvb, offset,
-               pinfo, tree, drep, -1);
+       offset = dissect_ndr_nt_PSID(tvb, offset, pinfo, tree, drep);
 
        offset = netlogon_dissect_QUOTA_LIMITS(tvb, offset,
                pinfo, tree, drep);
@@ -2402,7 +2809,7 @@ netlogon_dissect_DELTA_POLICY(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_CONTROLLER(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
                hf_netlogon_dc_name, 0);
@@ -2413,7 +2820,7 @@ netlogon_dissect_CONTROLLER(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_CONTROLLER_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_CONTROLLER);
@@ -2442,7 +2849,7 @@ netlogon_dissect_CONTROLLER_ARRAY(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_TRUSTED_DOMAINS(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
                hf_netlogon_domain_name, 0);
@@ -2491,7 +2898,7 @@ netlogon_dissect_DELTA_TRUSTED_DOMAINS(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_PRIV_ATTR(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_attrs, NULL);
@@ -2502,7 +2909,7 @@ netlogon_dissect_PRIV_ATTR(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_PRIV_ATTR_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_PRIV_ATTR);
@@ -2513,7 +2920,7 @@ netlogon_dissect_PRIV_ATTR_ARRAY(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_PRIV_NAME(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_counted_string(tvb, offset, pinfo, tree, drep,
                hf_netlogon_privilege_name, 1);
@@ -2524,7 +2931,7 @@ netlogon_dissect_PRIV_NAME(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_PRIV_NAME_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_PRIV_NAME);
@@ -2556,7 +2963,7 @@ netlogon_dissect_PRIV_NAME_ARRAY(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_ACCOUNTS(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_privilege_entries, NULL);
@@ -2621,7 +3028,7 @@ netlogon_dissect_DELTA_ACCOUNTS(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_CIPHER_VALUE_DATA(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        dcerpc_info *di;
        guint32 data_len;
@@ -2650,7 +3057,7 @@ netlogon_dissect_CIPHER_VALUE_DATA(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_CIPHER_VALUE(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep, char *name, int hf_index)
+                       guint8 *drep, char *name, int hf_index)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -2697,7 +3104,7 @@ netlogon_dissect_CIPHER_VALUE(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_SECRET(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = netlogon_dissect_CIPHER_VALUE(tvb, offset,
                pinfo, tree, drep,
@@ -2757,7 +3164,7 @@ netlogon_dissect_DELTA_SECRET(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_MODIFIED_COUNT(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint64(tvb, offset, pinfo, tree, drep,
                hf_netlogon_modify_count, NULL);
@@ -2768,36 +3175,48 @@ netlogon_dissect_MODIFIED_COUNT(tvbuff_t *tvb, int offset,
 
 #define DT_DELTA_DOMAIN                        1
 #define DT_DELTA_GROUP                 2
+#define DT_DELTA_DELETE_GROUP          3
 #define DT_DELTA_RENAME_GROUP          4
 #define DT_DELTA_USER                  5
+#define DT_DELTA_DELETE_USER           6
 #define DT_DELTA_RENAME_USER           7
 #define DT_DELTA_GROUP_MEMBER          8
 #define DT_DELTA_ALIAS                 9
+#define DT_DELTA_DELETE_ALIAS          10
 #define DT_DELTA_RENAME_ALIAS          11
 #define DT_DELTA_ALIAS_MEMBER          12
 #define DT_DELTA_POLICY                        13
 #define DT_DELTA_TRUSTED_DOMAINS       14
+#define DT_DELTA_DELETE_TRUST          15
 #define DT_DELTA_ACCOUNTS              16
+#define DT_DELTA_DELETE_ACCOUNT                17
 #define DT_DELTA_SECRET                        18
-#define DT_DELTA_DELETE_GROUP          20
-#define DT_DELTA_DELETE_USER           21
+#define DT_DELTA_DELETE_SECRET         19
+#define DT_DELTA_DELETE_GROUP2         20
+#define DT_DELTA_DELETE_USER2          21
 #define DT_MODIFIED_COUNT              22
 static const value_string delta_type_vals[] = {
        { DT_DELTA_DOMAIN,              "Domain" },
        { DT_DELTA_GROUP,               "Group" },
+       { DT_DELTA_DELETE_GROUP,        "Delete Group" },
        { DT_DELTA_RENAME_GROUP,        "Rename Group" },
        { DT_DELTA_USER,                "User" },
+       { DT_DELTA_DELETE_USER,         "Delete User" },
        { DT_DELTA_RENAME_USER,         "Rename User" },
        { DT_DELTA_GROUP_MEMBER,        "Group Member" },
        { DT_DELTA_ALIAS,               "Alias" },
+       { DT_DELTA_DELETE_ALIAS,        "Delete Alias" },
        { DT_DELTA_RENAME_ALIAS,        "Rename Alias" },
        { DT_DELTA_ALIAS_MEMBER,        "Alias Member" },
        { DT_DELTA_POLICY,              "Policy" },
        { DT_DELTA_TRUSTED_DOMAINS,     "Trusted Domains" },
+       { DT_DELTA_DELETE_TRUST,        "Delete Trust" },
        { DT_DELTA_ACCOUNTS,            "Accounts" },
+       { DT_DELTA_DELETE_ACCOUNT,      "Delete Account" },
        { DT_DELTA_SECRET,              "Secret" },
-       { DT_DELTA_DELETE_GROUP,        "Delete Group" },
-       { DT_DELTA_DELETE_USER,         "Delete User" },
+       { DT_DELTA_DELETE_SECRET,       "Delete Secret" },
+       { DT_DELTA_DELETE_GROUP2,       "Delete Group2" },
+       { DT_DELTA_DELETE_USER2,        "Delete User2" },
        { DT_MODIFIED_COUNT,            "Modified Count" },
        { 0, NULL }
 };
@@ -2805,26 +3224,32 @@ static const value_string delta_type_vals[] = {
  * IDL typedef [switch_type(short)] union {
  * IDL   [case(1)][unique] DELTA_DOMAIN *domain;
  * IDL   [case(2)][unique] DELTA_GROUP *group;
+ * IDL   [case(3)][unique] rid only ;
  * IDL   [case(4)][unique] DELTA_RENAME_GROUP *rename_group;
  * IDL   [case(5)][unique] DELTA_USER *user;
+ * IDL   [case(6)][unique] rid only ;
  * IDL   [case(7)][unique] DELTA_RENAME_USER *rename_user;
  * IDL   [case(8)][unique] DELTA_GROUP_MEMBER *group_member;
  * IDL   [case(9)][unique] DELTA_ALIAS *alias;
- * IDL   [case(11)][unique] DELTA_RENAME_ALIAS *rename_alias;
+ * IDL   [case(10)][unique] rid only ;
+ * IDL   [case(11)][unique] DELTA_RENAME_ALIAS *alias;
  * IDL   [case(12)][unique] DELTA_ALIAS_MEMBER *alias_member;
  * IDL   [case(13)][unique] DELTA_POLICY *policy;
  * IDL   [case(14)][unique] DELTA_TRUSTED_DOMAINS *trusted_domains;
+ * IDL   [case(15)][unique] PSID ;
  * IDL   [case(16)][unique] DELTA_ACCOUNTS *accounts;
+ * IDL   [case(17)][unique] PSID ;
  * IDL   [case(18)][unique] DELTA_SECRET *secret;
- * IDL   [case(20)][unique] DELTA_DELETE_USER *delete_group;
- * IDL   [case(21)][unique] DELTA_DELETE_USER *delete_user;
+ * IDL   [case(19)][unique] string;
+ * IDL   [case(20)][unique] DELTA_DELETE_GROUP2 *delete_group;
+ * IDL   [case(21)][unique] DELTA_DELETE_USER2 *delete_user;
  * IDL   [case(22)][unique] MODIFIED_COUNT *modified_count;
  * IDL } DELTA_UNION;
  */
 static int
 netlogon_dissect_DELTA_UNION(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -2958,7 +3383,7 @@ netlogon_dissect_DELTA_UNION(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_ID_UNION(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -3025,24 +3450,19 @@ netlogon_dissect_DELTA_ID_UNION(tvbuff_t *tvb, int offset,
                        hf_netlogon_user_rid, NULL);
                break;
        case 13:
-               offset = dissect_ndr_nt_PSID(tvb, offset,
-                       pinfo, tree, drep, -1);
+               offset = dissect_ndr_nt_PSID(tvb, offset, pinfo, tree, drep);
                break;
        case 14:
-               offset = dissect_ndr_nt_PSID(tvb, offset,
-                       pinfo, tree, drep, -1);
+               offset = dissect_ndr_nt_PSID(tvb, offset, pinfo, tree, drep);
                break;
        case 15:
-               offset = dissect_ndr_nt_PSID(tvb, offset,
-                       pinfo, tree, drep, -1);
+               offset = dissect_ndr_nt_PSID(tvb, offset, pinfo, tree, drep);
                break;
        case 16:
-               offset = dissect_ndr_nt_PSID(tvb, offset,
-                       pinfo, tree, drep, -1);
+               offset = dissect_ndr_nt_PSID(tvb, offset, pinfo, tree, drep);
                break;
        case 17:
-               offset = dissect_ndr_nt_PSID(tvb, offset,
-                       pinfo, tree, drep, -1);
+               offset = dissect_ndr_nt_PSID(tvb, offset, pinfo, tree, drep);
                break;
        case 18:
                offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, 
@@ -3078,7 +3498,7 @@ netlogon_dissect_DELTA_ID_UNION(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_ENUM(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -3110,7 +3530,7 @@ netlogon_dissect_DELTA_ENUM(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_ENUM_array(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_DELTA_ENUM);
@@ -3127,7 +3547,7 @@ netlogon_dissect_DELTA_ENUM_array(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DELTA_ENUM_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_num_deltas, NULL);
@@ -3154,7 +3574,7 @@ netlogon_dissect_DELTA_ENUM_ARRAY(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrdatabasedeltas_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_REF, "Server Handle", hf_netlogon_logonsrv_handle, 0);
@@ -3184,7 +3604,7 @@ netlogon_dissect_netrdatabasedeltas_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netrdatabasedeltas_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_REF,
@@ -3219,7 +3639,7 @@ netlogon_dissect_netrdatabasedeltas_reply(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrdatabasesync_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_REF, "Server Handle", hf_netlogon_logonsrv_handle, 0);
@@ -3250,7 +3670,7 @@ netlogon_dissect_netrdatabasesync_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrdatabasesync_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_REF,
@@ -3279,7 +3699,7 @@ netlogon_dissect_netrdatabasesync_reply(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_UAS_INFO_0(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -3305,7 +3725,7 @@ netlogon_dissect_UAS_INFO_0(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_BYTE_byte(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
                offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, drep,
                        hf_netlogon_unknown_char, NULL);
@@ -3316,7 +3736,7 @@ netlogon_dissect_BYTE_byte(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_BYTE_array(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_BYTE_byte);
@@ -3341,7 +3761,7 @@ netlogon_dissect_BYTE_array(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netraccountdeltas_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -3374,7 +3794,7 @@ netlogon_dissect_netraccountdeltas_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netraccountdeltas_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_REF,
@@ -3419,7 +3839,7 @@ netlogon_dissect_netraccountdeltas_reply(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netraccountsync_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -3448,7 +3868,7 @@ netlogon_dissect_netraccountsync_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netraccountsync_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_REF,
@@ -3487,7 +3907,7 @@ netlogon_dissect_netraccountsync_reply(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrgetdcname_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_REF, "Server Handle", hf_netlogon_logonsrv_handle, 0);
@@ -3499,7 +3919,7 @@ netlogon_dissect_netrgetdcname_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netrgetdcname_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_UNIQUE, "Domain", hf_netlogon_dc_name, 0);
@@ -3521,7 +3941,7 @@ netlogon_dissect_netrgetdcname_reply(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_NETLOGON_INFO_1(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_flags, NULL);
@@ -3544,7 +3964,7 @@ netlogon_dissect_NETLOGON_INFO_1(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_NETLOGON_INFO_2(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_flags, NULL);
@@ -3577,7 +3997,7 @@ netlogon_dissect_NETLOGON_INFO_2(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_NETLOGON_INFO_3(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_flags, NULL);
@@ -3614,7 +4034,7 @@ netlogon_dissect_NETLOGON_INFO_3(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_CONTROL_QUERY_INFORMATION(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint32 level;
 
@@ -3654,7 +4074,7 @@ netlogon_dissect_CONTROL_QUERY_INFORMATION(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrlogoncontrol_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -3669,7 +4089,7 @@ netlogon_dissect_netrlogoncontrol_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netrlogoncontrol_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_CONTROL_QUERY_INFORMATION, NDR_POINTER_REF,
@@ -3691,7 +4111,7 @@ netlogon_dissect_netrlogoncontrol_reply(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrgetanydcname_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_UNIQUE, "Server Handle", 
@@ -3704,7 +4124,7 @@ netlogon_dissect_netrgetanydcname_rqst(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_netrgetanydcname_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_UNIQUE, "Domain", hf_netlogon_dc_name, 0);
@@ -3734,7 +4154,7 @@ netlogon_dissect_netrgetanydcname_reply(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_CONTROL_DATA_INFORMATION(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint32 level;
 
@@ -3779,7 +4199,7 @@ netlogon_dissect_CONTROL_DATA_INFORMATION(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrlogoncontrol2_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -3799,7 +4219,7 @@ netlogon_dissect_netrlogoncontrol2_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogoncontrol2_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_CONTROL_QUERY_INFORMATION, NDR_POINTER_REF,
@@ -3825,7 +4245,7 @@ netlogon_dissect_netrlogoncontrol2_reply(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrserverauthenticate2_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -3854,7 +4274,7 @@ netlogon_dissect_netrserverauthenticate2_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrserverauthenticate2_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_CREDENTIAL, NDR_POINTER_REF,
@@ -3885,7 +4305,7 @@ netlogon_dissect_netrserverauthenticate2_reply(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrdatabasesync2_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_REF, "Server Handle", hf_netlogon_logonsrv_handle, 0);
@@ -3918,7 +4338,7 @@ netlogon_dissect_netrdatabasesync2_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrdatabasesync2_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_REF,
@@ -3951,7 +4371,7 @@ netlogon_dissect_netrdatabasesync2_reply(tvbuff_t *tvb, int offset,
  */
 static int
 netlogon_dissect_netrdatabaseredo_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_REF, "Server Handle", hf_netlogon_logonsrv_handle, 0);
@@ -3979,7 +4399,7 @@ netlogon_dissect_netrdatabaseredo_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrdatabaseredo_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_REF,
@@ -3996,12 +4416,8 @@ netlogon_dissect_netrdatabaseredo_reply(tvbuff_t *tvb, int offset,
 }
 
 
-/* XXX NetMon does not recognize this as a valid function. Muddle however
- * tells us what parameters it takes but not their names.
- * It looks similar to logoncontrol2.  perhaps it is logoncontrol3?
- */
 /*
- * IDL long NetFunction_12(
+ * IDL long NetrLogonControl2Ex(
  * IDL      [in][string][unique] wchar_t *logonserver,
  * IDL      [in] long function_code,
  * IDL      [in] long level,
@@ -4010,8 +4426,8 @@ netlogon_dissect_netrdatabaseredo_reply(tvbuff_t *tvb, int offset,
  * IDL );
  */
 static int
-netlogon_dissect_function_12_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrlogoncontrol2ex_rqst(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -4029,8 +4445,8 @@ netlogon_dissect_function_12_rqst(tvbuff_t *tvb, int offset,
        return offset;
 }
 static int
-netlogon_dissect_function_12_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrlogoncontrol2ex_reply(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_CONTROL_QUERY_INFORMATION, NDR_POINTER_REF,
@@ -4094,7 +4510,7 @@ static const true_false_string trust_tree_root = {
 };
 static int
 netlogon_dissect_DOMAIN_TRUST_FLAGS(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        guint32 mask;
        proto_item *item = NULL;
@@ -4220,7 +4636,7 @@ static const true_false_string get_dcname_request_flags_return_flat_name = {
 };
 static int
 netlogon_dissect_GET_DCNAME_REQUEST_FLAGS(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        guint32 mask;
        proto_item *item = NULL;
@@ -4349,7 +4765,7 @@ static const true_false_string dc_flags_dns_forest_flag = {
 };
 static int
 netlogon_dissect_DC_FLAGS(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        guint32 mask;
        proto_item *item = NULL;
@@ -4406,7 +4822,7 @@ netlogon_dissect_DC_FLAGS(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_pointer_long(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -4419,7 +4835,7 @@ netlogon_dissect_pointer_long(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_pointer_char(tvbuff_t *tvb, int offset,
                              packet_info *pinfo, proto_tree *tree,
-                             char *drep)
+                             guint8 *drep)
 {
        dcerpc_info *di;
 
@@ -4432,7 +4848,7 @@ netlogon_dissect_pointer_char(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_UNICODE_MULTI_byte(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
                offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, drep,
                        hf_netlogon_unknown_char, NULL);
@@ -4443,7 +4859,7 @@ netlogon_dissect_UNICODE_MULTI_byte(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_UNICODE_MULTI_array(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_UNICODE_MULTI_byte);
@@ -4454,7 +4870,7 @@ netlogon_dissect_UNICODE_MULTI_array(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_UNICODE_MULTI(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -4480,7 +4896,7 @@ netlogon_dissect_UNICODE_MULTI(tvbuff_t *tvb, int offset,
 int
 dissect_nt_GUID(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset=dissect_ndr_uuid_t(tvb, offset, pinfo, tree, drep, hf_netlogon_guid, NULL);
 
@@ -4490,7 +4906,7 @@ dissect_nt_GUID(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DOMAIN_CONTROLLER_INFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -4536,7 +4952,7 @@ netlogon_dissect_DOMAIN_CONTROLLER_INFO(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_BLOB_array(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint32 len;
        dcerpc_info *di;
@@ -4560,7 +4976,7 @@ netlogon_dissect_BLOB_array(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_BLOB(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -4584,7 +5000,7 @@ netlogon_dissect_BLOB(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DOMAIN_TRUST_INFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -4631,7 +5047,7 @@ netlogon_dissect_DOMAIN_TRUST_INFO(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DOMAIN_TRUST_INFO_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_DOMAIN_TRUST_INFO);
@@ -4642,7 +5058,7 @@ netlogon_dissect_DOMAIN_TRUST_INFO_ARRAY(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DOMAIN_QUERY_1(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = netlogon_dissect_BLOB(tvb, offset,
                pinfo, tree, drep);
@@ -4697,7 +5113,7 @@ netlogon_dissect_DOMAIN_QUERY_1(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DOMAIN_INFO_1(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = netlogon_dissect_DOMAIN_TRUST_INFO(tvb, offset, pinfo, tree, drep);
 
@@ -4747,7 +5163,7 @@ netlogon_dissect_DOMAIN_INFO_1(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DOMAIN_INFO(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint32 level;
 
@@ -4769,7 +5185,7 @@ netlogon_dissect_DOMAIN_INFO(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_UNICODE_STRING_512(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -4797,7 +5213,7 @@ netlogon_dissect_UNICODE_STRING_512(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_element_844_byte(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
                offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, drep,
                        hf_netlogon_unknown_char, NULL);
@@ -4808,7 +5224,7 @@ netlogon_dissect_element_844_byte(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_element_844_array(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_element_844_byte);
@@ -4819,7 +5235,7 @@ netlogon_dissect_element_844_array(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_TYPE_50(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -4845,7 +5261,7 @@ netlogon_dissect_TYPE_50(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_TYPE_50_ptr(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_TYPE_50, NDR_POINTER_UNIQUE,
@@ -4856,7 +5272,7 @@ netlogon_dissect_TYPE_50_ptr(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_DS_DOMAIN_TRUSTS(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *parent_tree, char *drep)
+       packet_info *pinfo, proto_tree *parent_tree, guint8 *drep)
 {
        guint32 tmp;
        proto_item *item=NULL;
@@ -4891,7 +5307,7 @@ netlogon_dissect_DS_DOMAIN_TRUSTS(tvbuff_t *tvb, int offset,
                hf_netlogon_trust_attribs, &tmp);
 
        /* SID pointer */
-       offset = dissect_ndr_nt_PSID(tvb, offset, pinfo, tree, drep, -1);
+       offset = dissect_ndr_nt_PSID(tvb, offset, pinfo, tree, drep);
 
        /* GUID */
        offset = dissect_nt_GUID(tvb, offset, pinfo, tree, drep);
@@ -4903,7 +5319,7 @@ netlogon_dissect_DS_DOMAIN_TRUSTS(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DS_DOMAIN_TRUSTS_ARRAY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_DS_DOMAIN_TRUSTS);
@@ -4914,7 +5330,7 @@ netlogon_dissect_DS_DOMAIN_TRUSTS_ARRAY(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_element_865_byte(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
                offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, drep,
                        hf_netlogon_unknown_char, NULL);
@@ -4925,7 +5341,7 @@ netlogon_dissect_element_865_byte(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_element_865_array(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_element_865_byte);
@@ -4936,7 +5352,7 @@ netlogon_dissect_element_865_array(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_element_866_byte(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
                offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, drep,
                        hf_netlogon_unknown_char, NULL);
@@ -4947,7 +5363,7 @@ netlogon_dissect_element_866_byte(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_element_866_array(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_element_866_byte);
@@ -4958,7 +5374,7 @@ netlogon_dissect_element_866_array(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_TYPE_52(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -4988,7 +5404,7 @@ netlogon_dissect_TYPE_52(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_TYPE_52_ptr(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_TYPE_52, NDR_POINTER_UNIQUE,
@@ -5000,7 +5416,7 @@ netlogon_dissect_TYPE_52_ptr(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_TYPE_44(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *parent_tree,
-                       char *drep)
+                       guint8 *drep)
 {
        proto_item *item=NULL;
        proto_tree *tree=NULL;
@@ -5031,7 +5447,7 @@ netlogon_dissect_TYPE_44(tvbuff_t *tvb, int offset,
 static int
 netlogon_dissect_DOMAIN_QUERY(tvbuff_t *tvb, int offset,
                        packet_info *pinfo, proto_tree *tree,
-                       char *drep)
+                       guint8 *drep)
 {
        guint32 level;
 
@@ -5057,7 +5473,7 @@ netlogon_dissect_DOMAIN_QUERY(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrenumeratetrusteddomains_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5068,7 +5484,7 @@ netlogon_dissect_netrenumeratetrusteddomains_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrenumeratetrusteddomains_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_UNICODE_MULTI, NDR_POINTER_REF,
@@ -5081,8 +5497,8 @@ netlogon_dissect_netrenumeratetrusteddomains_reply(tvbuff_t *tvb, int offset,
 }
 
 static int
-netlogon_dissect_dsrgetdcnameex2_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_dsrgetdcname_rqst(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5106,8 +5522,8 @@ netlogon_dissect_dsrgetdcnameex2_rqst(tvbuff_t *tvb, int offset,
 
 
 static int
-netlogon_dissect_dsrgetdcnameex2_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_dsrgetdcname_reply(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_DOMAIN_CONTROLLER_INFO, NDR_POINTER_UNIQUE,
@@ -5120,8 +5536,8 @@ netlogon_dissect_dsrgetdcnameex2_reply(tvbuff_t *tvb, int offset,
 }
 
 static int
-netlogon_dissect_function_15_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrlogondummyroutine1_rqst(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5146,8 +5562,8 @@ netlogon_dissect_function_15_rqst(tvbuff_t *tvb, int offset,
 
 
 static int
-netlogon_dissect_function_15_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrlogondummyroutine1_reply(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_UNIQUE,
@@ -5164,8 +5580,8 @@ netlogon_dissect_function_15_reply(tvbuff_t *tvb, int offset,
 }
 
 static int
-netlogon_dissect_function_16_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrlogonsetservicebits_rqst(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5181,8 +5597,8 @@ netlogon_dissect_function_16_rqst(tvbuff_t *tvb, int offset,
 
 
 static int
-netlogon_dissect_function_16_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrlogonsetservicebits_reply(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(tvb, offset, pinfo, tree, drep,
                                  hf_netlogon_rc, NULL);
@@ -5193,7 +5609,7 @@ netlogon_dissect_function_16_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogongettrustrid_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5208,7 +5624,7 @@ netlogon_dissect_netrlogongettrustrid_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogongettrustrid_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_pointer_long, NDR_POINTER_UNIQUE,
@@ -5222,8 +5638,8 @@ netlogon_dissect_netrlogongettrustrid_reply(tvbuff_t *tvb, int offset,
 
 
 static int
-netlogon_dissect_netrlogoncomputerserverdigest_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrlogoncomputeserverdigest_rqst(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5243,7 +5659,7 @@ netlogon_dissect_netrlogoncomputerserverdigest_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_BYTE_16_array(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        int i;
 
@@ -5256,8 +5672,8 @@ netlogon_dissect_BYTE_16_array(tvbuff_t *tvb, int offset,
 }
 
 static int
-netlogon_dissect_netrlogoncomputerserverdigest_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrlogoncomputeserverdigest_reply(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_BYTE_16_array, NDR_POINTER_UNIQUE,
@@ -5270,8 +5686,8 @@ netlogon_dissect_netrlogoncomputerserverdigest_reply(tvbuff_t *tvb, int offset,
 }
 
 static int
-netlogon_dissect_function_19_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrlogoncomputeclientdigest_rqst(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5292,8 +5708,8 @@ netlogon_dissect_function_19_rqst(tvbuff_t *tvb, int offset,
 
 
 static int
-netlogon_dissect_function_19_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrlogoncomputeclientdigest_reply(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_BYTE_16_array, NDR_POINTER_UNIQUE,
@@ -5307,7 +5723,7 @@ netlogon_dissect_function_19_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrserverauthenticate3_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5334,7 +5750,7 @@ netlogon_dissect_netrserverauthenticate3_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrserverauthenticate3_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_CREDENTIAL, NDR_POINTER_REF,
@@ -5354,8 +5770,8 @@ netlogon_dissect_netrserverauthenticate3_reply(tvbuff_t *tvb, int offset,
 }
 
 static int
-netlogon_dissect_dsrgetdcname_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_dsrgetdcnameex_rqst(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5377,8 +5793,8 @@ netlogon_dissect_dsrgetdcname_rqst(tvbuff_t *tvb, int offset,
 
 
 static int
-netlogon_dissect_dsrgetdcname_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_dsrgetdcnameex_reply(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_DOMAIN_CONTROLLER_INFO, NDR_POINTER_UNIQUE,
@@ -5392,7 +5808,7 @@ netlogon_dissect_dsrgetdcname_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsrgetsitename_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5403,7 +5819,7 @@ netlogon_dissect_dsrgetsitename_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsrgetsitename_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
 
        /* XXX hmmm this does not really look like a UNIQUE pointer but
@@ -5422,7 +5838,7 @@ netlogon_dissect_dsrgetsitename_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogongetdomaininfo_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        /* Unlike the other NETLOGON RPCs, this is not a unique pointer. */
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
@@ -5453,7 +5869,7 @@ netlogon_dissect_netrlogongetdomaininfo_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_netrlogongetdomaininfo_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_REF,
@@ -5470,8 +5886,8 @@ netlogon_dissect_netrlogongetdomaininfo_reply(tvbuff_t *tvb, int offset,
 }
 
 static int
-netlogon_dissect_function_1e_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrserverpasswordset2_rqst(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5499,8 +5915,8 @@ netlogon_dissect_function_1e_rqst(tvbuff_t *tvb, int offset,
 
 
 static int
-netlogon_dissect_function_1e_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrserverpasswordset2_reply(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_UNIQUE,
@@ -5513,8 +5929,8 @@ netlogon_dissect_function_1e_reply(tvbuff_t *tvb, int offset,
 }
 
 static int
-netlogon_dissect_netrserverpasswordset2_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrserverpasswordget_rqst(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5538,8 +5954,8 @@ netlogon_dissect_netrserverpasswordset2_rqst(tvbuff_t *tvb, int offset,
 
 
 static int
-netlogon_dissect_netrserverpasswordset2_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrserverpasswordget_reply(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_REF,
@@ -5556,8 +5972,8 @@ netlogon_dissect_netrserverpasswordset2_reply(tvbuff_t *tvb, int offset,
 }
 
 static int
-netlogon_dissect_function_20_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrlogonsendtosam_rqst(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5582,8 +5998,8 @@ netlogon_dissect_function_20_rqst(tvbuff_t *tvb, int offset,
 
 
 static int
-netlogon_dissect_function_20_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrlogonsendtosam_reply(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_AUTHENTICATOR, NDR_POINTER_UNIQUE,
@@ -5596,8 +6012,8 @@ netlogon_dissect_function_20_reply(tvbuff_t *tvb, int offset,
 }
 
 static int
-netlogon_dissect_function_21_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_dsraddresstositenamesw_rqst(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5614,8 +6030,8 @@ netlogon_dissect_function_21_rqst(tvbuff_t *tvb, int offset,
 
 
 static int
-netlogon_dissect_function_21_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_dsraddresstositenamesw_reply(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_TYPE_50_ptr, NDR_POINTER_UNIQUE,
@@ -5628,30 +6044,30 @@ netlogon_dissect_function_21_reply(tvbuff_t *tvb, int offset,
 }
 
 static int
-netlogon_dissect_function_22_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_dsrgetdcnameex2_rqst(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
 
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
-               NDR_POINTER_UNIQUE, "unknown string", 
-               hf_netlogon_unknown_string, 0);
+               NDR_POINTER_UNIQUE, "Client Account", 
+               hf_netlogon_acct_name, 0);
 
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_unknown_long, NULL);
 
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
-               NDR_POINTER_UNIQUE, "unknown string", 
-               hf_netlogon_unknown_string, 0);
+               NDR_POINTER_UNIQUE, "Client Account", 
+               hf_netlogon_logon_dom, 0);
 
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                dissect_nt_GUID, NDR_POINTER_UNIQUE,
-               "GUID pointer: unknown_GUID", -1);
+               "Domain GUID:", -1);
 
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
-               NDR_POINTER_UNIQUE, "unknown string", 
-               hf_netlogon_unknown_string, 0);
+               NDR_POINTER_UNIQUE, "Client Site", 
+               hf_netlogon_site_name, 0);
 
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_unknown_long, NULL);
@@ -5661,8 +6077,8 @@ netlogon_dissect_function_22_rqst(tvbuff_t *tvb, int offset,
 
 
 static int
-netlogon_dissect_function_22_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_dsrgetdcnameex2_reply(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_DOMAIN_CONTROLLER_INFO, NDR_POINTER_UNIQUE,
@@ -5675,8 +6091,8 @@ netlogon_dissect_function_22_reply(tvbuff_t *tvb, int offset,
 }
 
 static int
-netlogon_dissect_function_23_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrlogongettimeserviceparentdomain_rqst(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5686,8 +6102,8 @@ netlogon_dissect_function_23_rqst(tvbuff_t *tvb, int offset,
 
 
 static int
-netlogon_dissect_function_23_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrlogongettimeserviceparentdomain_reply(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_UNIQUE, "unknown string", 
@@ -5704,8 +6120,8 @@ netlogon_dissect_function_23_reply(tvbuff_t *tvb, int offset,
 }
 
 static int
-netlogon_dissect_function_24_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrenumeratetrusteddomainsex_rqst(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5714,8 +6130,8 @@ netlogon_dissect_function_24_rqst(tvbuff_t *tvb, int offset,
 }
 
 static int
-netlogon_dissect_function_24_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrenumeratetrusteddomainsex_reply(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_entries, NULL);
@@ -5731,8 +6147,8 @@ netlogon_dissect_function_24_reply(tvbuff_t *tvb, int offset,
 }
 
 static int
-netlogon_dissect_function_25_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_dsraddresstositenamesexw_rqst(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5749,8 +6165,8 @@ netlogon_dissect_function_25_rqst(tvbuff_t *tvb, int offset,
 
 
 static int
-netlogon_dissect_function_25_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_dsraddresstositenamesexw_reply(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_TYPE_52_ptr, NDR_POINTER_UNIQUE,
@@ -5765,7 +6181,7 @@ netlogon_dissect_function_25_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_site_name_item(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_counted_string_cb(
                tvb, offset, pinfo, tree, drep, hf_netlogon_site_name,
@@ -5776,7 +6192,7 @@ netlogon_dissect_site_name_item(tvbuff_t *tvb, int offset,
 }
 static int
 netlogon_dissect_site_name_array(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_ucarray(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_site_name_item);
@@ -5786,7 +6202,7 @@ netlogon_dissect_site_name_array(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_site_names(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_count, NULL);
@@ -5799,8 +6215,8 @@ netlogon_dissect_site_names(tvbuff_t *tvb, int offset,
 }
 
 static int
-netlogon_dissect_dsrgetdcsitecoverage_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_dsrgetdcsitecoveragew_rqst(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5810,8 +6226,8 @@ netlogon_dissect_dsrgetdcsitecoverage_rqst(tvbuff_t *tvb, int offset,
 
 
 static int
-netlogon_dissect_dsrgetdcsitecoverage_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_dsrgetdcsitecoveragew_reply(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
         offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_site_names, NDR_POINTER_UNIQUE,
@@ -5824,8 +6240,8 @@ netlogon_dissect_dsrgetdcsitecoverage_reply(tvbuff_t *tvb, int offset,
 }
 
 static int
-netlogon_dissect_logonsamlogonex_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrlogonsamlogonex_rqst(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_str_pointer_item(tvb, offset, pinfo, tree, drep,
                NDR_POINTER_UNIQUE, "unknown string", 
@@ -5853,8 +6269,8 @@ netlogon_dissect_logonsamlogonex_rqst(tvbuff_t *tvb, int offset,
 
 
 static int
-netlogon_dissect_logonsamlogonex_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+netlogon_dissect_netrlogonsamlogonex_reply(tvbuff_t *tvb, int offset,
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
                netlogon_dissect_VALIDATION, NDR_POINTER_UNIQUE,
@@ -5877,7 +6293,7 @@ netlogon_dissect_logonsamlogonex_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsrenumeratedomaintrusts_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5890,7 +6306,7 @@ netlogon_dissect_dsrenumeratedomaintrusts_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsrenumeratedomaintrusts_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
                hf_netlogon_entries, NULL);
@@ -5907,7 +6323,7 @@ netlogon_dissect_dsrenumeratedomaintrusts_reply(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsrderegisterdnshostrecords_rqst(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
                pinfo, tree, drep);
@@ -5932,7 +6348,7 @@ netlogon_dissect_dsrderegisterdnshostrecords_rqst(tvbuff_t *tvb, int offset,
 
 static int
 netlogon_dissect_dsrderegisterdnshostrecords_reply(tvbuff_t *tvb, int offset,
-       packet_info *pinfo, proto_tree *tree, char *drep)
+       packet_info *pinfo, proto_tree *tree, guint8 *drep)
 {
        offset = dissect_ntstatus(tvb, offset, pinfo, tree, drep,
                                  hf_netlogon_rc, NULL);
@@ -5956,7 +6372,7 @@ static gint ett_secchan_bind_ack_creds = -1;
 
 static int dissect_secchan_bind_creds(tvbuff_t *tvb, int offset,
                                      packet_info *pinfo, 
-                                     proto_tree *tree, char *drep)
+                                     proto_tree *tree, guint8 *drep)
 {
        proto_item *item = NULL;
        proto_tree *subtree = NULL;
@@ -5964,7 +6380,7 @@ static int dissect_secchan_bind_creds(tvbuff_t *tvb, int offset,
 
        if (tree) {
                item = proto_tree_add_text(
-                       tree, tvb, offset, tvb_length(tvb),
+                       tree, tvb, offset, -1,
                        "Secure Channel Bind Credentials");
                subtree = proto_item_add_subtree(
                        item, ett_secchan_bind_creds);
@@ -6001,14 +6417,14 @@ static int dissect_secchan_bind_creds(tvbuff_t *tvb, int offset,
 
 static int dissect_secchan_bind_ack_creds(tvbuff_t *tvb, int offset,
                                          packet_info *pinfo, 
-                                         proto_tree *tree, char *drep)
+                                         proto_tree *tree, guint8 *drep)
 {
        proto_item *item = NULL;
        proto_tree *subtree = NULL;
 
        if (tree) {
                item = proto_tree_add_text(
-                       tree, tvb, offset, 0,
+                       tree, tvb, offset, -1,
                        "Secure Channel Bind ACK Credentials");
                subtree = proto_item_add_subtree(
                        item, ett_secchan_bind_ack_creds);
@@ -6088,78 +6504,89 @@ static dcerpc_sub_dissector dcerpc_netlogon_dissectors[] = {
        { NETLOGON_NETRDATABASEREDO, "NetrDatabaseRedo",
                netlogon_dissect_netrdatabaseredo_rqst,
                netlogon_dissect_netrdatabaseredo_reply },
-       { NETLOGON_FUNCTION_12, "Function_0x12",
-               netlogon_dissect_function_12_rqst,
-               netlogon_dissect_function_12_reply },
+       { NETLOGON_NETRLOGONCONTROL2EX, "NetrLogonControl2Ex",
+               netlogon_dissect_netrlogoncontrol2ex_rqst,
+               netlogon_dissect_netrlogoncontrol2ex_reply },
        { NETLOGON_NETRENUMERATETRUSTEDDOMAINS, "NetrEnumerateTrustedDomains",
                netlogon_dissect_netrenumeratetrusteddomains_rqst,
                netlogon_dissect_netrenumeratetrusteddomains_reply },
-       { NETLOGON_DSRGETDCNAMEEX2, "DsrGetDcNameEx2",
-               netlogon_dissect_dsrgetdcnameex2_rqst,
-               netlogon_dissect_dsrgetdcnameex2_reply },
-       { NETLOGON_FUNCTION_15, "Function 0x15",
-               netlogon_dissect_function_15_rqst,
-               netlogon_dissect_function_15_reply },
-       { NETLOGON_FUNCTION_16, "Function 0x16",
-               netlogon_dissect_function_16_rqst,
-               netlogon_dissect_function_16_reply },
+       { NETLOGON_DSRGETDCNAME, "DsrGetDcName",
+               netlogon_dissect_dsrgetdcname_rqst,
+               netlogon_dissect_dsrgetdcname_reply },
+       { NETLOGON_NETRLOGONDUMMYROUTINE1, "NetrLogonDummyRoutine1",
+               netlogon_dissect_netrlogondummyroutine1_rqst,
+               netlogon_dissect_netrlogondummyroutine1_reply },
+       { NETLOGON_NETRLOGONSETSERVICEBITS, "NetrLogonSetServiceBits",
+               netlogon_dissect_netrlogonsetservicebits_rqst,
+               netlogon_dissect_netrlogonsetservicebits_reply },
        { NETLOGON_NETRLOGONGETTRUSTRID, "NetrLogonGetTrustRid",
                netlogon_dissect_netrlogongettrustrid_rqst,
                netlogon_dissect_netrlogongettrustrid_reply },
-       { NETLOGON_NETRLOGONCOMPUTERSERVERDIGEST, "NetrLogonComputerServerDigest",
-               netlogon_dissect_netrlogoncomputerserverdigest_rqst,
-               netlogon_dissect_netrlogoncomputerserverdigest_reply },
-       { NETLOGON_FUNCTION_19, "Function 0x19",
-               netlogon_dissect_function_19_rqst,
-               netlogon_dissect_function_19_reply },
+       { NETLOGON_NETRLOGONCOMPUTESERVERDIGEST, "NetrLogonComputeServerDigest",
+               netlogon_dissect_netrlogoncomputeserverdigest_rqst,
+               netlogon_dissect_netrlogoncomputeserverdigest_reply },
+       { NETLOGON_NETRLOGONCOMPUTECLIENTDIGEST, "NetrLogonComputeClientDigest",
+               netlogon_dissect_netrlogoncomputeclientdigest_rqst,
+               netlogon_dissect_netrlogoncomputeclientdigest_reply },
        { NETLOGON_NETRSERVERAUTHENTICATE3, "NetrServerAuthenticate3",
                netlogon_dissect_netrserverauthenticate3_rqst,
                netlogon_dissect_netrserverauthenticate3_reply },
-       { NETLOGON_DSRGETDCNAME, "DsrGetDcName",
-               netlogon_dissect_dsrgetdcname_rqst,
-               netlogon_dissect_dsrgetdcname_reply },
+       { NETLOGON_DSRGETDCNAMEX, "DsrGetDcNameEx",
+               netlogon_dissect_dsrgetdcnameex_rqst,
+               netlogon_dissect_dsrgetdcnameex_reply },
        { NETLOGON_DSRGETSITENAME, "DsrGetSiteName",
                netlogon_dissect_dsrgetsitename_rqst,
                netlogon_dissect_dsrgetsitename_reply },
        { NETLOGON_NETRLOGONGETDOMAININFO, "NetrLogonGetDomainInfo",
                netlogon_dissect_netrlogongetdomaininfo_rqst,
                netlogon_dissect_netrlogongetdomaininfo_reply },
-       { NETLOGON_FUNCTION_1E, "Function_0x1E",
-               netlogon_dissect_function_1e_rqst,
-               netlogon_dissect_function_1e_reply },
        { NETLOGON_NETRSERVERPASSWORDSET2, "NetrServerPasswordSet2",
                netlogon_dissect_netrserverpasswordset2_rqst,
                netlogon_dissect_netrserverpasswordset2_reply },
-       { NETLOGON_FUNCTION_20, "Function_0x20",
-               netlogon_dissect_function_20_rqst,
-               netlogon_dissect_function_20_reply },
-       { NETLOGON_FUNCTION_21, "Function_0x21",
-               netlogon_dissect_function_21_rqst,
-               netlogon_dissect_function_21_reply },
-       { NETLOGON_FUNCTION_22, "Function_0x22",
-               netlogon_dissect_function_22_rqst,
-               netlogon_dissect_function_22_reply },
-       { NETLOGON_FUNCTION_23, "Function_0x23",
-               netlogon_dissect_function_23_rqst,
-               netlogon_dissect_function_23_reply },
-       { NETLOGON_FUNCTION_24, "Function_0x24",
-               netlogon_dissect_function_24_rqst,
-               netlogon_dissect_function_24_reply },
-       { NETLOGON_FUNCTION_25, "Function_0x25",
-               netlogon_dissect_function_25_rqst,
-               netlogon_dissect_function_25_reply },
-       { NETLOGON_DSRGETDCSITECOVERAGE, "DsrGetDcSiteCoverage",
-               netlogon_dissect_dsrgetdcsitecoverage_rqst,
-               netlogon_dissect_dsrgetdcsitecoverage_reply },
-       { NETLOGON_LOGONSAMLOGONEX, "LogonSamLogonEx",
-               netlogon_dissect_logonsamlogonex_rqst,
-               netlogon_dissect_logonsamlogonex_reply },
+       { NETLOGON_NETRSERVERPASSWORDGET, "NetrServerPasswordGet",
+               netlogon_dissect_netrserverpasswordget_rqst,
+               netlogon_dissect_netrserverpasswordget_reply },
+       { NETLOGON_NETRLOGONSENDTOSAM, "NetrLogonSendToSam",
+               netlogon_dissect_netrlogonsendtosam_rqst,
+               netlogon_dissect_netrlogonsendtosam_reply },
+       { NETLOGON_DSRADDRESSTOSITENAMESW, "DsrAddressToSiteNamesW",
+               netlogon_dissect_dsraddresstositenamesw_rqst,
+               netlogon_dissect_dsraddresstositenamesw_reply },
+       { NETLOGON_DSRGETDCNAMEEX2, "DsrGetDcNameEx2",
+               netlogon_dissect_dsrgetdcnameex2_rqst,
+               netlogon_dissect_dsrgetdcnameex2_reply },
+       { NETLOGON_NETRLOGONGETTIMESERVICEPARENTDOMAIN, 
+               "NetrLogonGetTimeServiceParentDomain",
+               netlogon_dissect_netrlogongettimeserviceparentdomain_rqst,
+               netlogon_dissect_netrlogongettimeserviceparentdomain_reply },
+       { NETLOGON_NETRENUMERATETRUSTEDDOMAINSEX, "NetrEnumerateTrustedDomainsEx",
+               netlogon_dissect_netrenumeratetrusteddomainsex_rqst,
+               netlogon_dissect_netrenumeratetrusteddomainsex_reply },
+       { NETLOGON_DSRADDRESSTOSITENAMESEXW, "DsrAddressToSiteNamesExW",
+               netlogon_dissect_dsraddresstositenamesexw_rqst,
+               netlogon_dissect_dsraddresstositenamesexw_reply },
+       { NETLOGON_DSRGETDCSITECOVERAGEW, "DsrGetDcSiteCoverageW",
+               netlogon_dissect_dsrgetdcsitecoveragew_rqst,
+               netlogon_dissect_dsrgetdcsitecoveragew_reply },
+       { NETLOGON_NETRLOGONSAMLOGONEX, "NetrLogonSamLogonEx",
+               netlogon_dissect_netrlogonsamlogonex_rqst,
+               netlogon_dissect_netrlogonsamlogonex_reply },
        { NETLOGON_DSRENUMERATEDOMAINTRUSTS, "DsrEnumerateDomainTrusts",
                netlogon_dissect_dsrenumeratedomaintrusts_rqst,
                netlogon_dissect_dsrenumeratedomaintrusts_reply },
        { NETLOGON_DSRDEREGISTERDNSHOSTRECORDS, "DsrDeregisterDnsHostRecords",
                netlogon_dissect_dsrderegisterdnshostrecords_rqst,
                netlogon_dissect_dsrderegisterdnshostrecords_reply },
+       { NETLOGON_NETRSERVERTRUSTPASSWORDSGET, "NetrServerTrustPasswordsGet",
+               NULL, NULL },
+       { NETLOGON_DSRGETFORESTTRUSTINFORMATION, "DsrGetForestTrustInformation",
+               NULL, NULL },
+       { NETLOGON_NETRGETFORESTTRUSTINFORMATION, "NetrGetForestTrustInformation",
+               NULL, NULL },
+       { NETLOGON_NETRLOGONSAMLOGONWITHFLAGS, "NetrLogonSamLogonWithFlags", 
+               NULL, NULL },
+       { NETLOGON_NETRSERVERGETTRUSTINFO, "NetrServerGetTrustInfo",
+               NULL, NULL },
         {0, NULL, NULL,  NULL }
 };
 
@@ -6171,7 +6598,7 @@ static int hf_netlogon_secchan_verf_nonce = -1;
 
 static int
 dissect_secchan_verf(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, 
-                    proto_tree *tree, char *drep _U_)
+                    proto_tree *tree, guint8 *drep _U_)
 {
           proto_item *vf = NULL;
           proto_tree *subtree = NULL;
@@ -6182,22 +6609,27 @@ dissect_secchan_verf(tvbuff_t *tvb, int offset, packet_info *pinfo _U_,
           vf = proto_tree_add_item(tree, hf_netlogon_secchan_verf, tvb,
               offset, -1, FALSE);
           subtree = proto_item_add_subtree(vf, ett_secchan_verf);
-                                                                                
+
           proto_tree_add_item(subtree, hf_netlogon_secchan_verf_sig, tvb,
               offset, 8, FALSE);
          offset += 8;
-                                                                                
+
           proto_tree_add_item(subtree, hf_netlogon_secchan_verf_unk, tvb,
               offset, 8, FALSE);
          offset += 8;
-                                                                                
+
           proto_tree_add_item(subtree, hf_netlogon_secchan_verf_seq, tvb,
               offset, 8, FALSE);
          offset += 8;
-                                                                                
-          proto_tree_add_item(subtree, hf_netlogon_secchan_verf_nonce, tvb,
-              offset, 8, FALSE);
-         offset += 8;
+
+         /* In some cases the nonce isn't present although it isn't clear
+            why this is so. */
+
+         if (tvb_bytes_exist(tvb, offset, 8)) {
+                 proto_tree_add_item(subtree, hf_netlogon_secchan_verf_nonce,
+                                     tvb, offset, 8, FALSE);
+                 offset += 8;
+         }
 
          return offset;
 }
@@ -6453,6 +6885,10 @@ static hf_register_info hf[] = {
                { "Domain", "netlogon.domain", FT_STRING, BASE_NONE,
                NULL, 0, "Domain", HFILL }},
 
+       { &hf_netlogon_resourcegroupcount,
+               { "ResourceGroup count", "netlogon.resourcegroupcount", FT_UINT32, BASE_DEC,
+               NULL, 0, "Number of Resource Groups", HFILL }},
+
        { &hf_netlogon_computer_name,
                { "Computer Name", "netlogon.computer_name", FT_STRING, BASE_NONE,
                NULL, 0, "Computer Name", HFILL }},
@@ -6649,9 +7085,13 @@ static hf_register_info hf[] = {
                { "Flags", "netlogon.flags", FT_UINT32, BASE_HEX,
                NULL, 0x0, "", HFILL }},
 
+       { &hf_netlogon_user_account_control,
+               { "User Account Control", "netlogon.user_account_control", FT_UINT32, BASE_HEX,
+               NULL, 0x0, "User Account control", HFILL }},
+
        { &hf_netlogon_user_flags,
                { "User Flags", "netlogon.user_flags", FT_UINT32, BASE_HEX,
-               NULL, 0x0, "", HFILL }},
+               NULL, 0x0, "User flags", HFILL }},
 
        { &hf_netlogon_auth_flags,
                { "Auth Flags", "netlogon.auth_flags", FT_UINT32, BASE_HEX,
@@ -6941,10 +7381,18 @@ static hf_register_info hf[] = {
                { "Logoff Time", "netlogon.logoff_time", FT_ABSOLUTE_TIME, BASE_NONE,
                NULL, 0, "Time for last time this user logged off", HFILL }},
 
+       { &hf_netlogon_last_logoff_time,
+               { "Last Logoff Time", "netlogon.last_logoff_time", FT_ABSOLUTE_TIME, BASE_NONE,
+               NULL, 0, "Time for last time this user logged off", HFILL }},
+
        { &hf_netlogon_pwd_last_set_time,
                { "PWD Last Set", "netlogon.pwd_last_set_time", FT_ABSOLUTE_TIME, BASE_NONE,
                NULL, 0, "Last time this users password was changed", HFILL }},
 
+       { &hf_netlogon_pwd_age,
+               { "PWD Age", "netlogon.pwd_age", FT_RELATIVE_TIME, BASE_NONE,
+               NULL, 0, "Time since this users password was changed", HFILL }},
+
        { &hf_netlogon_pwd_can_change_time,
                { "PWD Can Change", "netlogon.pwd_can_change_time", FT_ABSOLUTE_TIME, BASE_NONE,
                NULL, 0, "When this users password may be changed", HFILL }},
@@ -7038,6 +7486,117 @@ static hf_register_info hf[] = {
         { &hf_netlogon_secchan_verf_nonce,
           { "Nonce", "netlogon.secchan.nonce", FT_BYTES, BASE_HEX, NULL, 
           0x0, "Nonce", HFILL }}, 
+
+       { &hf_netlogon_group_attrs_mandatory,
+               { "Mandatory", "netlogon.groups.attrs.mandatory",
+                 FT_BOOLEAN, 32, TFS(&group_attrs_mandatory), 0x00000001,
+                 "The group attributes MANDATORY flag", HFILL }},
+
+       { &hf_netlogon_group_attrs_enabled_by_default,
+               { "Enabled By Default", "netlogon.groups.attrs.enabled_by_default",
+                 FT_BOOLEAN, 32, TFS(&group_attrs_enabled_by_default), 0x00000002,
+                 "The group attributes ENABLED_BY_DEFAULT flag", HFILL }},
+
+       { &hf_netlogon_group_attrs_enabled,
+               { "Enabled", "netlogon.groups.attrs.enabled",
+                 FT_BOOLEAN, 32, TFS(&group_attrs_enabled), 0x00000004,
+                 "The group attributes ENABLED flag", HFILL }},
+
+       { &hf_netlogon_user_flags_extra_sids,
+               { "Extra SIDs", "netlogon.user.flags.extra_sids",
+                 FT_BOOLEAN, 32, TFS(&user_flags_extra_sids), 0x00000020,
+                 "The user flags EXTRA_SIDS", HFILL }},
+
+       { &hf_netlogon_user_flags_resource_groups,
+               { "Resource Groups", "netlogon.user.flags.resource_groups",
+                 FT_BOOLEAN, 32, TFS(&user_flags_resource_groups), 0x00000200,
+                 "The user flags RESOURCE_GROUPS", HFILL }},
+
+       { &hf_netlogon_user_account_control_dont_require_preauth,
+               { "Dont Require PreAuth", "netlogon.user.account_control.dont_require_preauth",
+                 FT_BOOLEAN, 32, TFS(&user_account_control_dont_require_preauth), 0x00010000,
+                 "The user account control DONT_REQUIRE_PREAUTH flag ", HFILL }},
+
+       { &hf_netlogon_user_account_control_use_des_key_only,
+               { "Use DES Key Only", "netlogon.user.account_control.use_des_key_only",
+                 FT_BOOLEAN, 32, TFS(&user_account_control_use_des_key_only), 0x00008000,
+                 "The user account control use_des_key_only flag ", HFILL }},
+
+       { &hf_netlogon_user_account_control_not_delegated,
+               { "Not Delegated", "netlogon.user.account_control.not_delegated",
+                 FT_BOOLEAN, 32, TFS(&user_account_control_not_delegated), 0x00004000,
+                 "The user account control not_delegated flag ", HFILL }},
+
+       { &hf_netlogon_user_account_control_trusted_for_delegation,
+               { "Trusted For Delegation", "netlogon.user.account_control.trusted_for_delegation",
+                 FT_BOOLEAN, 32, TFS(&user_account_control_trusted_for_delegation), 0x00002000,
+                 "The user account control trusted_for_delegation flag ", HFILL }},
+
+       { &hf_netlogon_user_account_control_smartcard_required,
+               { "SmartCard Required", "netlogon.user.account_control.smartcard_required",
+                 FT_BOOLEAN, 32, TFS(&user_account_control_smartcard_required), 0x00001000,
+                 "The user account control smartcard_required flag ", HFILL }},
+
+       { &hf_netlogon_user_account_control_encrypted_text_password_allowed,
+               { "Encrypted Text Password Allowed", "netlogon.user.account_control.encrypted_text_password_allowed",
+                 FT_BOOLEAN, 32, TFS(&user_account_control_encrypted_text_password_allowed), 0x00000800,
+                 "The user account control encrypted_text_password_allowed flag ", HFILL }},
+
+       { &hf_netlogon_user_account_control_account_auto_locked,
+               { "Account Auto Locked", "netlogon.user.account_control.account_auto_locked",
+                 FT_BOOLEAN, 32, TFS(&user_account_control_account_auto_locked), 0x00000400,
+                 "The user account control account_auto_locked flag ", HFILL }},
+
+       { &hf_netlogon_user_account_control_dont_expire_password,
+               { "Dont Expire Password", "netlogon.user.account_control.dont_expire_password",
+                 FT_BOOLEAN, 32, TFS(&user_account_control_dont_expire_password), 0x00000200,
+                 "The user account control dont_expire_password flag ", HFILL }},
+
+       { &hf_netlogon_user_account_control_server_trust_account,
+               { "Server Trust Account", "netlogon.user.account_control.server_trust_account",
+                 FT_BOOLEAN, 32, TFS(&user_account_control_server_trust_account), 0x00000100,
+                 "The user account control server_trust_account flag ", HFILL }},
+
+       { &hf_netlogon_user_account_control_workstation_trust_account,
+               { "Workstation Trust Account", "netlogon.user.account_control.workstation_trust_account",
+                 FT_BOOLEAN, 32, TFS(&user_account_control_workstation_trust_account), 0x00000080,
+                 "The user account control workstation_trust_account flag ", HFILL }},
+
+       { &hf_netlogon_user_account_control_interdomain_trust_account,
+               { "Interdomain trust Account", "netlogon.user.account_control.interdomain_trust_account",
+                 FT_BOOLEAN, 32, TFS(&user_account_control_interdomain_trust_account), 0x00000040,
+                 "The user account control interdomain_trust_account flag ", HFILL }},
+
+       { &hf_netlogon_user_account_control_mns_logon_account,
+               { "MNS Logon Account", "netlogon.user.account_control.mns_logon_account",
+                 FT_BOOLEAN, 32, TFS(&user_account_control_mns_logon_account), 0x00000020,
+                 "The user account control mns_logon_account flag ", HFILL }},
+
+       { &hf_netlogon_user_account_control_normal_account,
+               { "Normal Account", "netlogon.user.account_control.normal_account",
+                 FT_BOOLEAN, 32, TFS(&user_account_control_normal_account), 0x00000010,
+                 "The user account control normal_account flag ", HFILL }},
+
+       { &hf_netlogon_user_account_control_temp_duplicate_account,
+               { "Temp Duplicate Account", "netlogon.user.account_control.temp_duplicate_account",
+                 FT_BOOLEAN, 32, TFS(&user_account_control_temp_duplicate_account), 0x00000008,
+                 "The user account control temp_duplicate_account flag ", HFILL }},
+
+       { &hf_netlogon_user_account_control_password_not_required,
+               { "Password Not Required", "netlogon.user.account_control.password_not_required",
+                 FT_BOOLEAN, 32, TFS(&user_account_control_password_not_required), 0x00000004,
+                 "The user account control password_not_required flag ", HFILL }},
+
+       { &hf_netlogon_user_account_control_home_directory_required,
+               { "Home Directory Required", "netlogon.user.account_control.home_directory_required",
+                 FT_BOOLEAN, 32, TFS(&user_account_control_home_directory_required), 0x00000002,
+                 "The user account control home_directory_required flag ", HFILL }},
+
+       { &hf_netlogon_user_account_control_account_disabled,
+               { "Account Disabled", "netlogon.user.account_control.account_disabled",
+                 FT_BOOLEAN, 32, TFS(&user_account_control_account_disabled), 0x00000001,
+                 "The user account control account_disabled flag ", HFILL }},
+
        };
 
         static gint *ett[] = {
@@ -7065,7 +7624,10 @@ static hf_register_info hf[] = {
                &ett_dc_flags,
                &ett_secchan_bind_creds,
                &ett_secchan_bind_ack_creds,
-               &ett_secchan_verf
+               &ett_secchan_verf,
+               &ett_group_attrs,
+               &ett_user_flags,
+               &ett_user_account_control
         };
 
         proto_dcerpc_netlogon = proto_register_protocol(