s3-netlogon: match all logon levels in netr_SamLogon calls.
authorGünther Deschner <gd@samba.org>
Mon, 31 Aug 2009 18:20:52 +0000 (20:20 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 16 Sep 2009 15:59:56 +0000 (17:59 +0200)
Guenther

source3/rpc_server/srv_netlog_nt.c

index 33a81fa651bbef410f8dbbbfc023819931928740..1982da4f2d0f9a06b2baa1180ea47e39ca1e7d6b 100644 (file)
@@ -918,6 +918,9 @@ static NTSTATUS _netr_LogonSamLogon_base(pipes_struct *p,
 
        switch (r->in.logon_level) {
        case NetlogonInteractiveInformation:
+       case NetlogonServiceInformation:
+       case NetlogonInteractiveTransitiveInformation:
+       case NetlogonServiceTransitiveInformation:
                nt_username     = logon->password->identity_info.account_name.string;
                nt_domain       = logon->password->identity_info.domain_name.string;
                nt_workstation  = logon->password->identity_info.workstation.string;
@@ -925,6 +928,7 @@ static NTSTATUS _netr_LogonSamLogon_base(pipes_struct *p,
                DEBUG(3,("SAM Logon (Interactive). Domain:[%s].  ", lp_workgroup()));
                break;
        case NetlogonNetworkInformation:
+       case NetlogonNetworkTransitiveInformation:
                nt_username     = logon->network->identity_info.account_name.string;
                nt_domain       = logon->network->identity_info.domain_name.string;
                nt_workstation  = logon->network->identity_info.workstation.string;
@@ -947,6 +951,7 @@ static NTSTATUS _netr_LogonSamLogon_base(pipes_struct *p,
 
        switch (r->in.logon_level) {
        case NetlogonNetworkInformation:
+       case NetlogonNetworkTransitiveInformation:
        {
                const char *wksname = nt_workstation;
 
@@ -976,6 +981,10 @@ static NTSTATUS _netr_LogonSamLogon_base(pipes_struct *p,
                break;
        }
        case NetlogonInteractiveInformation:
+       case NetlogonServiceInformation:
+       case NetlogonInteractiveTransitiveInformation:
+       case NetlogonServiceTransitiveInformation:
+
                /* 'Interactive' authentication, supplies the password in its
                   MD4 form, encrypted with the session key.  We will convert
                   this to challenge/response for the auth subsystem to chew