Post-Human Interface
Go to file
2020-10-12 18:55:36 +02:00
openldap Add to groups 2020-10-04 23:01:38 +02:00
src Handle user already in group 2020-10-12 18:55:36 +02:00
test Hash password 2020-10-10 12:59:41 +02:00
.gitignore Add vim and emacs swap files to .gitignore 2017-12-17 10:30:28 +01:00
config.yml Lower log level 2020-10-12 18:38:13 +02:00
Pipfile Addedd pipenv helper files. 2019-04-12 16:26:19 +02:00
Pipfile.lock Addedd pipenv helper files. 2019-04-12 16:26:19 +02:00 Update readme 2020-10-11 22:03:21 +02:00
setup.cfg Adjust for flake8 2017-12-24 13:21:14 +01:00 Begin phicli 2020-10-10 18:45:16 +02:00


Post-Human Interface.

APIs for the Unit hacklab.



  • Python >= 3.5

Create a virtual environment and activate it (optional):

virtualenv --python=/usr/bin/python3 env
source env/bin/activate

Run the setup:

python install


In the ldap section of config.yml change host, port and password according to your setup.

Command Line

usage: phicli [-h] [--config config.yml]
              {showuser,adduser,deluser,showgroup,listgroups,addtogroup} ...

optional arguments:
  -h, --help            show this help message and exit
  --config config.yml   custom configuration file

    showuser            dispaly user fields
    adduser             add a new user
    deluser             delete an user
    showgroup           show a group
    listgroups          list all groups
    addtogroup          add an user to a group
phicli showuser [-h] user_id
phicli adduser [-h] user_id
phicli deluser [-h] user_id

phicli showgroup [-h] common_name
phicli listgroups [-h]
phicli addtogroup [-h] user_id group_common_name