[SCM] Samba Shared Repository - branch master updated

Isaac Boukris iboukris at samba.org
Wed Nov 20 22:30:01 UTC 2019


The branch, master has been updated
       via  9e51bb77f82 s4:rpc_server: Return the status code from dcesrv_transport_session_key()
      from  e7cab18c8b0 vfs: Fix a typo

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


- Log -----------------------------------------------------------------
commit 9e51bb77f82292800c6f0c0563124954d8f0c524
Author: Andreas Schneider <asn at samba.org>
Date:   Fri Nov 15 13:34:08 2019 +0100

    s4:rpc_server: Return the status code from dcesrv_transport_session_key()
    
    Normally this returns the right status code, which normally is:
    
       NT_STATUS_NO_USER_SESSION_KEY
    
    This is consitent with the source3 samr server implmentation.
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Isaac Boukris <iboukris at samba.org>
    
    Autobuild-User(master): Isaac Boukris <iboukris at samba.org>
    Autobuild-Date(master): Wed Nov 20 22:29:35 UTC 2019 on sn-devel-184

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

Summary of changes:
 source4/rpc_server/samr/samr_password.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/rpc_server/samr/samr_password.c b/source4/rpc_server/samr/samr_password.c
index 7cb261c8c9b..6ad228add60 100644
--- a/source4/rpc_server/samr/samr_password.c
+++ b/source4/rpc_server/samr/samr_password.c
@@ -599,10 +599,9 @@ NTSTATUS samr_set_password(struct dcesrv_call_state *dce_call,
 
 	nt_status = dcesrv_transport_session_key(dce_call, &session_key);
 	if (!NT_STATUS_IS_OK(nt_status)) {
-		DEBUG(3,("samr: failed to get session key: %s "
-			 "=> NT_STATUS_WRONG_PASSWORD\n",
-			nt_errstr(nt_status)));
-		return NT_STATUS_WRONG_PASSWORD;
+		DBG_NOTICE("samr: failed to get session key: %s\n",
+			   nt_errstr(nt_status));
+		return nt_status;
 	}
 
 	_session_key = (gnutls_datum_t) {


-- 
Samba Shared Repository



More information about the samba-cvs mailing list