summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorPranith K <pranithk@gluster.com>2011-03-25 21:43:17 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-26 08:39:03 -0700
commitf6e0e614fbd07a57de44f0d16c304d01d1a5b269 (patch)
treecc3fae1e852ede9b78a87754061cbcc84099b619 /xlators
parent8a15f00cd8ad19fa414d2ef63dc71147ae191d73 (diff)
mgmt/glusterd: Allow insecure ports by default
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 2582 (allow option to accept messages from insecure ports) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2582
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c
index 570fd1662a8..083ff10d658 100644
--- a/xlators/mgmt/glusterd/src/glusterd.c
+++ b/xlators/mgmt/glusterd/src/glusterd.c
@@ -215,6 +215,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
*
@@ -359,6 +373,9 @@ init (xlator_t *this)
if (ret == -1)
goto out;
#endif
+ 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,