edit auth ldap

This commit is contained in:
asyncnomi 2022-12-11 19:14:04 +01:00
parent 2d1ffded3f
commit 8aba52799d
2 changed files with 14 additions and 4 deletions

13
ldap-conf.js Normal file
View file

@ -0,0 +1,13 @@
const fs = require('fs');
let prompt = require('password-prompt')
async function main() {
let user = await prompt("LDAP Bind User :");
let password = await prompt("LDAP Bind Password :");
fs.writeFileSync("ldap-conf.json", JSON.stringify({
bindUser: user,
bindPassword: password
}))
}
main()

View file

@ -1,4 +1 @@
{
"bindUser": "bindUser",
"bindPassword": "bindPassword"
}
{"bindUser":"bdemetzlist","bindPassword":"dfskgherikhgkljfdnfgf54gdf65gfd489df8ggf14d5sdf35k543p5m54f21g52f45JHGSDJjfghkgfgFhfghgFGh14g45"}