bde-liste/ldap-conf.js
2022-12-11 19:22:20 +01:00

13 lines
343 B
JavaScript

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
}), { mode: 0o600 })
}
main()