Simple tool to manage users
Go to file
Ilya Sosnovsky 9344591ce0 Initial commit 2021-02-05 09:37:12 +03:00
.dockerignore Initial commit 2021-02-05 09:37:12 +03:00
.gitignore Initial commit 2021-02-05 09:37:12 +03:00
Dockerfile Initial commit 2021-02-05 09:37:12 +03:00
LICENSE Initial commit 2021-02-05 09:37:12 +03:00
README.md Initial commit 2021-02-05 09:37:12 +03:00
auth.sh Initial commit 2021-02-05 09:37:12 +03:00
build.sh Initial commit 2021-02-05 09:37:12 +03:00
go.mod Initial commit 2021-02-05 09:37:12 +03:00
go.sum Initial commit 2021-02-05 09:37:12 +03:00
openvpn-user.go Initial commit 2021-02-05 09:37:12 +03:00

README.md

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

part of openvpn server config

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

make sure openvpn-user binary available through PATH variable i.e. put it in /usr/local/sbin/openvpn-user

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

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

  db-init
    Init db.

  db-migrate
    STUB: Migrate db.

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

  delete --user=USER
    Delete user.

  revoke --user=USER
    Revoke user.

  restore --user=USER
    Restore user.

  list [<flags>]
    List active users.
    
    flags:
      --all  Show all users include revoked and delete

  auth --user=USER --password=PASSWORD
    Auth user.

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