Skip to content

Commit

Permalink
MB-51052: Set special user to be same as memcachedUser for cbauth
Browse files Browse the repository at this point in the history
Change-Id: Ic169a0bad0d506f76899162cc3ede8d264ed3c87
Reviewed-on: https://review.couchbase.org/c/ns_server/+/171287
Well-Formed: Build Bot <build@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
Tested-by: Navdeep S Boparai <navdeep.boparai@couchbase.com>
Reviewed-by: Dave Finlay <dave.finlay@couchbase.com>
  • Loading branch information
boparai11 committed Feb 24, 2022
1 parent d2ac848 commit 23eca96
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/menelaus_cbauth.erl
Expand Up @@ -150,7 +150,6 @@ maybe_notify_cbauth(#state{rpc_processes = Processes,
end.

personalize_info(Label, Info) ->
SpecialUser = ns_config_auth:get_user(special) ++ Label,
"htuabc-" ++ ReversedTrimmedLabel = lists:reverse(Label),
MemcachedUser = [$@ | lists:reverse(ReversedTrimmedLabel)],

Expand Down Expand Up @@ -179,7 +178,7 @@ personalize_info(Label, Info) ->
end, Nodes),

misc:update_proplist(Info,
[{specialUser, erlang:list_to_binary(SpecialUser)},
[{specialUser, erlang:list_to_binary(MemcachedUser)},
{nodes, NewNodes},
{tlsConfig, TLSConfig}]).

Expand Down

0 comments on commit 23eca96

Please sign in to comment.