An overview of the commands offered by the psono server

Commands

The psono server offers some commands:

cleartoken

Clears all expired tokens

python3 ./psono/manage.py cleartoken

(usually executed in a cronjob)

createuser

Creates a user with a given password and email

python3 ./psono/manage.py createuser [email protected] myPassword [email protected]

(usually executed by developers when they want to create a new user for testing)

deleteuser

Creates a user with a given password and email

python3 ./psono/manage.py deleteuser [email protected]

(usually executed by developers when they want to cleanup after testing, or want to try again with a fresh user)

disableuser

Disables a user. The user won’t be able to login anymore.

python3 ./psono/manage.py disableuser [email protected]

enableuser

Enables a user. The user will be able to login again.

python3 ./psono/manage.py enableuser [email protected]

promoteuser

Promotes a user and grants superuser privilege (or other roles)

python3 ./psono/manage.py promoteuser [email protected] superuser

demoteuser

Demotes a user and revokes superuser privilege (or other roles)

python3 ./psono/manage.py demoteuser [email protected] superuser

generateserverkeys

Generates some new server keys for the settings.yaml

python3 ./psono/manage.py generateserverkeys

(usually executed only once during the installation phase)

presetup

If the database user has the necessary permission this command will install the necessary postgres extensions ltree and pgcrypto.

python3 ./psono/manage.py presetup

(usually executed only once during the installation phase)

sendtestmail

Sends a test email to the given email address.

python3 ./psono/manage.py sendtestmail [email protected]

(usually executed only during isntallation, to test if the email configuration is correct)

testldap

Tests your LDAP connection (EE Version only)

python3 ./psono/manage.py testldap [email protected] thePassWord

(usually executed only during isntallation, to test if the LDAP configuration is correct)

Edit me
Tags: server