Use of undefined constant OUTLOOK

Issue #267 resolved
Former user created an issue

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)

  1. Janos SUTO 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.

  2. Jack Zielke

    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.

  3. Jack Zielke

    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.

  4. Log in to comment