We have moved to a new Sailfish OS Forum. Please start new discussions there.
3

Microsoft Exchange Policy Problem [solved]

asked 2014-12-12 13:16:21 +0200

schumadr gravatar image

updated 2014-12-16 21:51:04 +0200

Dear all,

Some time ago I finally bought a Jolla phone (I've been a long N900 user). Since I'd like to use my private Jolla also as my business phone, I need MS Exchange. I've been trying many things but cannot manage to get the Jolla to sync with our corporate MS Exchange server. I always get the message: "Oops, account could not be added" - Device does not support all server settings and policies required by this account.

Today, I finally discovered that I can retrieve a log file from the server:

RequestBody : 
<?xml version="1.0" encoding="utf-8" ?>
<Provision xmlns="Provision:">
    <Policies>
        <Policy>
            <PolicyType>MS-EAS-Provisioning-WBXML</PolicyType>
        </Policy>
    </Policies>
</Provision>

AccessState : 
Allowed

AccessStateReason : 
Global

ResponseHeader : 
HTTP/1.1 200 OK
MS-Server-ActiveSync: 15.0

ResponseBody : 
<?xml version="1.0" encoding="utf-8" ?>
<Provision xmlns="Provision:">
    <Status>1</Status>
    <Policies>
        <Policy>
            <PolicyType>MS-EAS-Provisioning-WBXML</PolicyType>
            <Status>1</Status>
            <PolicyKey>1234567890</PolicyKey>
            <Data bytes="43"/>
        </Policy>
    </Policies>
</Provision>

RequestBody : 
<?xml version="1.0" encoding="utf-8" ?>
<FolderSync xmlns="FolderHierarchy:">
    <SyncKey>0</SyncKey>
</FolderSync>

AccessState : 
Blocked

AccessStateReason : 
Policy

ResponseHeader : 
HTTP/1.1 200 OK
MS-Server-ActiveSync: 15.0

ResponseBody : 
<?xml version="1.0" encoding="utf-8" ?>
<FolderSync xmlns="FolderHierarchy:">
    <Status>142</Status>
</FolderSync>

Unfortunately, I can not edit the policies on the server side. Does anyone have a clue whether I can do something or whether this is a feature that is not supported by Sailfish yet?

Thanks!

edit retag flag offensive close delete

Comments

1

Doing some more research leads me to the conclusion that there must be another policy mismatch. The status code 142 when trying to retrieve the folder hierarchy only means "DeviceNotProvisioned". I appreciate any idea that helps me getting further.

schumadr ( 2014-12-12 14:14:37 +0200 )edit

Check here: https://together.jolla.com/question/12529/microsoft-exchange-not-working-with-company-exchange-server/ Basically, there are still some parameters not yet managed by Sailfish, encryption, for example.

Jordi ( 2014-12-12 15:55:34 +0200 )edit
1

@schumadr - Do you know what policies the server requests ? maybe it also accept no-provisionable devices(you can change that while configuring the account), if you could connect with n900 that's the case then.

VDVsx ( 2014-12-12 17:56:18 +0200 )edit
1

@Jordi - Thanks, I've seen that thread as well but since it's from early this year, I thought that it might not be up to date anymore. You may be right that there are some parameters still missing. @VDVsx - Unfortunately, I don't know which policies the server requests. Any way to log that? The MS Exchange does not work with the N900, the server refuses to sync.

schumadr ( 2014-12-12 22:24:08 +0200 )edit
3

@schumadr - You can collect logs this way:

enable logging, in:

/home/nemo/.config/Nokia/activesync.conf

Enable file log and add a path for the log, like for example:

   [FileLog]
   Enabled=1
   Path=/home/nemo/Documents/as.log

in the categories section make sure provision is set to 1, like this:

Provision=1

Reboot the device and then configure the account, wait until the sync is finished, examine the file to see if you want to remove some data, your email address, calendar entries names and folder names can be presented there, send me the logs to mail-logs at jolla dot com. After that turn file log off again by setting "enabled" to 0.Thanks a lot!

VDVsx ( 2014-12-15 10:03:15 +0200 )edit

1 Answer

Sort by » oldest newest most voted
3

answered 2014-12-16 21:47:43 +0200

schumadr gravatar image

Hi all,

With the help of @VDVsx, we found the issue! Inside the log he could point out where the policy problem is:

[Debug] Provision :  ProvisionableImpl: aPolicies.maxDevicePasswordFailedAttempts 16 
[Debug] Provision :  ProvisionableImpl: aPolicies.maxInactivityTimeDeviceLock 900 
[Debug] Provision :  ProvisionableImpl: maxDevicePasswordFailedAttempts is NOT OK 
[Debug] Provision :  ProvisionableImpl: device lock is required and  is NOT OK

The failing policy has to do with the device lock. Since I have the "automatic locking" set to 5 minutes, but "number of tries" set to unlimited, I changed the latter to 16. After I set up the Microsoft Exchange account again, my corporate emails, contacts, and calendar started to sync!

Now I can start using it as my primary phone also for work. Thanks and happy sailing! :-)

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2014-12-12 13:16:21 +0200

Seen: 1,631 times

Last updated: Dec 16 '14