[SCM] Samba Shared Repository - branch master updated - tevent-0-9-8-371-g42e393a

Günther Deschner gd at samba.org
Wed Sep 16 10:00:02 MDT 2009


The branch, master has been updated
       via  42e393af28340bb18cc4a9b47a08df2be870441e (commit)
      from  53d6dd3d52b36f65dcba8ff951f2febb995660ca (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 42e393af28340bb18cc4a9b47a08df2be870441e
Author: Günther Deschner <gd at samba.org>
Date:   Mon Aug 17 17:57:47 2009 +0200

    s3-rpcclient: fix netr_LogonGetCapabilities command.
    
    Guenther

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

Summary of changes:
 source3/rpcclient/cmd_netlogon.c |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/rpcclient/cmd_netlogon.c b/source3/rpcclient/cmd_netlogon.c
index aa49321..ae76652 100644
--- a/source3/rpcclient/cmd_netlogon.c
+++ b/source3/rpcclient/cmd_netlogon.c
@@ -1127,11 +1127,9 @@ static NTSTATUS cmd_netlogon_capabilities(struct rpc_pipe_client *cli,
 		level = atoi(argv[1]);
 	}
 
-#if 0
+	ZERO_STRUCT(return_authenticator);
+
 	netlogon_creds_client_authenticator(cli->dc, &credential);
-#else
-	ZERO_STRUCT(credential);
-#endif
 
 	status = rpccli_netr_LogonGetCapabilities(cli, mem_ctx,
 						  cli->desthost,
@@ -1140,13 +1138,14 @@ static NTSTATUS cmd_netlogon_capabilities(struct rpc_pipe_client *cli,
 						  &return_authenticator,
 						  level,
 						  &capabilities);
-#if 0
+
 	if (!netlogon_creds_client_check(cli->dc,
 					 &return_authenticator.cred)) {
 		DEBUG(0,("credentials chain check failed\n"));
 		return NT_STATUS_ACCESS_DENIED;
 	}
-#endif
+
+	printf("capabilities: 0x%08x\n", capabilities.server_capabilities);
 
 	return status;
 }


-- 
Samba Shared Repository


More information about the samba-cvs mailing list