Post-Human Interface
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
uid d90151ce25 Handle user already in group 1 month ago
openldap Add to groups 1 month ago
src Handle user already in group 1 month ago
test Hash password 1 month ago
.gitignore Add vim and emacs swap files to .gitignore 3 years ago
Pipfile Addedd pipenv helper files. 1 year ago
Pipfile.lock Addedd pipenv helper files. 1 year ago
README.md Update readme 1 month ago
config.yml Lower log level 1 month ago
setup.cfg Adjust setup.py for flake8 2 years ago
setup.py Begin phicli 1 month ago

README.md

Phi

Post-Human Interface.

APIs for the Unit hacklab.

Installation

Requirements:

  • 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 setup.py install

Setup

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

actions:
    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