Skip to content

Commit b09f2d4

Browse files
committed
Save a Cuttlefish translation
1 parent ba14b15 commit b09f2d4

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

deps/rabbit/docs/rabbitmq.conf.example

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@
232232
##
233233
# auth_mechanisms.1 = PLAIN
234234
# auth_mechanisms.2 = AMQPLAIN
235+
# auth_mechanisms.3 = ANONYMOUS
235236

236237
## The rabbitmq-auth-mechanism-ssl plugin makes it possible to
237238
## authenticate a user based on the client's x509 (TLS) certificate.
@@ -905,14 +906,8 @@
905906
##
906907
# mqtt.proxy_protocol = false
907908

908-
## Set the default user name and password used for anonymous connections (when client
909-
## provides no credentials). Anonymous connections are highly discouraged!
910-
##
911-
# mqtt.default_user = guest
912-
# mqtt.default_pass = guest
913-
914909
## Enable anonymous connections. If this is set to false, clients MUST provide
915-
## credentials in order to connect. See also the mqtt.default_user/mqtt.default_pass
910+
## credentials in order to connect. See also the anonymous_login_user/anonymous_login_pass
916911
## keys. Anonymous connections are highly discouraged!
917912
##
918913
# mqtt.allow_anonymous = true

deps/rabbit/priv/schema/rabbit.schema

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -738,15 +738,7 @@ end}.
738738
%% Setting this to a username will allow (anonymous) clients to connect and act as this
739739
%% given user. For production environments, set this value to 'none'.
740740
{mapping, "anonymous_login_user", "rabbit.anonymous_login_user",
741-
[{datatype, [{enum, [none]}, string]}]}.
742-
743-
{translation, "rabbit.anonymous_login_user",
744-
fun(Conf) ->
745-
case cuttlefish:conf_get("anonymous_login_user", Conf) of
746-
none -> none;
747-
User -> list_to_binary(User)
748-
end
749-
end}.
741+
[{datatype, [{enum, [none]}, binary]}]}.
750742

751743
{mapping, "anonymous_login_pass", "rabbit.anonymous_login_pass", [
752744
{datatype, [tagged_binary, binary]}

0 commit comments

Comments
 (0)