roman | c1d2b09 | 2023-02-02 08:58:27 +0100 | [diff] [blame^] | 1 | module libnetconf2-netconf-server { |
| 2 | yang-version 1.1; |
| 3 | namespace "urn:cesnet:libnetconf2-netconf-server"; |
| 4 | prefix np2; |
| 5 | |
| 6 | import ietf-netconf-server { |
| 7 | prefix ncs; |
| 8 | } |
| 9 | |
| 10 | augment "/ncs:netconf-server/ncs:listen/ncs:endpoint/ncs:transport/ncs:ssh/ncs:ssh/ncs:ssh-server-parameters/ncs:client-authentication" { |
| 11 | leaf auth-attempts { |
| 12 | type uint16; |
| 13 | default 3; |
| 14 | } |
| 15 | |
| 16 | leaf auth-timeout { |
| 17 | type uint16; |
| 18 | default 10; |
| 19 | units "seconds"; |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | augment "/ncs:netconf-server/ncs:listen/ncs:endpoint/ncs:transport/ncs:ssh/ncs:ssh/ncs:ssh-server-parameters/ncs:client-authentication/ncs:users/ncs:user" { |
| 24 | container keyboard-interactive { |
| 25 | presence ""; |
| 26 | leaf pam-config-file-name { |
| 27 | type string; |
| 28 | mandatory true; |
| 29 | } |
| 30 | leaf pam-config-file-dir { |
| 31 | type string; |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 | } |