6.0.0-alpha14
7/2/25

[#13635] ActiveSync uses backends.php rather than backends.local.php
Summary ActiveSync uses backends.php rather than backends.local.php
Queue IMP
Queue Version 6.2.2
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester ronald (at) rmacd (dot) com
Created 10/19/2014 (3909 days ago)
Due
Updated 10/29/2014 (3899 days ago)
Assigned 10/20/2014 (3908 days ago)
Resolved 10/29/2014 (3899 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/29/2014 09:06:09 PM Michael Rubinsky State ⇒ Not A Bug
 
10/20/2014 06:01:59 PM Michael Slusarz Comment #5 Reply to this comment
Thanks Michael. Apologies, will double check and get back to you. In 
the meantime, is there any way that loading of .local.conf could be 
logged?
It is.  If 'registry.php' is identified as loaded in the logs, and 
registry.local.php exists, then it was loaded.

'registry.local.php' is a component of registry.php (not a separate 
config file) so the logging semantics are correct.
10/20/2014 05:25:59 PM ronald (at) rmacd (dot) com Comment #4 Reply to this comment
Thanks Michael. Apologies, will double check and get back to you. In 
the meantime, is there any way that loading of .local.conf could be 
logged?
10/20/2014 02:19:38 PM Michael Rubinsky Comment #3 Reply to this comment
The log suggested that it was loading backends.php rather than 
backends.local.php.
Also, this statement is misleading. We don't load either/or. Both 
files are loaded with the .local version overriding settings in the 
non-local. You should only add items that are different in the local 
file, not the entire entry.
10/20/2014 02:17:13 PM Michael Rubinsky Comment #2
State ⇒ Feedback
Reply to this comment
The *.local files are not announced in the log if they are loaded. You 
will only see an error if they exist, but cannot be loaded for some 
reason.

Also, ActiveSync has no control over what config files are or are not loaded.
10/19/2014 04:25:58 PM ronald (at) rmacd (dot) com Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ ActiveSync uses backends.php rather than backends.local.php
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Using backends.local.php to store all backend configs as advised. 
However, passing -X OPTIONS with -k -u (username) through curl, I see 
a 401 and the following in syslog output:

Oct 19 14:34:05 ip-10-164-43-162 HORDE: Load config file (nls.php; 
app: horde) [pid 16745 on line 109 of 
"/usr/share/php/Horde/Registry/Loadconfig.php"]
Oct 19 14:34:05 ip-10-164-43-162 HORDE: [horde] Horde_Rpc::__construct 
complete [pid 16745 on line 47 of 
"/usr/share/php/Horde/Rpc/ActiveSync.php"]
Oct 19 14:34:05 ip-10-164-43-162 HORDE: 
Horde_Rpc_ActiveSync::getResponse() starting for OPTIONS [pid 16745 on 
line 159 of "/var/www/horde/rpc.php"]
Oct 19 14:34:05 ip-10-164-43-162 HORDE: Load config file (hooks.php; 
app: imp) [pid 16745 on line 109 of 
"/usr/share/php/Horde/Registry/Loadconfig.php"]
Oct 19 14:34:05 ip-10-164-43-162 HORDE: [imp] Load config file 
(conf.php; app: imp) [pid 16745 on line 109 of 
"/usr/share/php/Horde/Registry/Loadconfig.php"]
Oct 19 14:34:05 ip-10-164-43-162 HORDE: [imp] Load config file 
(backends.php; app: imp) [pid 16745 on line 109 of 
"/usr/share/php/Horde/Registry/Loadconfig.php"]
Oct 19 14:34:05 ip-10-164-43-162 HORDE: [imp] [login] Error connecting 
to mail server. [pid 16745 on line 726 of 
"/var/www/horde/imp/lib/Imap.php"]
Oct 19 14:34:05 ip-10-164-43-162 HORDE:  1. 
Horde_Rpc_ActiveSync->getResponse() /var/www/horde/rpc.php:159#012 2. 
Horde_ActiveSync->handleRequest() 
/usr/share/php/Horde/Rpc/ActiveSync.php:122#012 3. 
Horde_ActiveSync->authenticate() 
/usr/share/php/Horde/ActiveSync.php:703#012 4. 
Horde_Core_ActiveSync_Driver->authenticate() 
/usr/share/php/Horde/ActiveSync.php:542#012 5. 
Horde_Core_ActiveSync_Auth->authenticate() 
/usr/share/php/Horde/Core/ActiveSync/Driver.php:213#012 6. 
Horde_Core_Auth_Application->authenticate() 
/usr/share/php/Horde/Core/ActiveSync/Auth.php:63#012 7. 
Horde_Core_Auth_Application->authenticate() 
/usr/share/php/Horde/Core/Auth/Application.php:126#012 8. 
Horde_Auth_Base->authenticate() 
/usr/share/php/Horde/Core/Auth/Application.php:129#012 9. 
Horde_Core_Auth_Application->_authenticate() 
/usr/share/php/Horde/Auth/Base.php:160#01210. 
Horde_Registry->callAppMethod() 
/usr/share/php/Horde/Core/Auth/Application.php:158#01211. 
call_user_func_array() /usr/share/php/Horde/Registry.php:1201#01212. 
IMP_Application->authAuthenticate()#01213. IMP_Auth::authenticate() 
/var/www/horde/imp/lib/Application.php:371#01214. IMP_Imap->login() 
/var/www/horde/imp/lib/Auth.php:86#01215. IMP_Imap->__call() 
/var/www/horde/imp/lib/Auth.php:86#01216. 
Horde_Rpc_ActiveSync->getResponse() /var/www/horde/rpc.php:159#01217. 
Horde_ActiveSync->handleRequest() 
/usr/share/php/Horde/Rpc/ActiveSync.php:122#01218. 
Horde_ActiveSync->authenticate() 
/usr/share/php/Horde/ActiveSync.php:703#01219. 
Horde_Core_ActiveSync_Driver->authenticate() 
/usr/share/php/Horde/ActiveSync.php:542#01220. 
Horde_Core_ActiveSync_Auth->authenticate() 
/usr/share/php/Horde/Core/ActiveSync/Driver.php:213#01221. 
Horde_Core_Auth_Application->authenticate() 
/usr/share/php/Horde/Core/ActiveSync/Auth.php:63#01222. 
Horde_Core_Auth_Application->authenticate() 
/usr/share/php/Horde/Core/Auth/Application.php:126#01223. 
Horde_Auth_Base->authenticate() 
/usr/share/php/Horde/Core/Auth/Application.php:129#01224. 
Horde_Core_Auth_Application->_authenticate() 
/usr/share/php/Horde/Auth/Base.php:160


The log suggested that it was loading backends.php rather than 
backends.local.php.

Sure enough, when I removed backends.php and symlinked the back to 
backends.local.php, ActiveSync started working again.

Saved Queries