Bug 2184

Summary: sshd_config Match block clarification
Product: Portable OpenSSH Reporter: jmales
Component: sshdAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: enhancement CC: djm, dtucker
Priority: P5    
Version: 6.4p1   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 2188    
Attachments:
Description Flags
man page update in diff format none

Description jmales 2013-12-13 03:49:40 AEDT
Created attachment 2388 [details]
man page update in diff format

The man 5 sshd_config fails to clarify what happens when multiple
qualifying Match blocks specify the same configuration option.  This
patch updates the man page to do so.

I tested the behaviour and described what was empirically observed.  I
can only assume this is the desired behaviour.

This is a first attempt.  If format or something else is off, let me
know; I'll be happy to adjust.

----
Match
Introduces a conditional block.  If all of the criteria on the Match
line are satisfied, the keywords on the following lines override those
set in the global section of the config file, until either another
Match line or the end of the file. If multiple Match blocks are
satisfied, and a keyword is specified multiple times, the first Match
block instance of the keyword is honored.
Comment 1 Darren Tucker 2013-12-19 11:34:02 AEDT
Looks reasonable.  I might tweak the wording a little.

FYI: stylistically, sentences should start on a new line (it's not a problem, I'll change that).

Thanks.
Comment 2 Damien Miller 2014-02-06 10:17:42 AEDT
Retarget incomplete bugs / feature requests to 6.6 release
Comment 3 Damien Miller 2014-02-06 10:19:32 AEDT
Retarget incomplete bugs / feature requests to 6.6 release
Comment 4 Damien Miller 2014-02-28 12:39:23 AEDT
Similar patch applied - will be in OpenSSH-6.6; due soon.
Comment 5 Damien Miller 2014-10-08 08:00:32 AEDT
Close all bugs left open from 6.6 and 6.7 releases.