From 879546aff6d6adb7c6cbaf169634a85c167184ee Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 9 Apr 2020 13:35:08 +0200 Subject: [PATCH] api: add default property to domain list --- src/api2/access/domain.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/api2/access/domain.rs b/src/api2/access/domain.rs index 85594d65..02555923 100644 --- a/src/api2/access/domain.rs +++ b/src/api2/access/domain.rs @@ -23,6 +23,10 @@ use crate::api2::types::*; schema: SINGLE_LINE_COMMENT_SCHEMA, optional: true, }, + default: { + description: "Default realm.", + type: bool, + } }, } } @@ -33,7 +37,7 @@ use crate::api2::types::*; /// box (before the user is authenticated). fn list_domains() -> Result { let mut list = Vec::new(); - list.push(json!({ "realm": "pam", "comment": "Linux PAM standard authentication" })); + list.push(json!({ "realm": "pam", "comment": "Linux PAM standard authentication", "default": true })); list.push(json!({ "realm": "pbs", "comment": "Proxmox Backup authentication server" })); Ok(list.into()) }