1
0
Fork 0
mirror of synced 2024-12-21 22:21:07 -05:00
Simple tool to manage users
Find a file
2022-11-14 19:26:34 +03:00
.github/workflows bump go-release-action version 2022-05-23 16:33:16 +03:00
.dockerignore Initial commit 2021-02-05 09:37:12 +03:00
.gitignore Initial commit 2021-02-05 09:37:12 +03:00
auth.sh some fixes and additional features 2021-02-08 12:53:09 +03:00
build.sh Initial commit 2021-02-05 09:37:12 +03:00
build_arm.sh fixes 2021-10-21 12:36:04 +03:00
Dockerfile small fixes 2021-02-19 09:45:26 +03:00
go.mod totp auth 2022-11-14 13:33:43 +03:00
go.sum totp auth 2022-11-14 13:33:43 +03:00
install-deps.sh binaries for arm 2021-10-21 09:56:29 +03:00
install-deps_arm.sh Update install-deps_arm.sh 2021-10-21 12:04:51 +03:00
LICENSE Initial commit 2021-02-05 09:37:12 +03:00
openvpn-user.go fixes for totp auth 2022-11-14 19:26:34 +03:00
README.md fixes for totp auth 2022-11-14 19:26:34 +03:00

openvpn-user

Disclaimer

- Not tested in production environments! 

Use it on your own risk =)

Description

A simple tool to use with openvpn when you need to use auth-user-pass-verify or wherever you want

Example

make sure openvpn-user binary available through PATH variable and you have auth.sh script with +x rights available to openvpn server

i.e. put binary to /usr/local/sbin/ and auth script to /etc/openvpn/scripts/ dir

part of openvpn server config

script-security 2
auth-user-pass-verify /etc/openvpn/scripts/auth.sh via-file

Usage

usage: openvpn-user [<flags>] <command> [<args> ...]

Flags:
  --help                         Show context-sensitive help (also try --help-long and --help-man).
  --db.path="./openvpn-user.db"  path do openvpn-user db
  --debug                        Enable debug mode.
  --version                      Show application version.

Commands:
  help [<command>...]
    Show help.

  db-init
    Init db.

  db-migrate
    STUB: Migrate db.

  create --user=USER --password=PASSWORD
    Create user.

  delete --user=USER [<flags>]
    Delete user.

  revoke --user=USER
    Revoke user.

  restore --user=USER
    Restore user.

  list [<flags>]
    List active users.

  check --user=USER
    check user existent.

  auth --user=USER [<flags>]
    Auth user.

  change-password --user=USER --password=PASSWORD
    Change password

  update-secret --user=USER [<flags>]
    update OTP secret

  register-app --user=USER
    register 2FA application

  get-secret --user=USER
    get OTP secret