cd src/
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
python3 manage.py makemigrations
python3 manage.py migrate
cd src/
source venv/bin/activate
python manage.py runserver
Test Server should be available at localhost:8000
For admin access (creating accounts and groups) you need to create a superuser account.
python manage.py createsuperuser
Log in to the admin panel at http://127.0.0.1:8000/admin/ with your superuser credentials. Here you can create user accounts.
You have to add resources/appl-NAC.schema to your ldap server before an import is possible.
Default config file for ldap export can be found at config/ldap.cfg
python3 -m manage.py export_to_ldap
Changes to the devices are logged using django-simple-history. You may want to remove old records after a certain period of time.
python manage.py clean_old_history --auto
This command will delete all records older than 30 days. For more information, check out: https://django-simple-history.readthedocs.io/en/stable/utils.html#clean-old-history
