Refresh IETF client/server models
[netconf.git] / transport / transport-ssh / src / main / yang / ietf-ssh-server@2024-02-08.yang
similarity index 94%
rename from transport/transport-ssh/src/main/yang/ietf-ssh-server@2023-12-28.yang
rename to transport/transport-ssh/src/main/yang/ietf-ssh-server@2024-02-08.yang
index 5f5c685eeeff7f49bb522d4eb2665a7b5d438622..0c11f09a9cf02abfa404f5b6591fd6945a0f8c6b 100644 (file)
@@ -3,6 +3,12 @@ module ietf-ssh-server {
   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
@@ -51,7 +57,7 @@ module ietf-ssh-server {
     "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
@@ -72,7 +78,7 @@ module ietf-ssh-server {
      (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
@@ -293,11 +299,23 @@ module ietf-ssh-server {
               }
             }
           }
-          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";