mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 09:04:12 +02:00
create smb/sftp accounts for ldaptest
This commit is contained in:
parent
d852f9db4f
commit
a3f2355dea
2 changed files with 6 additions and 1 deletions
|
|
@ -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()
|
||||
};
|
||||
let id = docker
|
||||
|
|
|
|||
|
|
@ -40,8 +40,10 @@ impl ServiceTrait for Smb {
|
|||
}),
|
||||
env: Some(vec![
|
||||
"ACCOUNT_test=test".into(),
|
||||
"ACCOUNT_ldaptest=test".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_ldaptest=[ldaptest]; path=/tmp; valid users = ldaptest; guest ok = no; read only = no; browseable = yes".into(),
|
||||
]),
|
||||
labels: Some(hashmap! {
|
||||
"haze-type".into() => self.name().into(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue