chiark / gitweb /
accounts: Actually parse ssh: accounts
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 2 Jun 2021 16:01:52 +0000 (17:01 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 2 Jun 2021 17:06:26 +0000 (18:06 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/accounts.rs

index 4351820042441a5558739ad5f73c9ce79313c221..03655b2cd07a2e7de387c4854fe5d2e196842ca6 100644 (file)
@@ -181,6 +181,10 @@ impl AccountScope {
           let user = next()?.to_owned();
           AccountScope::Unix { user }
         }
+        "ssh" => {
+          let user = next()?.to_owned();
+          AccountScope::Ssh { user }
+        }
         _ => {
           throw!(InvalidScopedName::UnknownScopeKind)
         }