User Tools

Site Tools


projects:hackhub

This is an old revision of the document!


Hackhub

Hackhub is our member database.

Hackhub lives at Github.

Hibby's work in progress attempt to set up hackhub on a server

Requirements

Some form of OS (Debian stable):

  • Python
    • Flask
  • Apache2
  • sqlite3
  • slapd
  • ldap-utils
  • ldapscripts

Process

  1. Install Debian Stable
  2. apt install python-flask sqlite3 slapd ldap-utils ldapscripts git apache2

Exporting LDAP

Export Database Schema and cn=config

  1. slapcat -n 0 -l /tmp/57nldap.config

Export user data:

  1. slapcat -n 1 -l /tmp/57nldap.users

Copy these two files to where the new db is. Use SCP or something secure

Importing LDAP

Stop slapd:

  1. systemctl stop slapd

Make sure that the existing slapd.d folder on the new machine is empty:

  1. rm -rf /etc/ldap/slapd.d/*

Add the schema and cn=config:

  1. slapadd -n 0 -F /etc/ldap/slapd.d -l /tmp/57nldap.config

Add the user data:

  1. slapadd -n 1 -l /tmp/57nldap.users

Change the ownership of the slapd.d folder:

  1. chown -R openldap:openldap slapd.d

Start slapd:

  1. systemctl start slapd
projects/hackhub.1587301575.txt.gz · Last modified: 2020/07/07 20:48 (external edit)