s3-epmapper: Use DCERPC_AUTH_LEVEL_CONNECT for ep ncalrpc.
authorAndreas Schneider <asn@samba.org>
Mon, 21 Mar 2011 08:29:14 +0000 (09:29 +0100)
committerSimo Sorce <idra@samba.org>
Wed, 23 Mar 2011 16:19:22 +0000 (17:19 +0100)
source3/rpc_client/cli_pipe.c
source3/rpc_server/srv_pipe.c

index 0109bdae725432a426f5746fb19742a0e7b1ce55..99405d3635caf7b171d85c8754fb0dbb640a4568 100644 (file)
@@ -2262,7 +2262,7 @@ NTSTATUS rpccli_ncalrpc_bind_data(TALLOC_CTX *mem_ctx,
        }
 
        result->auth_type = DCERPC_AUTH_TYPE_NCALRPC_AS_SYSTEM;
-       result->auth_level = DCERPC_AUTH_LEVEL_NONE;
+       result->auth_level = DCERPC_AUTH_LEVEL_CONNECT;
 
        result->user_name = talloc_strdup(result, "");
        result->domain = talloc_strdup(result, "");
index 8aa89a3bcc0e9a334f47944d7a51eb10825f4b5f..27d7f60924372dfa92dee2c78795a620f505dfce 100644 (file)
@@ -987,9 +987,6 @@ static bool api_pipe_bind_req(struct pipes_struct *p,
                case DCERPC_AUTH_LEVEL_PRIVACY:
                        p->auth.auth_level = DCERPC_AUTH_LEVEL_PRIVACY;
                        break;
-               case DCERPC_AUTH_LEVEL_NONE:
-                       p->auth.auth_level = DCERPC_AUTH_LEVEL_NONE;
-                       break;
                case DCERPC_AUTH_LEVEL_CONNECT:
                        p->auth.auth_level = DCERPC_AUTH_LEVEL_CONNECT;
                        break;