From fc5775a1ec6fa4261dc0f1706c2c7d81454bca70 Mon Sep 17 00:00:00 2001 From: Pranith K Date: Sat, 26 Mar 2011 11:41:23 +0000 Subject: mgmt/glusterd: Allow insecure ports by default Signed-off-by: Pranith Kumar K Signed-off-by: Vijay Bellur BUG: 2582 (allow option to accept messages from insecure ports) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2582 --- xlators/mgmt/glusterd/src/glusterd.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'xlators/mgmt/glusterd') diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c index 675713585d5..21315e77b81 100644 --- a/xlators/mgmt/glusterd/src/glusterd.c +++ b/xlators/mgmt/glusterd/src/glusterd.c @@ -214,6 +214,20 @@ out: return ret; } +int +glusterd_rpcsvc_options_build (dict_t *options) +{ + int ret = 0; + + if (!dict_get (options, "rpc-auth-allow-insecure")) { + ret = dict_set_str (options, "rpc-auth-allow-insecure", "on"); + if (ret) + goto out; + } +out: + return ret; +} + /* * init - called during glusterd initialization * @@ -323,6 +337,9 @@ init (xlator_t *this) exit (1); } + ret = glusterd_rpcsvc_options_build (this->options); + if (ret) + goto out; rpc = rpcsvc_init (this->ctx, this->options); if (rpc == NULL) { gf_log (this->name, GF_LOG_ERROR, -- cgit