Skip to content
This repository has been archived by the owner on May 24, 2019. It is now read-only.

Latest commit

 

History

History
46 lines (38 loc) · 1.78 KB

README.md

File metadata and controls

46 lines (38 loc) · 1.78 KB

Installation

apt-get install libldap2-dev python-dev libmysqlclient-dev libsasl2-dev libldap2-dev libssl-dev ldap-utils redis-server
virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
cp userinfosite/settings-sample.py userinfosite/settings.py
python manage.py migrate
python manage.py runserver

LDAP

docker run -e LDAP_DOMAIN=neuf.no -e LDAP_ORGANISATION="Neuf" -e LDAP_ADMIN_PWD="toor" -p 389:389 -d nikolaik/openldap
ldapadd -D "cn=admin,dc=neuf,dc=no" -w "toor" -f test/testdata.ldif  # Testdata
# Verify import
ldapsearch -x -b dc=neuf,dc=no
# Login with [email protected]:test

Inside

# create the Inside database tables, if they don't exist already:
python manage.py syncdb --database=inside

For simple dev you need at least: * 1 InsideUser (din_user) * 1 InsideGroup (din_group) * 1 UserGroupRelationShip (din_usergrouprelationship)

RADIUS

# create the radius database tables, if they don't exist already:
python manage.py migrate --database=radius

Homedirs

  • settings.FILESERVER_HOST:~/.ssh/authorized_keys must contain the public key of settings.FILESERVER_USER
  • settings.FILESERVER_USER needs sudo access to FILESERVER_CREATE_HOMEDIR_SCRIPT

TODO

  • Integrity check view which provides two way diffs for the following:
    • user vs user group
    • user vs kerberos principal
    • user vs auto mount entry
  • Add email addr alias ([email protected], [email protected])

External dependencies: