diff options
Diffstat (limited to 'xlators/protocol/server/src/server.c')
| -rw-r--r-- | xlators/protocol/server/src/server.c | 18 | 
1 files changed, 18 insertions, 0 deletions
diff --git a/xlators/protocol/server/src/server.c b/xlators/protocol/server/src/server.c index 4739c4560a6..a478ebd666d 100644 --- a/xlators/protocol/server/src/server.c +++ b/xlators/protocol/server/src/server.c @@ -888,6 +888,10 @@ do_rpc:                  goto out;          } +        GF_OPTION_RECONF ("strict-auth-accept", conf->strict_auth_enabled, +                          options, bool, out); + +          GF_OPTION_RECONF ("dynamic-auth", conf->dync_auth, options,                          bool, out); @@ -1118,6 +1122,14 @@ init (xlator_t *this)                          "Failed to initialize group cache.");                  goto out;          } + +        ret = dict_get_str_boolean (this->options, "strict-auth-accept", +                                    _gf_false); +        if (ret == -1) +                conf->strict_auth_enabled = _gf_false; +        else +                conf->strict_auth_enabled = ret; +          ret = dict_get_str_boolean (this->options, "dynamic-auth",                          _gf_true);          if (ret == -1) @@ -1672,5 +1684,11 @@ struct volume_options options[] = {                             "transport connection immediately in response to "                             "*.allow | *.reject volume set options."          }, +        { .key   = {"strict-auth-accept"}, +          .type  = GF_OPTION_TYPE_BOOL, +          .default_value = "off", +          .description   = "strict-auth-accept reject connection with out" +                           "a valid username and password." +        },          { .key   = {NULL} },  };  | 
