The branch, v3-5-test has been updated
       via  96b6d67... s3-netlogon: fix updating trust accout passwords with 
downlevel domains.
      from  90a291f... Last 2 VFS_STAT -> LSTAT fixes I can see in the modules 
code. Jeremy.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test


- Log -----------------------------------------------------------------
commit 96b6d67c381b0c6078678ed74342b6fcd0f04a6b
Author: Günther Deschner <g...@samba.org>
Date:   Fri Oct 16 18:01:19 2009 +0200

    s3-netlogon: fix updating trust accout passwords with downlevel domains.
    
    When choosing the netlogon password set function, make sure to look at the
    *negotiated* flags in the cli->dc state, not the ones we start the 
negotiation
    with.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source3/rpc_client/cli_netlogon.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/rpc_client/cli_netlogon.c 
b/source3/rpc_client/cli_netlogon.c
index a5f48d4..191a0b0 100644
--- a/source3/rpc_client/cli_netlogon.c
+++ b/source3/rpc_client/cli_netlogon.c
@@ -516,10 +516,10 @@ NTSTATUS rpccli_netlogon_set_trust_password(struct 
rpc_pipe_client *cli,
                                            enum netr_SchannelType 
sec_channel_type)
 {
        NTSTATUS result;
-       uint32_t neg_flags = NETLOGON_NEG_AUTH2_ADS_FLAGS;
        struct netr_Authenticator clnt_creds, srv_cred;
 
        if (!cli->dc) {
+               uint32_t neg_flags = NETLOGON_NEG_AUTH2_ADS_FLAGS;
                result = rpccli_netlogon_setup_creds(cli,
                                                     cli->desthost, /* server 
name */
                                                     lp_workgroup(), /* domain 
*/
@@ -537,7 +537,7 @@ NTSTATUS rpccli_netlogon_set_trust_password(struct 
rpc_pipe_client *cli,
 
        netlogon_creds_client_authenticator(cli->dc, &clnt_creds);
 
-       if (neg_flags & NETLOGON_NEG_PASSWORD_SET2) {
+       if (cli->dc->negotiate_flags & NETLOGON_NEG_PASSWORD_SET2) {
 
                struct netr_CryptPassword new_password;
 


-- 
Samba Shared Repository

Reply via email to