AnsweredAssumed Answered

Bypass authentication class

Question asked by oursgris oursgris on Apr 27, 2015
Latest reply on Feb 7, 2017 by Dursun Tosun
I use sugarcrm with CASAuthenticate.
I'd like to use SugarAuthenticate for soap.php.
So there is a line in the config.php or config_override.php like :

$sugar_config['authenticationClass'] = 'CASAuthenticate';
if (preg_match('#^/?soap.php#', $_SERVER['PHP_SELF'])) {
  // NO CAS for SOAP WS
  unset($sugar_config['cas'], $sugar_config['authenticationClass']);

If I modify some configuration, the config files can be replaced (and the web service doesn't work anymore)
How can I avoid that issue and I make it upgrade safe or at least config update (and repair) safe ?
I use SugarCRM CE 6.5.18