Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sasl user database #9

Open
binooetomo opened this issue Oct 12, 2018 · 1 comment
Open

Sasl user database #9

binooetomo opened this issue Oct 12, 2018 · 1 comment

Comments

@binooetomo
Copy link

Dear All.

I Learn to use LSMCD as replacement of memcached, to speed up our WP Hosting.

I think there is one problem about it.
I'm writing a simple python script that will trigered by WHM event.
This script will create one new WP site for newly created account, including 'installing and configure' LSCache Wordpress Plugin.
Since I use LSMCD with SASL, this script also need to add user-password to LSMCD SASLdb for that user.

SASLdb is just a regular text file,
Imagine if I have more than 1 account created by WHM ..... there will be a File-Locking problem.

So, Is there any way for me to replace SASL database backend?

Sincerely
-bino-

Actualy, I post the same question at https://www.litespeedtech.com/support/forum/threads/lsmcd-sasl-database-backend.16940/

@catphish
Copy link

there will be a File-Locking problem

This should be quite an easy locking scenario to deal with. Just lock the file with an exclusive flock, add, your user line, and unlock the file, or even just write your full user database to a new file, then move it over the previous file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants