A really cool registration page, I promise <3
Go to file
2022-01-22 21:35:53 +01:00
libs Smol refactor. 2022-01-22 21:35:53 +01:00
routes Smol refactor. 2022-01-22 21:35:53 +01:00
static Basic registration and login done. 2022-01-22 21:32:14 +01:00
views Basic registration and login done. 2022-01-22 21:32:14 +01:00
.env.template Initial commit 2022-01-15 18:47:56 +01:00
.gitignore Refactor 2022-01-15 19:52:33 +01:00
captcha.sh Added a landing page. 2022-01-15 20:40:41 +01:00
index.js Added a landing page. 2022-01-15 20:40:41 +01:00
LICENSE Initial commit 2022-01-15 18:45:43 +01:00
package.json Basic registration and login done. 2022-01-22 21:32:14 +01:00
README.md whops 2022-01-15 18:54:26 +01:00

qwik-register

A really cool registration page, I promise <3

GLAuth installation

git clone https://github.com/glauth/glauth.git
cd glauth
make fast
make plugins

GLAuth config

[ldap]
  enabled = true
  listen = "0.0.0.0:3893"

[ldaps]
  enabled = false
  listen = "0.0.0.0:3894"
  cert = "certs/server.crt"
  key = "certs/server.key"

[backend]
  datastore = "plugin"
  plugin = "sqlite.so"
  pluginhandler = "NewSQLiteHandler"
  baseDN = "dc=glauth,dc=com"
  database = "users.db"

  nameformat = "cn"
  groupformat = "ou"

Pre database setup

CREATE TABLE users (
        uidnumber INTEGER PRIMARY KEY autoincrement,
        id INTEGER,
        name TEXT NOT NULL,
        primarygroup INTEGER NOT NULL,
        othergroups TEXT DEFAULT '',
        givenname TEXT DEFAULT '',
        sn TEXT DEFAULT '',
        mail TEXT DEFAULT '',
        loginshell TYEXT DEFAULT '',
        homedirectory TEXT DEFAULT '',
        disabled SMALLINT  DEFAULT 0,
        passsha256 TEXT DEFAULT '',
        passbcrypt TEXT DEFAULT '',
        otpsecret TEXT DEFAULT '',
        yubikey TEXT DEFAULT '',
        custattr TEXT DEFAULT '{}');

INSERT INTO groups(name, gidnumber) VALUES('users', 0);
INSERT INTO groups(name, gidnumber) VALUES('admins', 10);
INSERT INTO groups(name, gidnumber) VALUES('root', 100);

INSERT INTO includegroups(parentgroupid, includegroupid) VALUES(10, 0);