]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:librpc/gse: remove unused #ifdef HAVE_GSS_KRB5_IMPORT_CRED
authorStefan Metzmacher <metze@samba.org>
Thu, 22 Dec 2016 07:47:32 +0000 (08:47 +0100)
committerStefan Metzmacher <metze@samba.org>
Sat, 14 Jan 2017 09:27:06 +0000 (10:27 +0100)
We always have gss_krb5_import_cred(), it available in heimdal
and also the oldest version (1.9) of MIT krb5 that we support.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12480

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit b61a93755ca59a58775c1c8c21baee49fef42fbf)

source3/librpc/crypto/gse.c

index 3f1615d4a74a11dbdb6f881fef8b91bafb97e19d..1ac581f515489beebdccaf24a93a1ab89568adcd 100644 (file)
@@ -380,8 +380,6 @@ static NTSTATUS gse_init_server(TALLOC_CTX *mem_ctx,
                goto done;
        }
 
-#ifdef HAVE_GSS_KRB5_IMPORT_CRED
-
        /* This creates a GSSAPI cred_id_t with the keytab set */
        gss_maj = gss_krb5_import_cred(&gss_min, NULL, NULL, gse_ctx->keytab, 
                                       &gse_ctx->creds);
@@ -400,7 +398,6 @@ static NTSTATUS gse_init_server(TALLOC_CTX *mem_ctx,
                 * principal in request'.  Work around the issue by
                 * falling back to the alternate approach below. */
        } else if (gss_maj == (GSS_S_CALL_BAD_STRUCTURE|GSS_S_BAD_NAME))
-#endif
        /* FIXME!!!
         * This call sets the default keytab for the whole server, not
         * just for this context. Need to find a way that does not alter