~ubuntu-branches/ubuntu/wily/glusterfs/wily

« back to all changes in this revision

Viewing changes to rpc/rpc-lib/src/rpcsvc-auth.c

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Matthäi, Louis Zuckerman, Patrick Matthäi
  • Date: 2011-05-01 14:41:05 UTC
  • mfrom: (1.3.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20110501144105-l5dut674ggp5f2yr
Tags: 3.1.4-1
[ Louis Zuckerman ]
* New upstream release.
  - Add patch 01-remove-argp-m64-option.diff to allow 32bit builds.
* Enabled pure-server or pure-client installation.
  - Moved glusterfsd binary to libglusterfs0.
  - Added dependency on libglusterfs0 to -server and -client packages.
  - Removed dependency on glusterfs-client from glusterfs-server.
  - Moved manpages for binaries into their respective packages
* Updated default configuration files to 3.1-series versions
  - Added glusterd.vol to glusterfs-server, required for Elastic Volume Mgr.
  - Removed unnecessary 3.0-series sample volume-files from glusterfs-server
  Closes: #615166
* Replaced init-script for glusterfs-server with new 3.1-series version.
  Closes: #615859

[ Patrick Matthäi ]
* Bump Standards-Version to 3.9.2 (no changes needed).
* Build with hardening-wrapper.
* Comment out all dependency_libs lines in .la files.
  Closes: #621169
* Add logrotate script to the libglusterfs0 package.
  Closes: #623234
* Remove rpath from all libs and binaries.
* Add patch 02-fix-spelling-errors.diff, which fixes multiple spelling errors
  in the source code.
* Add lintian overrides for the libglusterfs0 package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
}
177
177
 
178
178
int
 
179
rpcsvc_set_allow_insecure (rpcsvc_t *svc, dict_t *options)
 
180
{
 
181
        int             ret = -1;
 
182
        char            *allow_insecure_str = NULL;
 
183
        gf_boolean_t    is_allow_insecure = _gf_false;
 
184
 
 
185
        GF_ASSERT (svc);
 
186
        GF_ASSERT (options);
 
187
 
 
188
        ret = dict_get_str (options, "rpc-auth-allow-insecure",
 
189
                            &allow_insecure_str);
 
190
        if (0 == ret) {
 
191
                ret = gf_string2boolean (allow_insecure_str,
 
192
                                         &is_allow_insecure);
 
193
                if (0 == ret) {
 
194
                        if (_gf_true == is_allow_insecure)
 
195
                                svc->allow_insecure = 1;
 
196
                        else
 
197
                                svc->allow_insecure = 0;
 
198
                }
 
199
        }
 
200
 
 
201
        return 0;
 
202
}
 
203
 
 
204
int
179
205
rpcsvc_auth_init (rpcsvc_t *svc, dict_t *options)
180
206
{
181
207
        int             ret = -1;
183
209
        if ((!svc) || (!options))
184
210
                return -1;
185
211
 
 
212
        (void) rpcsvc_set_allow_insecure (svc, options);
186
213
        ret = rpcsvc_auth_add_initers (svc);
187
214
        if (ret == -1) {
188
215
                gf_log (GF_RPCSVC, GF_LOG_ERROR, "Failed to add initers");