Remove outdated documentation
This commit is contained in:
parent
c79d89c0b7
commit
ce7369da06
19
README.md
19
README.md
|
@ -9,22 +9,3 @@ APIs for the Unit hacklab.
|
||||||
Requirements:
|
Requirements:
|
||||||
|
|
||||||
* Python >= 3.4
|
* 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()
|
|
||||||
```
|
|
||||||
|
|
|
@ -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
|
command will start a new shell with those variables already set. Currently
|
||||||
only Zsh is supported.
|
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
|
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
|
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.
|
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
|
Running the command `make inspect` from within the `openldap` directory in
|
||||||
the root of this repository will show all the stored information in the
|
the root of this repository will show all the stored information in the
|
||||||
|
|
Loading…
Reference in New Issue
Block a user