create openldap setup utilities,

prototype ldap api interface
This commit is contained in:
2025-02-11 07:09:47 +00:00
commit 79c6fd8703
9 changed files with 224 additions and 0 deletions

30
src/main.js Normal file
View File

@@ -0,0 +1,30 @@
import express from "express";
import bodyParser from "body-parser";
import cookieParser from "cookie-parser";
import morgan from "morgan";
import LDAP from "ldap.js";
const app = express();
app.use(bodyParser.urlencoded({ extended: true }));
app.use(cookieParser());
app.use(morgan("combined"));
app.listen(global.db.listenPort, () => {
console.log(`proxmoxaas-api v${global.api.version} listening on port ${global.db.listenPort}`);
});
app.get("/:user", (req, res) => {
});
app.post("/:user", (req, res) => {
});
app.delete("/:user", (req, res) => {
});
app.post("/:user/password", (req, res) => {
});