No access rights via Outlook 2010 MAPI

Hi fbartels, thanks for the update. Cleary, something has changed between versions 8.4.6 - 8.5 regarding permissions. I know Outlook via MAPI is not supported but there are still people using it. We are slowly trying to push the DeskApp client but users generally do not like change…

I will open a ticket!

hello @fbartels,

just created the ticket (KS-40047)

coffee_is_life

any updates here?

Yes, a new release of KC (8.5.4) has been made available yesterday which addresses this issue.

very nice thanks

coffee_is_life

just FYI:

we are using a room called “Besprechungsraum”.
to accept everything in nearly realtime, “kopano-mr-accept” is used in cronjob.

if i call this line now i get following error:

PHP Warning:  include(mapi/mapi.util.php): failed to open stream: No such file or directory in /usr/sbin/kopano-mr-accept on line 21
PHP Warning:  include(): Failed opening 'mapi/mapi.util.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/sbin/kopano-mr-accept on line 21
PHP Warning:  include(mapi/mapidefs.php): failed to open stream: No such file or directory in /usr/sbin/kopano-mr-accept on line 22
PHP Warning:  include(): Failed opening 'mapi/mapidefs.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/sbin/kopano-mr-accept on line 22
PHP Warning:  include(mapi/mapicode.php): failed to open stream: No such file or directory in /usr/sbin/kopano-mr-accept on line 23
PHP Warning:  include(): Failed opening 'mapi/mapicode.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/sbin/kopano-mr-accept on line 23
PHP Warning:  include(mapi/mapitags.php): failed to open stream: No such file or directory in /usr/sbin/kopano-mr-accept on line 24
PHP Warning:  include(): Failed opening 'mapi/mapitags.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/sbin/kopano-mr-accept on line 24
PHP Warning:  include(mapi/mapiguid.php): failed to open stream: No such file or directory in /usr/sbin/kopano-mr-accept on line 25
PHP Warning:  include(): Failed opening 'mapi/mapiguid.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/sbin/kopano-mr-accept on line 25
PHP Warning:  include(mapi/class.meetingrequest.php): failed to open stream: No such file or directory in /usr/sbin/kopano-mr-accept on line 27
PHP Warning:  include(): Failed opening 'mapi/class.meetingrequest.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/sbin/kopano-mr-accept on line 27
PHP Warning:  include(mapi/class.baserecurrence.php): failed to open stream: No such file or directory in /usr/sbin/kopano-mr-accept on line 28
PHP Warning:  include(): Failed opening 'mapi/class.baserecurrence.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/sbin/kopano-mr-accept on line 28
PHP Warning:  include(mapi/class.recurrence.php): failed to open stream: No such file or directory in /usr/sbin/kopano-mr-accept on line 29
PHP Warning:  include(): Failed opening 'mapi/class.recurrence.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/sbin/kopano-mr-accept on line 29
PHP Warning:  include(mapi/class.freebusypublish.php): failed to open stream: No such file or directory in /usr/sbin/kopano-mr-accept on line 30
PHP Warning:  include(): Failed opening 'mapi/class.freebusypublish.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/sbin/kopano-mr-accept on line 30
PHP Fatal error:  Call to undefined function forceUTF8() in /usr/sbin/kopano-mr-accept on line 436

the files are located in “/usr/share/kopano/php/mapi/”, all files are created on Feb 14th.

changed my php settings to “include_path=”.:/usr/share/pear:/usr/share/php:/usr/share/kopano/php"
now it can locate the files, but another error came up:

PHP Fatal error:  Call to undefined function mapi_make_scode() in /usr/share/kopano/php/mapi/mapicode.php on line 40

is this fixed in the new version from Feb 28th aswell?

coffee_is_life

Update:

upgraded my testsystem and the MAPI connection from outlook 2010 doesnt work
same for "/usr/sbin/kopano-mr-accept “Besprechungsraum” “/etc/kopano/dagent.cfg”

if i add /usr/share/kopano/php to the include paths, same error:

PHP Fatal error:  Call to undefined function mapi_make_scode() in /usr/share/kopano/php/mapi/mapicode.php on line 40

:(

coffee_is_life

@coffee_is_life said in No access rights via Outlook 2010 MAPI:

upgraded my testsystem and the MAPI connection from outlook 2010 doesnt work

Please contact support

Update:
Restarted Server and client, MAPI from outlook is now working.

“kopano-mr-accept” doesnt work (mapi error as described above).
“kopano-admin --user-count” works again aswell

thanks for the fixes :)

coffee_is_life

Update:

Got answer from Kopano-support
With changing kopano-mr-accept Script from

#!/usr/bin/php
<?php
# -*- Mode: php -*-
/*

to

#!/opt/rh/rh-php56/root/usr/bin/php
<?php
# -*- Mode: php -*-
/*

confirmed

coffee_is_life