Bug 1281768

Summary: Man page is incorrect about GSSAPICleanupCredentials default value
Product: Red Hat Enterprise Linux 7 Reporter: Jan Pazdziora <jpazdziora>
Component: opensshAssignee: Jakub Jelen <jjelen>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: plautrba
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-13 12:41:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Pazdziora 2015-11-13 12:10:59 UTC
Description of problem:

man sshd_config says the default of GSSAPICleanupCredentials is yes when in fact it is no.

Version-Release number of selected component (if applicable):

openssh-server-6.6.1p1-12.el7_1.x86_64

How reproducible:

Deterministic.

Steps to Reproduce:
1. man sshd_config | grep -A4 GSSAPICleanupCredentials
2. sshd -T | grep -i GSSAPICleanupCredentials
3. grep -i GSSAPICleanupCredentials /etc/ssh/sshd_config

Actual results:

[root@3d64f4ecab6e /]# man sshd_config | grep -A4 GSSAPICleanupCredentials
     GSSAPICleanupCredentials
             Specifies whether to automatically destroy the user's credentials
             cache on logout.  The default is ``yes''.  Note that this option
             applies to protocol version 2 only.

[root@3d64f4ecab6e /]# sshd -T | grep -i GSSAPICleanupCredentials
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
Could not load host key: /etc/ssh/ssh_host_ed25519_key
gssapicleanupcredentials no

[root@3d64f4ecab6e /]# grep -i GSSAPICleanupCredentials /etc/ssh/sshd_config
GSSAPICleanupCredentials no

Expected results:

Either man page saying no, or the default in /etc/ssh/sshd_config being yes.

Additional info:

Comment 1 Petr Lautrbach 2015-11-13 12:41:14 UTC
It's correct. The man page describes /usr/sbin/sshd defaults, not a value which is set in RHEL's /etc/ssh/sshd_config

# grep -i GSSAPICleanupCredentials /etc/ssh/sshd_config       
#GSSAPICleanupCredentials no

# /usr/sbin/sshd -T | grep gssapicleanupcredentials
gssapicleanupcredentials yes