Archived
28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
# Installation
|
|
|
|
apt-get install libldap2-dev python-dev libmysqlclient-dev libsasl2-dev libldap2-dev libssl-dev ldap-utils
|
|
virtualenv venv
|
|
. venv/bin/activate
|
|
pip install -r requirements.txt
|
|
cp userinfosite/settings-sample.py userinfosite/settings.py
|
|
python manage.py syncdb
|
|
# create the radius database tables, if they don't exist already
|
|
python manage.py syncdb --database=radius
|
|
python manage.py runserver
|
|
|
|
## LDAP
|
|
sudo docker run -e LDAP_DOMAIN=neuf.no -e LDAP_ORGANISATION="Neuf" -e LDAP_ROOTPASS="toor" -p 389:389 -d osixia/openldap
|
|
ldapadd -D "cn=admin,dc=neuf,dc=no" -w "toor" -f testdata.ldif
|
|
# Verify import
|
|
ldapsearch -x -b dc=neuf,dc=no
|
|
|
|
# External dependencies:
|
|
- LDAP: Read the tutorial on [Howto setup a LDAP server with Docker](https://edb.neuf.no/wiki/index.php?title=Howto_setup_a_LDAP_server_with_Docker)
|
|
- Kerberos: TODO
|
|
- RADIUS: TODO
|
|
- Inside: Going away
|
|
|
|
|
|
# TODO
|
|
- finish auth backend.
|
|
- allow non LDAP-users (conditional LDAP-stuff), because we don't want LDAP filled with non-active members |