s3-rpc_server: Use gensec for NCALRPC_AS_SYSTEM.
authorAndreas Schneider <asn@samba.org>
Thu, 17 Apr 2014 11:46:07 +0000 (13:46 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 24 Apr 2014 09:21:05 +0000 (11:21 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/rpc_server/srv_pipe.c

index d85751d84680ee299665dbf8386af08eff212c57..948abf31426abf67e21b19096b3a0f305266bb74 100644 (file)
@@ -734,27 +734,6 @@ static bool api_pipe_bind_req(struct pipes_struct *p,
                case DCERPC_AUTH_TYPE_NONE:
                        break;
 
-               case DCERPC_AUTH_TYPE_NCALRPC_AS_SYSTEM:
-                       if (p->transport == NCALRPC && p->ncalrpc_as_system) {
-                               TALLOC_FREE(p->session_info);
-
-                               status = make_session_info_system(p,
-                                                                 &p->session_info);
-                               if (!NT_STATUS_IS_OK(status)) {
-                                       goto err_exit;
-                               }
-
-                               auth_resp = data_blob_talloc(pkt,
-                                                            "NCALRPC_AUTH_OK",
-                                                            15);
-
-                               p->auth.auth_type = DCERPC_AUTH_TYPE_NCALRPC_AS_SYSTEM;
-                               p->pipe_bound = true;
-                       } else {
-                               goto err_exit;
-                       }
-                       break;
-
                default:
                        if (!pipe_auth_generic_bind(p, pkt,
                                                    &auth_info, &auth_resp)) {