| 1 | # | ||
| 2 | # This file is part of Config-Model-OpenSsh | ||
| 3 | # | ||
| 4 | # This software is Copyright (c) 2008-2025 by Dominique Dumont. | ||
| 5 | # | ||
| 6 | # This is free software, licensed under: | ||
| 7 | # | ||
| 8 | # The GNU Lesser General Public License, Version 2.1, February 1999 | ||
| 9 | # | ||
| 10 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | return [ | ||
| 14 | { | ||
| 15 | 2 | 'author' => [ | |
| 16 | 'Dominique Dumont' | ||
| 17 | ], | ||
| 18 | 'class_description' => 'Conidtion to apply to identify matched items inside | ||
| 19 | a sshd_config match block.', | ||
| 20 | 'copyright' => [ | ||
| 21 | '2009-2011 Dominique Dumont' | ||
| 22 | ], | ||
| 23 | 'element' => [ | ||
| 24 | 'User', | ||
| 25 | { | ||
| 26 | 'description' => 'Define the User criteria of a conditional block. The value of this field is a pattern that is tested against user name.', | ||
| 27 | 'type' => 'leaf', | ||
| 28 | 'value_type' => 'uniline' | ||
| 29 | }, | ||
| 30 | 'Group', | ||
| 31 | { | ||
| 32 | 'description' => 'Define the Group criteria of a conditional block. The value of this field is a pattern that is tested against group name.', | ||
| 33 | 'type' => 'leaf', | ||
| 34 | 'value_type' => 'uniline' | ||
| 35 | }, | ||
| 36 | 'Host', | ||
| 37 | { | ||
| 38 | 'description' => 'Define the Host criteria of a conditional block. The value of this field is a pattern that is tested against host name.', | ||
| 39 | 'type' => 'leaf', | ||
| 40 | 'value_type' => 'uniline' | ||
| 41 | }, | ||
| 42 | 'Address', | ||
| 43 | { | ||
| 44 | 'description' => 'Define the Address criteria of a conditional block. The value of this field is a pattern that is tested against the address of the incoming connection.', | ||
| 45 | 'type' => 'leaf', | ||
| 46 | 'value_type' => 'uniline' | ||
| 47 | } | ||
| 48 | ], | ||
| 49 | 'license' => 'LGPL2', | ||
| 50 | 'name' => 'Sshd::MatchCondition' | ||
| 51 | } | ||
| 52 | ] | ||
| 53 | ; | ||
| 54 | |||