No description
Find a file
2023-07-30 00:55:27 +01:00
src fix: moved the read csv into teh lib as its shared between two methods 2023-07-30 00:55:27 +01:00
.gitignore feat: add proper env vars for home and the csv 2023-07-17 01:24:52 +01:00
.gitlab-ci.yml ci: added a ci pipeline 2023-06-18 22:50:23 +01:00
.rustfmt.toml fmt: updated rust format 2023-07-29 17:23:05 +01:00
Cargo.lock pkg: newer dotenv 2023-07-29 22:23:20 +01:00
Cargo.toml pkg: newer dotenv 2023-07-29 22:23:20 +01:00
flake.lock feat: packed up server as a flake 2023-06-18 20:46:02 +01:00
flake.nix feat: add proper env vars for home and the csv 2023-07-17 01:24:52 +01:00
README.md doc: added some rough documentation. 2023-07-23 22:24:03 +01:00

Skynet LDAP backend

Basic information on the Skynet ldap backend for use on https://sso.skynet.ie

Error: HTTP 500

No indication of the issue is returned to teh frontend.

Routes

Base URL: https://api.sso.skynet.ie

POST /ldap/update

Fields:

  • userPassword
  • mail
  • sshPublicKey
  • cn
  • sn
  • skDiscord
{ 
  "user" : "username", 
  "pass" : "password",
  "field": "field to change",
  "value": "new value of field"
}

Changing userPassword requires the existing password in teh apssword field and the new one in teh value field.

POST /ldap/new

{ 
  "user" : "username the user wants", 
  "mail" : "An email account that matches what is on wolves",
  "name_first": "Firstname",
  "name_second": "Surname"
}

Username taken:

{"result": "error", "error": "username not available"}

Email used:

{"result": "error", "error": "email in use"}

POST /ldap/new/verify

{
  "auth_code": "Auth code that got send in the email",
  "password": "Password the user wants to use"
}

Auth code non existent:

{"result": "error"}

Responses

Generic responses which is used unless otherwise specified above.

Success: HTTP 200

{
    "result": "success"
}