Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/akeb/freeipa_requests


https://github.com/akeb/freeipa_requests

Last synced: about 1 month ago
JSON representation

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 |