Commit 61b98f32 authored by antirez's avatar antirez
Browse files

Regression test for #7011.

parent 34ea2f4e
...@@ -248,4 +248,11 @@ start_server {tags {"acl"}} { ...@@ -248,4 +248,11 @@ start_server {tags {"acl"}} {
r AUTH default "" r AUTH default ""
assert {[llength [r ACL LOG]] == 5} assert {[llength [r ACL LOG]] == 5}
} }
test {When default user is off, new connections are not authenticated} {
r ACL setuser default off
catch {set rd1 [redis_deferring_client]} e
r ACL setuser default on
set e
} {*NOAUTH*}
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment