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()) }