dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0037-pamsrv_gssapi-fix-implicit-conversion-warning.patch

c5e826
From c0ae6d34ff7c170ca0e6d0faa8a2daf9a77becb7 Mon Sep 17 00:00:00 2001
c5e826
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
c5e826
Date: Fri, 8 Jan 2021 14:00:47 +0100
c5e826
Subject: [PATCH] pamsrv_gssapi: fix implicit conversion warning
c5e826
MIME-Version: 1.0
c5e826
Content-Type: text/plain; charset=UTF-8
c5e826
Content-Transfer-Encoding: 8bit
c5e826
c5e826
src/responder/pam/pamsrv_gssapi.c: In function ‘pam_cmd_gssapi_sec_ctx’:
c5e826
src/responder/pam/pamsrv_gssapi.c:716:64: error: implicit conversion from ‘enum sss_domain_type’ to ‘enum cache_req_dom_type’ [-Werror=enum-conversion]
c5e826
  716 |                                      cli_ctx->rctx->ncache, 0, DOM_TYPE_POSIX,
c5e826
c5e826
Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
c5e826
---
c5e826
 src/responder/pam/pamsrv_gssapi.c | 3 ++-
c5e826
 1 file changed, 2 insertions(+), 1 deletion(-)
c5e826
c5e826
diff --git a/src/responder/pam/pamsrv_gssapi.c b/src/responder/pam/pamsrv_gssapi.c
c5e826
index 099675e1c..2d05c7888 100644
c5e826
--- a/src/responder/pam/pamsrv_gssapi.c
c5e826
+++ b/src/responder/pam/pamsrv_gssapi.c
c5e826
@@ -713,7 +713,8 @@ pam_cmd_gssapi_sec_ctx(struct cli_ctx *cli_ctx)
c5e826
     DEBUG(SSSDBG_TRACE_FUNC, "Checking that target user matches UPN\n");
c5e826
 
c5e826
     req = cache_req_user_by_upn_send(cli_ctx, cli_ctx->ev, cli_ctx->rctx,
c5e826
-                                     cli_ctx->rctx->ncache, 0, DOM_TYPE_POSIX,
c5e826
+                                     cli_ctx->rctx->ncache, 0,
c5e826
+                                     CACHE_REQ_POSIX_DOM,
c5e826
                                      domain->name, state->authenticated_upn);
c5e826
     if (req == NULL) {
c5e826
         DEBUG(SSSDBG_CRIT_FAILURE, "Out of memory!\n");
c5e826
-- 
c5e826
2.21.3
c5e826