[horde] localldap source and gal

Michael J Rubinsky mrubinsk at horde.org
Sat Dec 16 02:12:51 UTC 2023


Quoting David Wells - Alfavinil S.A. <dwells at alfavinil.com>:

> Hi everybody!
>
> I sent this message to the turba mailing list but as it is related  
> to activesync I'll also send to this list, sorry for crossposting if  
> this is not the correct place. I have set up horde with the latest  
> versions available in pear with php 7 and I set upĀ in turba's  
> backends.local.php file a source identified as 'localldap' using the  
> localldap entry in the backends.php file as a template to connect to  
> a samba 4 AD DC, I can query this address book from horde's web gui  
> correctly and if I set it as browseable I can see all the entries  
> stored in the DC. In turba's settings I set this source as the gal  
> source ($conf['gal']['addressbook'] = 'localldap';) but no  
> activesync client (tried ms outlook and thunderbird with tbsync  
> addon) can see this gal. Is there anything else to setup to get this  
> working?


Hi Dave, it's been a while since I've been in that code, but this  
SOUNDS like it should be working. Just to clarify, with ActiveSync, a  
"GAL" does not show up as a browsable address book (regardless of how  
Horde configures it for the GUI). It is only used during typical  
search operations, such as when composing an email and searching for  
the recipient.

I would enable the activesync logging in the Horde config, then try  
composing an email to a recipient that exists only in the GAL and not  
in any of your other sync'd address books. Look in the log for the  
SEARCH request, it would look something like this:


[1513692][2023-12-16T02:08:11+00:00] I: <Search:Search>
[1513692][2023-12-16T02:08:11+00:00] I:  <Search:Store>
[1513692][2023-12-16T02:08:11+00:00] I:   <Search:Name>
[1513692][2023-12-16T02:08:11+00:00] I:     GAL
[1513692][2023-12-16T02:08:11+00:00] I:   </Search:Name>
[1513692][2023-12-16T02:08:11+00:00] I:   <Search:Query>
[1513692][2023-12-16T02:08:11+00:00] I:     mrubinsk at horde.org
[1513692][2023-12-16T02:08:11+00:00] I:   </Search:Query>
[1513692][2023-12-16T02:08:11+00:00] I:   <Search:Options>
[1513692][2023-12-16T02:08:11+00:00] I:    <Search:Range>
[1513692][2023-12-16T02:08:11+00:00] I:      0-1
[1513692][2023-12-16T02:08:11+00:00] I:    </Search:Range>
[1513692][2023-12-16T02:08:11+00:00] I:    <Search:Picture>
[1513692][2023-12-16T02:08:11+00:00] I:     <Search:MaxSize>
[1513692][2023-12-16T02:08:11+00:00] I:       102400
[1513692][2023-12-16T02:08:11+00:00] I:     </Search:MaxSize>
[1513692][2023-12-16T02:08:11+00:00] I:     <Search:MaxPictures>
[1513692][2023-12-16T02:08:11+00:00] I:       1
[1513692][2023-12-16T02:08:11+00:00] I:     </Search:MaxPictures>
[1513692][2023-12-16T02:08:11+00:00] I:    </Search:Picture>
[1513692][2023-12-16T02:08:11+00:00] I:   </Search:Options>
[1513692][2023-12-16T02:08:11+00:00] I:  </Search:Store>

with the response looking like this, depending on the search results:


[1337941][2023-12-16T02:07:49+00:00] O: <Search:Search>
[1337941][2023-12-16T02:07:49+00:00] O:  <Search:Status>
[1337941][2023-12-16T02:07:49+00:00] O:   1
[1337941][2023-12-16T02:07:49+00:00] O:  </Search:Status>
[1337941][2023-12-16T02:07:49+00:00] O:  <Search:Response>
[1337941][2023-12-16T02:07:49+00:00] O:   <Search:Store>
[1337941][2023-12-16T02:07:49+00:00] O:    <Search:Status>
[1337941][2023-12-16T02:07:49+00:00] O:     1
[1337941][2023-12-16T02:07:49+00:00] O:    </Search:Status>
[1337941][2023-12-16T02:07:49+00:00] O:    <Search:Result>
[1337941][2023-12-16T02:07:49+00:00] O:     <Search:Properties>
[1337941][2023-12-16T02:07:49+00:00] O:      <GAL:DisplayName>
[1337941][2023-12-16T02:07:49+00:00] O:       global person
[1337941][2023-12-16T02:07:49+00:00] O:      </GAL:DisplayName>
[1337941][2023-12-16T02:07:49+00:00] O:      <GAL:FirstName>
[1337941][2023-12-16T02:07:49+00:00] O:       global
[1337941][2023-12-16T02:07:49+00:00] O:      </GAL:FirstName>
[1337941][2023-12-16T02:07:49+00:00] O:      <GAL:LastName>
[1337941][2023-12-16T02:07:49+00:00] O:       person
[1337941][2023-12-16T02:07:49+00:00] O:      </GAL:LastName>
[1337941][2023-12-16T02:07:49+00:00] O:      <GAL:EmailAddress>
[1337941][2023-12-16T02:07:49+00:00] O:       global at person.com
[1337941][2023-12-16T02:07:49+00:00] O:      </GAL:EmailAddress>
[1337941][2023-12-16T02:07:49+00:00] O:      <GAL:Picture>
[1337941][2023-12-16T02:07:49+00:00] O:       <GAL:Status>
[1337941][2023-12-16T02:07:49+00:00] O:        173
[1337941][2023-12-16T02:07:49+00:00] O:       </GAL:Status>
[1337941][2023-12-16T02:07:49+00:00] O:      </GAL:Picture>
[1337941][2023-12-16T02:07:49+00:00] O:     </Search:Properties>
[1337941][2023-12-16T02:07:49+00:00] O:    </Search:Result>
[1337941][2023-12-16T02:07:49+00:00] O:    <Search:Range>
[1337941][2023-12-16T02:07:49+00:00] O:     0-0
[1337941][2023-12-16T02:07:49+00:00] O:    </Search:Range>
[1337941][2023-12-16T02:07:49+00:00] O:    <Search:Total>
[1337941][2023-12-16T02:07:49+00:00] O:     1
[1337941][2023-12-16T02:07:49+00:00] O:    </Search:Total>
[1337941][2023-12-16T02:07:49+00:00] O:   </Search:Store>
[1337941][2023-12-16T02:07:49+00:00] O:  </Search:Response>
[1337941][2023-12-16T02:07:49+00:00] O: </Search:Search>



If you don't see that and the user does not show up as a result, look  
for any error output, both in that log and the general Horde log output.

> Thank you very much in advance!
> Best regards,
> Dave.
>
> -- 
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org



-- 
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: not available
Type: application/pgp-keys
Size: 9386 bytes
Desc: PGP Public Key
URL: <https://lists.horde.org/archives/horde/attachments/20231216/1bf2e67c/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: PGP Digital Signature
URL: <https://lists.horde.org/archives/horde/attachments/20231216/1bf2e67c/attachment-0001.sig>


More information about the horde mailing list