diff --git a/src/acl.cc b/src/acl.cc index 04226d811c..23ae9a8963 100644 --- a/src/acl.cc +++ b/src/acl.cc @@ -497,6 +497,10 @@ void Acl::InitLimitUser(const std::string& bl, bool limit_exist) { } if (!pass.empty()) { u->SetUser(">" + pass); + } else { + //If the userpass password is empty, + //disable the limit user to prevent password-free access + u->SetUser("off"); } } else { if (pass.empty()) {