Skip to main content

OTPme: A flexible One-Time-Password system

Project description

Installation instructions

Install debian dependencies

apt-get install python3.11-venv gobjc++ python3-pybind11 python3-dev build-essential cmake gcc dbus-x11 freeradius libacl1-dev libnss-cache liboath0 liboath-dev libpcsclite1 libpq-dev libre2-9 libre2-dev libsystemd-dev pkg-config postgresql postgresql-server-dev-all pwgen pyflakes3 redis redis-server redis-tools

Disable installed services

systemctl stop redis
systemctl disable redis
systemctl stop postgresql
systemctl disable postgresql
systemctl stop freeradius
systemctl disable freeradius

Install otpme

Add otpme system user

useradd -r -U -d /var/lib/otpme otpme

Enable nsswitch nsscache module

Edit /etc/nsswitch.conf and append 'cache' to the lines passwd and group.

Create python venv

python3 -m venv /opt/otpme
. /opt/otpme/bin/activate

Install otpme and dependencies

pip3 install cython
pip3 install otpme

Copy configuration files

cp -a /opt/otpme/lib/python3.11/site-packages/etc/otpme /etc/
cp -a /etc/otpme/otpme.conf.dist /etc/otpme/otpme.conf

Edit /etc/otpme/otpme.conf

POSTGRES_PG_CTL_BIN="/usr/lib/postgresql/15/bin/pg_ctl"

Init your otpme realm

otpme-realm --api -ddee --color-logs -f init --ca-key-len 2048 --site-key-len 2048 --node-key-len 2048 --dicts english,en-top10000,common-passwords,us-female,us-male,us-surnames,abbreviations-it --id-ranges "uidNumber:s:100000-200000,gidNumber:s:100000-200000" yourrealm.tld yoursite localhost 127.0.0.1

Note: Scan the generated QRCode with the "Google Autenticator App" and note the PIN of the admin token.

Start OTPme daemons

otpme-controld start

Login with admin token

You need to input pin+otp.
otpme-tool login

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

otpme-0.3.0a85.tar.gz (3.7 MB view details)

Uploaded Source

Built Distribution

otpme-0.3.0a85-py3-none-any.whl (3.9 MB view details)

Uploaded Python 3

File details

Details for the file otpme-0.3.0a85.tar.gz.

File metadata

  • Download URL: otpme-0.3.0a85.tar.gz
  • Upload date:
  • Size: 3.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for otpme-0.3.0a85.tar.gz
Algorithm Hash digest
SHA256 2be12210c888919f2cdf3bfa29fc70cdb89df53efcfd9a84d3e554e23d01e1a9
MD5 14b1877d374dc4468a081480d40d7dbd
BLAKE2b-256 3a7004dbf81d83b0763e4ab35c3a34242c0b90ce8c644c109e3b6e380cb47c6a

See more details on using hashes here.

File details

Details for the file otpme-0.3.0a85-py3-none-any.whl.

File metadata

  • Download URL: otpme-0.3.0a85-py3-none-any.whl
  • Upload date:
  • Size: 3.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for otpme-0.3.0a85-py3-none-any.whl
Algorithm Hash digest
SHA256 05059ce10af3008f76c5cfad599aee1252e86d85aef96163a70919c652400e6f
MD5 5badba2c6162724a474bba384d102809
BLAKE2b-256 153390365dc78cee333568a7df61256876da5f473f976b0e2cb5cb8a81196e00

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page