bde-liste/ldap-conf.js

14 lines
343 B
JavaScript
Raw Normal View History

2022-12-11 18:14:04 +00:00
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
2022-12-11 18:22:20 +00:00
}), { mode: 0o600 })
2022-12-11 18:14:04 +00:00
}
main()