From owner-freebsd-questions@freebsd.org Wed Jan 25 07:45:32 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3480ECC0983 for ; Wed, 25 Jan 2017 07:45:32 +0000 (UTC) (envelope-from mokomull@gmail.com) Received: from mail-ua0-x22d.google.com (mail-ua0-x22d.google.com [IPv6:2607:f8b0:400c:c08::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E2F83855 for ; Wed, 25 Jan 2017 07:45:31 +0000 (UTC) (envelope-from mokomull@gmail.com) Received: by mail-ua0-x22d.google.com with SMTP id i68so152819133uad.0 for ; Tue, 24 Jan 2017 23:45:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=lZ5S3/5QeBt9B2YezFr+namuAqkurFnf25gjtEbiERc=; b=jEPst//OY5mVKG2+HAp9riHPgu8zi2/z0ILZzSLLnGBgNnF2gXJRlMpmrLPSFz0E2T KE8Tcg97OhX6t3wx0kh6vj6SOaTueona0+mfjaVa7iXWHK0oSFnD4YapoyVz6bRgA1Ig /ufRtIzqaV4ffp1/1CSWXBtCnOpyEL2FRz1VD08vdGrpFS/SwgXzeA31YMRcaHMZooxf NqjA9xdiYgUloh5ds8EW8xYGRIMlPt8oDeOmA5eiLjVf9n7xBeyIA3DbHXl6xKS2ceol kpasTb2WWUo/Cjhwn40pG6OQUBUl4s6NFiIBAbHNT2tnIL8yHtmhjXQVgY31LgFBpRBJ jKRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=lZ5S3/5QeBt9B2YezFr+namuAqkurFnf25gjtEbiERc=; b=C/fUHM2KiyE5ue9ixYPePSTfLJnKN21ugHnmz78jwBRxheX/YUD35eDK+C+YN903mb MXjRdKV35f1Hm0BBDolmlDwYHpYyzIKew/9DBvp+4U7ibawRByZ86qLbZBLHxikILH45 au7rsfTwB7VqKSC00PUg8Vw0XG4XAxS9I0y8lN1LP4FvwHJ8UMmRtVt4UaoJ1YoGBuZk nhwV+QC6kPajE5eaQReSOoyGkpR4Yj8cc1PyZB6WvVcff+zQSzBgVwhVl6gfZOkhXjac AdXoqAHNzvg3bqImYdvm1bdW/dbkJe/Z0Hv3g3PW4GagfIe6eFLiPmByv78uXpWd8FqP 31qA== X-Gm-Message-State: AIkVDXJt8ncWGZr9PDoSgudfly8hr9r7LsIc1m0dtsxLx0l4aITpNP4ZvScU66tI0Dy0AZZx5DgaLhS+q1KUWA== X-Received: by 10.176.67.2 with SMTP id k2mr16876857uak.39.1485330330890; Tue, 24 Jan 2017 23:45:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.40.233 with HTTP; Tue, 24 Jan 2017 23:45:30 -0800 (PST) In-Reply-To: <20170125072552.wrcbygdm6rbxtkhy@stonehaven.uxdom.org> References: <20170125072552.wrcbygdm6rbxtkhy@stonehaven.uxdom.org> From: Matt Mullins Date: Tue, 24 Jan 2017 23:45:30 -0800 Message-ID: Subject: Re: SSH with kerberos auth doesn't provide a ticket To: "C. L. Martinez" Cc: FreeBSD Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2017 07:45:32 -0000 On Tue, Jan 24, 2017 at 11:25 PM, C. L. Martinez wro= te: > Hi all, > > I have a strange problem with ssh when kerberos auth is used. We have th= ree kerberos servers based on MIT kerberos. I have configured a FreeBSD 11-= RELEASE virtual guest to authenticate against these kerberos servers. Auth = works ok, but ssh doesn't request a kerberos ticket (I am connecting from a= Windows 10 workstation with putty): When you say "auth works ok", I assume that means that PuTTY does not prompt for a password? If it does prompt for a password, you are definitely not using GSSAPI at the ssh-connection layer (even if that password is being checked against a KDC on the ssh server). > I have enabled th following options in sshd_config: > > # Kerberos options > KerberosAuthentication yes You probably don't need that, if you've got mod_krb5.so in your PAM config. This only applies when PasswordAuthentication is negotiated for an SSH session, anyway. > It is strange because this "problem" only appears with FreeBSD, all othe= rs linux doesn't have this problem. > > What am I doing wrong? When you configure your PuTTY connection for your FreeBSD machine, make sure you check the "Allow GSSAPI credential delegation" in Connection -> SSH -> Auth -> GSSAPI. Seems to work for me.