Use of undefined constant OUTLOOK
When I run ldap_sync.php I get the following error:
PHP Notice: Use of undefined constant OUTLOOK - assumed 'OUTLOOK' in /var/www/piler.aaa.fu/config.php on line 286
I edited system/helper/detectmobilebrowser.php and changed line 5 from:
if(!isset($_SERVER['HTTP_USER_AGENT'])) { return 0; }
to:
if(!isset($_SERVER['HTTP_USER_AGENT'])) { define('OUTLOOK', 0); return 0; }
That defines both OUTLOOK and MOBILE_DEVICE and I no longer get errors.
Comments (7)
-
-
repo owner ok, I can add this fix. However do you really need to sync the ldap user data to piler? Recently the gui can authenticate users against AD, ldap, imap, pop3, ... so there's really very little need for a locally duplicated user db.
-
I looked at direct ldap and our ldap groups have nothing to do with our mail server mailing lists. I think I need the local groups and the local users to add them to. I am not sure, but I think that is correct.
-
repo owner what mail system do you use? And do you have regular openldap?
-
repo owner - changed status to resolved
Anyway recent versions feature this fix.
-
Apple LDAP and Postfix mail server. Mail server just uses LDAP for authentication. Mailing lists have non-ldap clients in them. Clients do not use our piler install so the non-ldap users are a non issue but mailing lists are controlled on the Postfix server via Virtualmin.
-
repo owner ok, that's a nice setup.
- Log in to comment
Woops - I did not notice I was not logged in.