namespace "urn:ietf:params:xml:ns:yang:ietf-ssh-server";
prefix sshs;
+ import ietf-yang-types {
+ prefix yang;
+ reference
+ "RFC 6991: Common YANG Data Types";
+ }
+
import iana-crypt-hash {
prefix ianach;
reference
"This module defines a reusable grouping for SSH servers that
can be used as a basis for specific SSH server instances.
- Copyright (c) 2023 IETF Trust and the persons identified
+ Copyright (c) 2024 IETF Trust and the persons identified
as authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with
(RFC 8174) when, and only when, they appear in all
capitals, as shown here.";
- revision 2023-12-28 {
+ revision 2024-02-08 {
description
"Initial version";
reference
}
}
}
- leaf password {
- if-feature "local-user-auth-password";
- type ianach:crypt-hash;
+ container password {
description
- "The password for this user.";
+ "A password the SSH server may use to authenticate
+ this user. A user is authenticated if the hash
+ of the supplied password matches this value.";
+ leaf hashed-password {
+ if-feature "local-user-auth-password";
+ type ianach:crypt-hash;
+ description
+ "The password for this user.";
+ }
+ leaf last-modified {
+ type yang:date-and-time;
+ config false;
+ description
+ "Identifies when the password was last set.";
+ }
}
container hostbased {
if-feature "local-user-auth-hostbased";