Results 1 to 2 of 2

Thread: [2.3.6] Autodiscover fails with Outlook for Android

  1. #1
    Member baloan's Avatar
    Join Date
    Aug 2012
    Location
    Frankfurt/Main, Germany
    Posts
    96

    [2.3.6] Autodiscover fails with Outlook for Android

    I'm trying to register with Outlook on Android unsuccessfully (first code block). Same works fine with Windows 10 Mobile (second code block). The only difference in the request XML is
    a) formatting, and
    b) "utf-8" vs "UTF-8".
    I can't see how the password is transmitted...

    Any idea what's wrong?
    Any way to resolve by patching?

    Code:
    06/05/2017 16:04:38 [17292] [DEBUG] [unknown] -------- Start ZPushAutodiscover
    06/05/2017 16:04:38 [17292] [ INFO] [unknown] Z-Push version='2.3.6+0'
    06/05/2017 16:04:38 [17292] [WBXML] [unknown] ZPushAutodiscover->getIncomingXml() incoming XML data:
    <?xml version="1.0" encoding="utf-8"?>
    <Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/mobilesync/requestschema/2006">
              <Request>
                <EMailAddress>[email protected]</EMailAddress>
                <AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/mobilesync/responseschema/2006</AcceptableResponseSchema>
              </Request>
            </Autodiscover>
    
    06/05/2017 16:04:38 [17292] [DEBUG] [unknown] ZPush::GetBackend(): trying autoload backend 'BackendKopano'
    06/05/2017 16:04:38 [17292] [DEBUG] [unknown] BackendKopano using PHP-MAPI version: 8.4.0-162 - PHP version: 7.0.15-0ubuntu0.16.04.4
    06/05/2017 16:04:38 [17292] [DEBUG] [unknown] Using the username only for login: 'andreas'
    06/05/2017 16:04:38 [17292] [DEBUG] [unknown] KopanoBackend->Logon(): Trying to authenticate user 'andreas'..
    06/05/2017 16:04:38 [17292] [WARN] [unknown] /usr/share/z-push/backend/kopano/kopano.php:151 mapi_logon_zarafa(): Unable to setup service for provider (2)
    06/05/2017 16:04:38 [17292] [ERROR] [unknown] KopanoBackend->Logon(): login failed with error code: 0xFFFFFFFF80040111
    06/05/2017 16:04:38 [17292] [DEBUG] [unknown] KopanoBackend->Logon(): logon failed for user 'andreas'
    06/05/2017 16:04:38 [17292] [ INFO] [unknown] AuthenticationRequiredException: Access denied. Username or password incorrect. - code: 0 - file: /usr/share/z-push/autodiscover/autodiscover.php:206
    06/05/2017 16:04:38 [17292] [FATAL] [unknown] Exception: (AuthenticationRequiredException) - Access denied. Username or password incorrect.
    06/05/2017 16:04:38 [17292] [DEBUG] [unknown] ZPushAutodiscover->sendResponse() sending response...
    06/05/2017 16:04:38 [17292] [DEBUG] [unknown] ZPushAutodiscover->sendResponse() response sent.
    06/05/2017 16:04:38 [17292] [DEBUG] [unknown] -------- End ZPushAutodiscover
    Code:
    06/05/2017 16:07:23 [17279] [DEBUG] [unknown] -------- Start ZPushAutodiscover
    06/05/2017 16:07:23 [17279] [ INFO] [unknown] Z-Push version='2.3.6+0'
    06/05/2017 16:07:23 [17279] [ INFO] [unknown] AuthenticationRequiredException: Unauthorized - code: 0 - file: /usr/share/z-push/autodiscover/autodiscover.php:143
    06/05/2017 16:07:23 [17279] [FATAL] [unknown] Exception: (AuthenticationRequiredException) - Unauthorized
    06/05/2017 16:07:23 [17279] [ERROR] [unknown] Unable to complete autodiscover incorrect request: 'Unauthorized'
    06/05/2017 16:07:23 [17279] [DEBUG] [unknown] ZPushAutodiscover->sendResponse() sending response...
    06/05/2017 16:07:23 [17279] [DEBUG] [unknown] ZPushAutodiscover->sendResponse() response sent.
    06/05/2017 16:07:23 [17279] [DEBUG] [unknown] -------- End ZPushAutodiscover
    
    
    06/05/2017 16:08:08 [17277] [DEBUG] [unknown] -------- Start ZPushAutodiscover
    06/05/2017 16:08:08 [17277] [ INFO] [unknown] Z-Push version='2.3.6+0'
    06/05/2017 16:08:08 [17277] [WBXML] [unknown] ZPushAutodiscover->getIncomingXml() incoming XML data:
    <?xml version="1.0" encoding="UTF-8"?>
    <Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/mobilesync/requestschema/2006"><Request><EMailAddress>[email protected]</EMailAddress><AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/mobilesync/responseschema/2006</AcceptableResponseSchema></Request></Autodiscover>
    
    06/05/2017 16:08:08 [17277] [DEBUG] [unknown] ZPush::GetBackend(): trying autoload backend 'BackendKopano'
    06/05/2017 16:08:08 [17277] [DEBUG] [unknown] BackendKopano using PHP-MAPI version: 8.4.0-162 - PHP version: 7.0.15-0ubuntu0.16.04.4
    06/05/2017 16:08:08 [17277] [DEBUG] [unknown] Using the username only for login: 'andreas'
    06/05/2017 16:08:08 [17277] [DEBUG] [unknown] KopanoBackend->Logon(): Trying to authenticate user 'andreas'..
    06/05/2017 16:08:08 [17277] [DEBUG] [unknown] KopanoBackend->openMessageStore('andreas'): Found 'DEFAULT' store: 'Resource id #14'
    06/05/2017 16:08:08 [17277] [DEBUG] [unknown] KopanoBackend->Logon(): User 'andreas' is authenticated
    06/05/2017 16:08:08 [17277] [DEBUG] [unknown] Store supports properties containing Unicode characters.
    06/05/2017 16:08:08 [17277] [DEBUG] [unknown] ZPushAutodiscover->login() successfull with 'andreas' as the username.
    06/05/2017 16:08:08 [17277] [WBXML] [unknown] KopanoBackend->GetUserDetails for 'andreas'.
    06/05/2017 16:08:08 [17277] [WBXML] [unknown] Resolved user's 'andreas' fullname to 'Andreas Balogh'
    06/05/2017 16:08:08 [17277] [ INFO] [unknown] ZPushAutodiscover->createResponse(): server URL: 'https://baloghs.de/Microsoft-Server-ActiveSync'
    06/05/2017 16:08:08 [17277] [WBXML] [unknown] ZPushAutodiscover->createResponse(): XML response:
    <?xml version="1.0" encoding="utf-8"?>
    <Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/mobilesync/responseschema/2006">
    <Culture>en:us</Culture>
    <User>
    <DisplayName>Andreas Balogh</DisplayName>
    <EMailAddress>[email protected]</EMailAddress>
    </User>
    <Action>
    <Settings>
    <Server>
    <Type>MobileSync</Type>
    <Url>https://baloghs.de/Microsoft-Server-ActiveSync</Url>
    <Name>https://baloghs.de/Microsoft-Server-ActiveSync</Name>
    </Server>
    </Settings>
    </Action>
    </Response>
    </Autodiscover>
    
    06/05/2017 16:08:08 [17277] [DEBUG] [unknown] ZPushAutodiscover->sendResponse() sending response...
    06/05/2017 16:08:08 [17277] [DEBUG] [unknown] ZPushAutodiscover->sendResponse() response sent.
    06/05/2017 16:08:08 [17277] [DEBUG] [unknown] -------- End ZPushAutodiscover
    Software stack: Kopano 8.4.0_162, z-push-2.6.3 , Postfix 3.1.0
    Platform: Ubuntu 16.04.2 LTS
    Webserver: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g mod_wsgi/4.3.0 Python/2.7.12
    Clients:
    Microsoft Lumia 640 Dual SIM Windows Phone 10 (via z-push)
    BQ Aquaris U Plus, Android 7.1.1 with Outlook 2.1.201
    Windows 10, Mail (via z-push), Outlook 2013 (via z-push)
    Kopano WebApp 3.3.0.566

  2. #2
    Senior Member
    Join Date
    Sep 2007
    Location
    Aka SebastianBrasil
    Posts
    1,467
    Hum, very weird. The difference in encoding shouldn't matter.
    Do you have special characters in your password that could break by the encoding?
    Could you test using a 7bit ascii password just to be sure?

    The password is sent via an http basic auth header. If it's not available we don't even try to login but return a "401 unauthorized" immediately (like the beginning of the second code block).
    We could try logging the password. There has to be a difference, doesn't make sense that it does work for one but not the other.

    Cheers,
    Seb

Similar Threads

  1. Android 4.4 (Nexus 10) Initial z-push sync fails with many subfolders
    By Mysterious in forum Z-Push when using Kopano/Zarafa
    Replies: 3
    Last Post: 04-03-2014, 03:20 PM
  2. Autoarchive fails in Outlook 2007
    By pebu in forum Outlook usage Archives
    Replies: 11
    Last Post: 05-03-2009, 03:40 PM
  3. 6.20.1 -- Outlook fails (0x80040700)
    By pebu in forum Installation and Configuration Archives
    Replies: 1
    Last Post: 17-02-2009, 02:16 PM
  4. Outlook Client Installation fails
    By UdoG in forum Outlook usage Archives
    Replies: 1
    Last Post: 07-10-2008, 06:36 PM
  5. After Install client Outlook fails
    By hermes in forum Installation and Configuration Archives
    Replies: 5
    Last Post: 21-05-2008, 04:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •