Hi,
I have one problem with OS X 10.10.3 Contacts.app and SOGo 2.2.17a.20150402-1
on ubuntu 14.04.2 LTS.
Sync contacts works like a charm, but search my global address book is not
working for all available contacts.
When I log in to SOGo-WebInterface and I search my Public addresses, all
SOGo-user addresses are found.
All SOGo-Users I have added in my AD (Samba4.1.17) after SOGo install, are
available in SOGo’s Public addressbook and are able to logon.
When I search in Contacts.app I can just find Addresses that were available
during install SOGo.
I tried to delete my account in Contacts.app and re-add it - without success
I tried to disable memcache in sogo.conf and restart - without success
I tried with a new OS X installation, without copying preferences from my
TimeMaschine.
I enable LDAPDebugEnabled and SoDebugBaseURL and tail sogo.log while search for
contacts on my mac.
On both search entries (one successful and one missing) I get the same log
entry with just another ldap filter.
So I copy that filter and run ldap-search manually. This way I get both times 1
result as expected.
Here is my SOGoUserSources entry of solo.conf:
SOGoUserSources = (
{
type = ldap;
CNFieldName = cn;
UIDFieldName = sAMAccountName;
baseDN = "OU=Mitarbeiter,dc=mydom,dc=local";
bindDN = "CN=sogo,CN=users,DC=mydom,DC=local";
bindFields = (sAMAccountName, mail);
bindPassword = XXXXXXXX;
canAuthenticate = YES;
displayName = "Public";
hostname = ldap://ad1.mydom:389;
filter = "mail = '*'";
id = directory;
isAddressBook = YES;
}
);
Not successfully search in Contacts.app but successful with ldapsearch:
...
Apr 03 13:51:00 sogod [23413]: <0x0x7f0f2d401588[NGLdapConnection]> Using
ldap_initialize for LDAP URL: ldap://ad1.mydom.local:389
2015-04-03 13:51:00.951 sogod[23413] -[NGLdapConnection
_searchAtBaseDN:qualifier:attributes:scope:]: search at base
'ou=mitarbeiter,dc=mydom,dc=local' filter
'(&(|(sn=*harald*)(displayname=*harald*)(telephonenumber=*harald*)(mail=*harald*)(cn=*harald*))(mail=*))'
for attrs '*'
Apr 03 13:51:00 sogod [23413]: 62.153.19.71 "REPORT
/SOGo/dav/christian/Contacts/directory/ HTTP/1.1" 207 923/782 0.092 - - 12K
ldapsearch -x -h ad1.mydom.local -D "CN=sogo,CN=users,DC=mydom,DC=local" -W -b
"OU=Mitarbeiter,dc=mydom,dc=local"
'(&(|(sn=*harald*)(displayname=*harald*)(telephonenumber=*harald*)(mail=*harald*)(cn=*harald*))(mail=*))‘
...
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
Successful search in Contacts.app and successful with ldapsearch:
...
Apr 03 13:50:28 sogod [23413]: <0x0x7f0f2d3f9198[NGLdapConnection]> Using
ldap_initialize for LDAP URL: ldap://ad1.mydom.local:389
2015-04-03 13:50:28.660 sogod[23413] -[NGLdapConnection
_searchAtBaseDN:qualifier:attributes:scope:]: search at base
'ou=mitarbeiter,dc=mydom,dc=local' filter
'(&(|(sn=*werner*)(displayname=*werner*)(telephonenumber=*werner*)(mail=*werner*)(cn=*werner*))(mail=*))'
for attrs '*'
Apr 03 13:50:28 sogod [23413]: 62.153.19.71 "REPORT
/SOGo/dav/christian/Contacts/directory/ HTTP/1.1" 207 916/782 0.079 - - 56K
ldapsearch -x -h ad1.mydom.local -D "CN=sogo,CN=users,DC=mydom,DC=local" -W -b
"OU=Mitarbeiter,dc=mydom,dc=local"
'(&(|(sn=*werner*)(displayname=*werner*)(telephonenumber=*werner*)(mail=*werner*)(cn=*werner*))(mail=*))‘
...
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
Hope you have an idea what is going wrong.
When you need some more information, logs, tcpdump … let me know. I can’t see
any differences between successful and not successful search, so I decide to
not add all that overhead informations.
Happy easter
regards Chris
--
[email protected]
https://inverse.ca/sogo/lists