1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

create smb/sftp accounts for ldaptest

This commit is contained in:
Robin Appelman 2026-05-28 18:40:20 +02:00
commit a3f2355dea
2 changed files with 6 additions and 1 deletions

View file

@ -51,7 +51,10 @@ impl ServiceTrait for Sftp {
} }
}), }),
}), }),
cmd: Some(vec!["test:test:::data".into()]), cmd: Some(vec![
"test:test:::data".into(),
"ldaptest:test:::data".into(),
]),
..Default::default() ..Default::default()
}; };
let id = docker let id = docker

View file

@ -40,8 +40,10 @@ impl ServiceTrait for Smb {
}), }),
env: Some(vec![ env: Some(vec![
"ACCOUNT_test=test".into(), "ACCOUNT_test=test".into(),
"ACCOUNT_ldaptest=test".into(),
"UID_test=1000".into(), "UID_test=1000".into(),
"SAMBA_VOLUME_CONFIG_test=[test]; path=/tmp; valid users = test; guest ok = no; read only = no; browseable = yes".into(), "SAMBA_VOLUME_CONFIG_test=[test]; path=/tmp; valid users = test; guest ok = no; read only = no; browseable = yes".into(),
"SAMBA_VOLUME_CONFIG_ldaptest=[ldaptest]; path=/tmp; valid users = ldaptest; guest ok = no; read only = no; browseable = yes".into(),
]), ]),
labels: Some(hashmap! { labels: Some(hashmap! {
"haze-type".into() => self.name().into(), "haze-type".into() => self.name().into(),