forked from DGNum/infrastructure
feat(vault01/radius): declare user vlans
This commit is contained in:
parent
c97db7609d
commit
93a26c26f9
1 changed files with 5 additions and 8 deletions
|
@ -40,16 +40,13 @@
|
|||
radius_required_groups = [ "radius_access@sso.dgnum.eu" ];
|
||||
|
||||
# A mapping between Kanidm groups and VLANS
|
||||
radius_groups = [
|
||||
radius_groups = map (
|
||||
{ vlan, ... }:
|
||||
{
|
||||
spn = "dgnum_members@sso.dgnum.eu";
|
||||
vlan = 1;
|
||||
inherit vlan;
|
||||
spn = "vlan_${toString vlan}@sso.dgnum.eu";
|
||||
}
|
||||
{
|
||||
spn = "dgnum_clients@sso.dgnum.eu";
|
||||
vlan = 2;
|
||||
}
|
||||
];
|
||||
) config.networking.vlans-info;
|
||||
};
|
||||
|
||||
authTokenFile = config.age.secrets."radius-auth_token_file".path;
|
||||
|
|
Loading…
Add table
Reference in a new issue