[horde] ActiveSync GAL setup help - search returns no contacts

James B. MacLean macleajb at ednet.ns.ca
Sat Feb 2 23:53:35 UTC 2013


Hi Michael and thanks for the response :

On 2013-02-02 3:21 PM, Michael J Rubinsky wrote:
>
> Quoting "James B. MacLean" <macleajb at ednet.ns.ca>:
>
>> Horde 5.0.3
>> Turba 4.0.2
>>
>> I have set:
>>
>> $conf['gal']['addressbook'] = 'localldap';
>>
>> in
>>
>> /var/www/horde/turba/config/conf.php
>>
>> Global Address Book - localldap is working fine returning users.
>>
>> Log only showing:
>>
>> 2013-02-01T18:32:58-04:00 INFO: [Appl88041BV1A4T] Handling SEARCH 
>> command.
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] I <Search:Search>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] I  <Search:Store>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] I   <Search:Name>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] I     GAL
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] I </Search:Name>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] I <Search:Query>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] I     Ma
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] I </Search:Query>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] I <Search:Options>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] I <Search:Range>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] I      0-50
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] I </Search:Range>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] I </Search:Options>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] I </Search:Store>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] I </Search:Search>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] O <Search:Search>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] O <Search:Status>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] O     1
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] O <Search:Status/>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] O <Search:Response>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] O <Search:Store>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] O <Search:Status>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] O       1
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] O <Search:Status/>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] O <Search:Store/>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] O <Search:Response/>
>> 2013-02-01T18:32:58-04:00 DEBUG: [32543] O <Search:Search/>
>> 2013-02-01T18:32:58-04:00 INFO: [32543] User macleajb logged off
>>
>> I confirmed that localldap is being found in "contacts_search" 
>> function in:
>>
>> /usr/share/pear/Horde/Core/ActiveSync/Connector.php
>
> You mean you see the ldap server being queried? When you perform a GAL 
> lookup?
No I just had it print to debug that the $gal variable was returning 
'localldap' as it should. I was not sure what the correct config for 
setup was until I got the right $gal setting :).

I do know that my Global Address book (localldap) is working fine using 
searches from Horde.
>
>> and that in the same function:
>>
>> $this->_registry->contacts->search($query, $opts)[0] is empty.
>
> This wouldn't normally contain anything anyway. It would be keyed by 
> the search term.
Is there something I can query for at this point?
>
>> Is there some setup piece that I have missed? If not, where would I 
>> find the function :
>>
>> $this->_registry->contacts->search()
>>
>> So that I might find out why it is not returning anything?
>
> If you are sure the LDAP server is being queries, you are going to 
> have to trace the search function to find out why it's not returning 
> expected results. I am assuming you have at least one of: 'firstname', 
> 'lastname', 'alias', 'name', 'email' defined in the ldap source?
Yes, I had all those defined accept alias and I even then went back and 
defined that, but no go. I even tried changing it to localsql with the 
same result.

So, no, I do not know if the LDAP server is being queried from the GAL 
function properly and I would like to trace that back, but, alas, my php 
skills for traversing where this->_registry->contacts->search() goes is 
beyond my skill :(.

Would you mind pointing out where that function is that is being called 
and I will keep digging in to it.

Thanks,
JES


More information about the horde mailing list