dmzconf/docs/slapd/generatecreds.sh

9 lines
334 B
Bash
Raw Normal View History

2024-01-05 11:33:19 +00:00
#!/bin/bash
2024-01-22 17:56:17 +00:00
function genpass(){
echo $(shuf ../../scripts/shared/english.txt | head) | sed "s/ //g"
}
2024-01-05 11:33:19 +00:00
2024-01-22 17:56:17 +00:00
for i in $(cat servicesaccounts.txt) ; do printf "%s\n" $(echo -n $i | cut -d"," -f 1 | cut -d"=" -f2 ; genpass) | gpg -e -r fram3d@dmz.rs -r sienna@dmz.rs --output creds/$(echo -n $i | cut -d"," -f 1 | cut -d"=" -f2).gpg ; done
2024-01-05 11:33:19 +00:00