1

Topic: how to use carddav using ldap backend?

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: ubuntu14.04.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):LDAP
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====
How can i use carddav using ldapbackend?

it doesn't work the url at https://mailbox.domain.com/SOGo/dav/maslak@domain.com/

it had worked with mysql backend

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: how to use carddav using ldap backend?

What's your mail client application? Any related log in /var/log/sogo/sogo.log?

3

Re: how to use carddav using ldap backend?

I tried  both roundcube plugin carddav and thunderbird.

when i execute syncronize on the thunderbird mail client.

Jul 07 10:11:18 sogod [27182]: [ERROR] [we-rm] did not find locale for language: Turkish
Jul 07 10:11:18 sogod [27182]: 10.21.28.175 "PROPFIND /SOGo/dav/yavuz.maslak@domain.com/Contacts/vmail_mailbox/ HTTP/1.1" 404 76/175 0.005 - - 0

4

Re: how to use carddav using ldap backend?

yavuz.maslak wrote:

Jul 07 10:11:18 sogod [27182]: 10.21.28.175 "PROPFIND /SOGo/dav/yavuz.maslak@domain.com/Contacts/vmail_mailbox/ HTTP/1.1" 404 76/175 0.005 - - 0

It's trying to access another (wrong) url. Could you please show us your Thunderbird setting?

5

Re: how to use carddav using ldap backend?

ZhangHuangbin wrote:
yavuz.maslak wrote:

Jul 07 10:11:18 sogod [27182]: 10.21.28.175 "PROPFIND /SOGo/dav/yavuz.maslak@domain.com/Contacts/vmail_mailbox/ HTTP/1.1" 404 76/175 0.005 - - 0

It's trying to access another (wrong) url. Could you please show us your Thunderbird setting?

Post's attachments

Screen Shot 2015-07-07 at 17.42.19.png
Screen Shot 2015-07-07 at 17.42.19.png 54.75 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

6

Re: how to use carddav using ldap backend?

Does it work with below URL?

https://mailbox.domain.com/SOGo/dav/maslak@domain.com/Contacts/personal
https://mailbox.domain.com/SOGo/dav/maslak@domain.com/

According to SOGo document, first one should work.

7

Re: how to use carddav using ldap backend?

Tested with SOGo-2.3.0, this URL works for me:

https://mailbox.domain.com/SOGo/dav/maslak@domain.com/Contacts/personal

I can create new contact, sync with server, etc.

BTW, i use Thunderbird 38.0.1, it has Lightning integrated by default, then i download "SOGo Connector Thunderbird extension" (for Mozilla Thunderbird 31) from SOGo web site, add 'Remote Address Book'.
http://www.sogo.nu/english/downloads/frontends.html

8

Re: how to use carddav using ldap backend?

Yes the url works. but I had used vmail_mailbox in order to see global address list with mysql backend and it had worked.

with ldap backend, if i add ldap directory in thunderbird. i can not see global address book.

whereas i saw using mysqlbackend.

9

Re: how to use carddav using ldap backend?

yavuz.maslak wrote:

with ldap backend, if i add ldap directory in thunderbird. i can not see global address book.

Did you add a LDAP directory, or a Remote Address Book? They're completely different.

10

Re: how to use carddav using ldap backend?

ZhangHuangbin wrote:
yavuz.maslak wrote:

with ldap backend, if i add ldap directory in thunderbird. i can not see global address book.

Did you add a LDAP directory, or a Remote Address Book? They're completely different.

I added a ldap directory . If i enable ldap directory i can search in the online global address book.
But if i use a remote address book, i can see personal address book but i can not see global address book.
That's to say, ldap directory works well no problem.
But in mysql backend using carddav ( with remote address book) i can see global address book. But now i only see personal address book.

11

Re: how to use carddav using ldap backend?

I will check this issue later, not sure it works as designed or a bug in SOGo.