diff --git a/README.md b/README.md index 09ac580..3da90c1 100644 --- a/README.md +++ b/README.md @@ -9,22 +9,3 @@ APIs for the Unit hacklab. Requirements: * Python >= 3.4 - -Create a new virtualenv and run `pip install .` inside of it. - -## LDAP client example - -``` ->>> from phi.config import get_config ->>> config_file, config = get_config() ->>> ldap_config = config['ldap'] ->>> ->>> from phi.ldap.client import Client ->>> ldap_client = Client(**ldap_config) ->>> ldap_client.open() ->>> ->>> from phi.ldap.commands import whoami ->>> whoami(client) ->>> ->>> ldap_client.close() -``` diff --git a/openldap/README.md b/openldap/README.md index c528fb4..1cf790c 100644 --- a/openldap/README.md +++ b/openldap/README.md @@ -49,13 +49,13 @@ Such commands require some environment variables to be set. The `make shell` command will start a new shell with those variables already set. Currently only Zsh is supported. -## Populate the server +## Populating the server The `init.ldif` file that can be found in the `openldap` directory in the root of this repository contains a basic structure that can be imported to the OpenLDAP directory server. Just run `make populate` from withing the same directory. -## Inspect the server +## Inspecting the server Running the command `make inspect` from within the `openldap` directory in the root of this repository will show all the stored information in the diff --git a/src/phi.py b/src/phid similarity index 100% rename from src/phi.py rename to src/phid