Ignore:
Timestamp:
Jun 9, 2016, 2:23:12 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: apply latest security patches to trunk

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/rpcclient/rpcclient.c

    r918 r920  
    10321032        }
    10331033
     1034        if (binding->flags & DCERPC_CONNECT) {
     1035                pipe_default_auth_level = DCERPC_AUTH_LEVEL_CONNECT;
     1036                pipe_default_auth_type = DCERPC_AUTH_TYPE_NTLMSSP;
     1037        }
    10341038        if (binding->flags & DCERPC_SIGN) {
    10351039                pipe_default_auth_level = DCERPC_AUTH_LEVEL_INTEGRITY;
     
    10451049        }
    10461050        if (binding->flags & DCERPC_AUTH_NTLM) {
    1047                 /* If neither Integrity or Privacy are requested then
    1048                  * Use just Connect level */
    1049                 if (pipe_default_auth_level == DCERPC_AUTH_LEVEL_NONE) {
    1050                         pipe_default_auth_level = DCERPC_AUTH_LEVEL_CONNECT;
    1051                 }
    1052 
    10531051                if (pipe_default_auth_type == DCERPC_AUTH_TYPE_SPNEGO) {
    10541052                        pipe_default_auth_spnego_type = PIPE_AUTH_TYPE_SPNEGO_NTLMSSP;
     
    10581056        }
    10591057        if (binding->flags & DCERPC_AUTH_KRB5) {
    1060                 /* If neither Integrity or Privacy are requested then
    1061                  * Use just Connect level */
    1062                 if (pipe_default_auth_level == DCERPC_AUTH_LEVEL_NONE) {
    1063                         pipe_default_auth_level = DCERPC_AUTH_LEVEL_CONNECT;
    1064                 }
    1065 
    10661058                if (pipe_default_auth_type == DCERPC_AUTH_TYPE_SPNEGO) {
    10671059                        pipe_default_auth_spnego_type = PIPE_AUTH_TYPE_SPNEGO_KRB5;
    10681060                } else {
    10691061                        pipe_default_auth_type = DCERPC_AUTH_TYPE_KRB5;
     1062                }
     1063        }
     1064        if (pipe_default_auth_type != DCERPC_AUTH_TYPE_NONE) {
     1065                /* If nothing is requested then default to integrity */
     1066                if (pipe_default_auth_level == DCERPC_AUTH_LEVEL_NONE) {
     1067                        pipe_default_auth_level = DCERPC_AUTH_LEVEL_INTEGRITY;
    10701068                }
    10711069        }
Note: See TracChangeset for help on using the changeset viewer.