Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akeb/freeipa_requests
https://github.com/akeb/freeipa_requests
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/akeb/freeipa_requests
- Owner: AKEB
- Created: 2022-12-20T15:46:24.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-16T17:49:30.000Z (over 1 year ago)
- Last Synced: 2023-08-17T20:33:40.601Z (over 1 year ago)
- Language: Python
- Size: 88.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# freeipa_requests
## Настройка
Необходимо переименовать файл ```.env.default``` в ```.env```. Или передавать ```host```, ```login``` и ```password``` в параметрах
## Сбросить пароль и OTP у одного пользователя
```./freeipa.sh -u -g -r -o```
Параметры
| Параметр | Описание |
| ------------------ | -------------------------- |
| -H \ | freeipa host with https:// |
| -l \ | freeipa admin login |
| -p \ | freeipa admin password |
| -u \ | freeipa username |
| -i \ | otp issuer |
| -e \ | enigma host |
| -c | check login |
| -g \ | add to group |
| -r | reset password |
| -o | reset otp |## Сбросить пароль и OTP у списка пользователей
```./users_reset.sh -R users_reset.csv -W users_ready.csv -g -r -o```
Параметры
| Параметр | Описание |
| ------------------ | -------------------------- |
| -H \ | freeipa host with https:// |
| -l \ | freeipa admin login |
| -p \ | freeipa admin password |
| -i \ | otp issuer |
| -e \ | enigma host |
| -W \ | csv write file |
| -R \ | csv read file |
| -c | check login |
| -g \ | add to group |
| -r | reset password |
| -o | reset otp |## Отправка писем всем по списку
```./mail_sender.sh -f users_ready.csv -t template_mail.txt```
Параметры
| Параметр | Описание |
| ------------------------- | ---------------------- |
| -S \ | SMTP host |
| -L \ | SMTP username |
| -P \ | SMTP password |
| -s \ | Sender E-mail |
| -f \ | csv file name |
| -t \ | template for mail send |
| -b \ | mail subject |
| -a \ | attach file name |## Отправка писем всем по списку
```./users_create.sh -R users_create_v1.csv -W users_create_v1_ready.csv -g app_gmail -r -o```
Параметры
| Параметр | Описание |
| ------------------ | -------------------------- |
| -H \ | freeipa host with https:// |
| -l \ | freeipa admin login |
| -p \ | freeipa admin password |
| -i \ | otp issuer |
| -e \ | enigma host |
| -W \ | csv write file |
| -R \ | csv read file |
| -c | check login |
| -g \ | add to group |
| -r | reset password |
| -o | reset otp |