[horde] User-ID mapping for Android/Outlook autodiscovery?

Michael J Rubinsky mrubinsk at horde.org
Thu Jun 11 21:03:38 UTC 2015


Quoting Bjoern Voigt <bjoernv at arcor.de>:

> I am new with Horde 5.2. My Horde 5.2 installation uses a Courier
> IMAP as authentication driver.
>
> Manual configuration of Active Sync (Exchange) accounts on Outlook
> 2013 and Android 4.4 seams to work. I haven't tested the accounts
> intensively.
>
> But I can not get autodiscovery to run. I need some kind of userId
> mapping. For instance userId "hans" (Courier IMAP user) has the
> email address "hans.mayer at domain.com".
>
> I tried different userId mapping hooks
>
> config/hooks.local.php: authusername, preauthenticate and
>   activesync_get_autodiscover_username
> imp/config/hooks.local.php: preauthenticate
>
> To see, if the hooks are called I installed some debugging code
> first, e.g. in imp/config/hooks.local.php
>
> class IMP_Hooks {
>     public function preauthenticate($userId, $credentials) {
>         Horde::log("UserId input: ".$userId, 'ERR');
>         $outuserid=$userId;
>         return array(
>           'credentials' => $credentials,
>           'userId' => $outuserid
>       );
>     }
> }
>
> I found, that the hooks (authusername and preauthenticate) are
> called within the normal Horde Webmail interface.
>
> But in autodiscovery I see no debugging output in horde.log. I see
> only the failing login from IMAP server.
>
> Outlook 2013 sends "hans.mayer at domain.com" (Input
> hans.mayer at domain.com) to IMAP server during autodiscovery. Android
> sends "hans.mayer". Of course the authentication fails, because
> "hans" is the right username.
>
> Any hints?
>
> Greetings,
> Björn
>
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org

I already answered this earlier:

http://lists.horde.org/archives/horde/Week-of-Mon-20150608/054319.html

-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5869 bytes
Desc: S/MIME Signature
URL: <http://lists.horde.org/archives/horde/attachments/20150611/c977f9f5/attachment.bin>


More information about the horde mailing list