mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-14 20:11:52 +00:00
ldapSaveUserToFile will now append the file (#4276)
This commit is contained in:
parent
b3dd3d3613
commit
954e5cde32
1 changed files with 2 additions and 2 deletions
|
@ -449,7 +449,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||||
} else {
|
} else {
|
||||||
// Save this LDAP user to file if needed
|
// Save this LDAP user to file if needed
|
||||||
if (typeof domain.ldapsaveusertofile == 'string') {
|
if (typeof domain.ldapsaveusertofile == 'string') {
|
||||||
obj.fs.writeFile(domain.ldapsaveusertofile, JSON.stringify(xxuser, null, 2) + '\r\n\r\n', function (err) { });
|
obj.fs.appendFile(domain.ldapsaveusertofile, JSON.stringify(xxuser, null, 2) + '\r\n\r\n', function (err) { });
|
||||||
}
|
}
|
||||||
|
|
||||||
// Work on getting the userid for this LDAP user
|
// Work on getting the userid for this LDAP user
|
||||||
|
@ -571,7 +571,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||||
|
|
||||||
// Save this LDAP user to file if needed
|
// Save this LDAP user to file if needed
|
||||||
if (typeof domain.ldapsaveusertofile == 'string') {
|
if (typeof domain.ldapsaveusertofile == 'string') {
|
||||||
obj.fs.writeFile(domain.ldapsaveusertofile, JSON.stringify(xxuser, null, 2) + '\r\n\r\n', function (err) { });
|
obj.fs.appendFile(domain.ldapsaveusertofile, JSON.stringify(xxuser, null, 2) + '\r\n\r\n', function (err) { });
|
||||||
}
|
}
|
||||||
|
|
||||||
// Work on getting the userid for this LDAP user
|
// Work on getting the userid for this LDAP user
|
||||||
|
|
Loading…
Reference in a new issue