~ubuntu-branches/ubuntu/utopic/resiprocate/utopic-updates

« back to all changes in this revision

Viewing changes to repro/ReproAuthenticatorFactory.cxx

  • Committer: Package Import Robot
  • Author(s): Daniel Pocock
  • Date: 2014-01-12 11:46:45 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20140112114645-4g9v7vzp3psxiso9
Tags: 1.9.0~beta10-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
      mEnableDigestAuth(!mProxyConfig.getConfigBool("DisableAuth", false)),
36
36
      mEnableRADIUS(mProxyConfig.getConfigBool("EnableRADIUS", false)),
37
37
      mRADIUSConfiguration(mProxyConfig.getConfigData("RADIUSConfiguration", "")),
 
38
      mStaticRealm(mProxyConfig.getConfigData("StaticRealm", "")),
38
39
      mDigestChallengeThirdParties(!mEnableCertAuth),
39
40
      mAuthRequestDispatcher(0),
40
41
      mCertificateAuthManager((DumFeature*)0),
169
170
                                  !mProxyConfig.getConfigBool("DisableAuthInt", false) /*useAuthInt*/,
170
171
                                  mProxyConfig.getConfigBool("RejectBadNonces", false),
171
172
                                  mRADIUSConfiguration,
172
 
                                  mDigestChallengeThirdParties));
 
173
                                  mDigestChallengeThirdParties,
 
174
                                  mStaticRealm));
173
175
#else
174
176
         ErrLog(<<"can't create ReproRADIUSServerAuthManager, not compiled with RADIUS support");
175
177
#endif
181
183
                                  mProxyConfig.getDataStore()->mAclStore,
182
184
                                  !mProxyConfig.getConfigBool("DisableAuthInt", false) /*useAuthInt*/,
183
185
                                  mProxyConfig.getConfigBool("RejectBadNonces", false),
184
 
                                  mDigestChallengeThirdParties));
 
186
                                  mDigestChallengeThirdParties,
 
187
                                  mStaticRealm));
185
188
      }
186
189
   }
187
190
   return mServerAuthManager;
196
199
      if(mEnableRADIUS)
197
200
      {
198
201
#ifdef USE_RADIUS_CLIENT
199
 
         mDigestAuthenticator.reset(new RADIUSAuthenticator(mProxyConfig, mRADIUSConfiguration));
 
202
         mDigestAuthenticator.reset(new RADIUSAuthenticator(mProxyConfig, mRADIUSConfiguration, mStaticRealm));
200
203
#else
201
204
         ErrLog(<<"can't create RADIUSAuthenticator, not compiled with RADIUS support");
202
205
#endif
203
206
      }
204
207
      else
205
208
      {
206
 
         mDigestAuthenticator.reset(new DigestAuthenticator(mProxyConfig, getDispatcher()));
 
209
         mDigestAuthenticator.reset(new DigestAuthenticator(mProxyConfig, getDispatcher(), mStaticRealm));
207
210
      }
208
211
   }
209
212
   return mDigestAuthenticator;