Re: [SOGo] Addressbook via LDAP using OpenLDAPs dynamic config backend
This would be resolve in the next release. Louis 2010/10/27 Dennis Petschull d.petsch...@two4.it Hi, I just found this bug report: http://www.sogo.nu/bugs/view.php?id=905 Could my problems be related to this bug maybe? Cheers, Dennis Am Samstag 16 Oktober 2010 18:49:55 schrieb Dennis Petschull: Hey Ketzal, I'm still not sure what you really mean. Anyhow, I've played around with socat, to pipe the socket from the sogo server to the ldap server. On the ldap server I use this command: socat UNIX-LISTEN:/var/run/sogo/sogo-sockd.sock EXEC:'ssh s...@sogoserver socat STDIO UNIX-CONNECT:/var/run/sogo/sogo-sockd.sock' This works (I guess). Then I create an ldap addressbook in Thunderbird with these settings: Server: ldapserver-IP Base-DN: cn=personal,ou=people,dc=two4.it Port: 389 Bind-DN: The Bind-DN of my account,dc=two4,dc=it In the LDAP-Database I have: databasesock suffix ou=people,dc=two4.it socketpath /var/run/sogo/sogo-sockd.sock extensions binddn When I enter a dot in the search field of the TB addressbook, it will return 0 results. The socat command gets killed with no error (so I guess it worked) and on the sogo server I see this: s...@sogo:/usr/sbin$ ./sogo-slapd-sockd 0x0x8c80b48[SOGoSockD] listening on /var/run/sogo/sogo-sockd.sock 0x0x8d43a80[SOGoStartupLogger] Using obsolete 'WOApplicationRedirectURL' user default. 0x0x8d43a80[SOGoStartupLogger] Please configure the use of the x-webobjects-XXX headers with your webserver (see sample files). 0x0x8cb9738[SOGoCache] Cache cleanup interval set every 300.00 seconds 0x0x8cb9738[SOGoCache] Using host(s) 'localhost' as server(s) So why do I get 0 results, although I have several addresses in my personal addressbook of this account? Btw, I'm using SOGo 1.3.2. Cheers, Dennis Am Donnerstag 14 Oktober 2010 09:56:36 schrieb ketzal devims: The way I do it: 2 solutions: - 1 server with everything inside - 2 servers: one with Apache and Sogo, the second one with Slapd, LDAP database, MySQL. Louis 2010/10/13 Dennis Petschull d.petsch...@two4.it What do you mean by that? Can you explain a little further, please? Cheers, Dennis On Wednesday 13 October 2010 10:21:53 ketzal devims wrote: Don't put the Slapd on the same machine than the Sogo server, but slapd and LDAP database should be on the same server. Louis 2010/10/12 Dennis Petschull d.petsch...@two4.it Hi Louis, I just tried it out. As I expected, this does not work, as the slapd is looking for the socket on the ldap server, whereas the actual socket is of course on the sogo server. Here is the error message from the syslog on the ldap server: slapd[2631]: socket connect(/var/run/sogo/sogo-sockd.sock) failed So, is there anybody who did this already with ldap and sogo being on different hosts?? Cheers, Dennis On Monday 11 October 2010 11:16:15 ketzal devims wrote: Hi Dennis, For my configuration, I did it in a Co-localized server, but I'm pretty sure you can do it with two different servers. (If you're not sure, try it :)) Regs Louis 2010/10/11 Dennis Petschull d.petsch...@two4.it Hi Valentin, In general you're right. But are you sure that this also holds true for this special use-case of the sogo-slapd-sockd? As I understand, the users ldap query triggers the ldap server to ask the socket, specified in the ldap-directory. But the socket address is only present on the sogo server (where the sogo-slapd-sockd command was executed), not on the ldap server itself. Or am I missing something here?? Cheers, Dennis On Monday 11 October 2010 09:20:43 Valentin Bud wrote: Hello Dennis, On Sun, Oct 10, 2010 at 10:15 PM, Dennis Petschull d.petsch...@two4.it wrote: Hi Louis, thanks for your help. I think I can manage it now... But now that I'm setting it all up, a question came to my mind: For all of this to work out, the LDAP server and the SOGo server need reside on the same host, right? Or is it also possible when LDAP and SOGo servers are on different hosts?? Doesn't matter if SOGo and LDAP are on the same server or not. You must point SOGo to the LDAP server either using DNS name or IP address. a great
Re: [SOGo] Addressbook via LDAP using OpenLDAPs dynamic config backend
Hi, I just found this bug report: http://www.sogo.nu/bugs/view.php?id=905 Could my problems be related to this bug maybe? Cheers, Dennis Am Samstag 16 Oktober 2010 18:49:55 schrieb Dennis Petschull: Hey Ketzal, I'm still not sure what you really mean. Anyhow, I've played around with socat, to pipe the socket from the sogo server to the ldap server. On the ldap server I use this command: socat UNIX-LISTEN:/var/run/sogo/sogo-sockd.sock EXEC:'ssh s...@sogoserver socat STDIO UNIX-CONNECT:/var/run/sogo/sogo-sockd.sock' This works (I guess). Then I create an ldap addressbook in Thunderbird with these settings: Server: ldapserver-IP Base-DN: cn=personal,ou=people,dc=two4.it Port: 389 Bind-DN: The Bind-DN of my account,dc=two4,dc=it In the LDAP-Database I have: databasesock suffix ou=people,dc=two4.it socketpath /var/run/sogo/sogo-sockd.sock extensions binddn When I enter a dot in the search field of the TB addressbook, it will return 0 results. The socat command gets killed with no error (so I guess it worked) and on the sogo server I see this: s...@sogo:/usr/sbin$ ./sogo-slapd-sockd 0x0x8c80b48[SOGoSockD] listening on /var/run/sogo/sogo-sockd.sock 0x0x8d43a80[SOGoStartupLogger] Using obsolete 'WOApplicationRedirectURL' user default. 0x0x8d43a80[SOGoStartupLogger] Please configure the use of the x-webobjects-XXX headers with your webserver (see sample files). 0x0x8cb9738[SOGoCache] Cache cleanup interval set every 300.00 seconds 0x0x8cb9738[SOGoCache] Using host(s) 'localhost' as server(s) So why do I get 0 results, although I have several addresses in my personal addressbook of this account? Btw, I'm using SOGo 1.3.2. Cheers, Dennis Am Donnerstag 14 Oktober 2010 09:56:36 schrieb ketzal devims: The way I do it: 2 solutions: - 1 server with everything inside - 2 servers: one with Apache and Sogo, the second one with Slapd, LDAP database, MySQL. Louis 2010/10/13 Dennis Petschull d.petsch...@two4.it What do you mean by that? Can you explain a little further, please? Cheers, Dennis On Wednesday 13 October 2010 10:21:53 ketzal devims wrote: Don't put the Slapd on the same machine than the Sogo server, but slapd and LDAP database should be on the same server. Louis 2010/10/12 Dennis Petschull d.petsch...@two4.it Hi Louis, I just tried it out. As I expected, this does not work, as the slapd is looking for the socket on the ldap server, whereas the actual socket is of course on the sogo server. Here is the error message from the syslog on the ldap server: slapd[2631]: socket connect(/var/run/sogo/sogo-sockd.sock) failed So, is there anybody who did this already with ldap and sogo being on different hosts?? Cheers, Dennis On Monday 11 October 2010 11:16:15 ketzal devims wrote: Hi Dennis, For my configuration, I did it in a Co-localized server, but I'm pretty sure you can do it with two different servers. (If you're not sure, try it :)) Regs Louis 2010/10/11 Dennis Petschull d.petsch...@two4.it Hi Valentin, In general you're right. But are you sure that this also holds true for this special use-case of the sogo-slapd-sockd? As I understand, the users ldap query triggers the ldap server to ask the socket, specified in the ldap-directory. But the socket address is only present on the sogo server (where the sogo-slapd-sockd command was executed), not on the ldap server itself. Or am I missing something here?? Cheers, Dennis On Monday 11 October 2010 09:20:43 Valentin Bud wrote: Hello Dennis, On Sun, Oct 10, 2010 at 10:15 PM, Dennis Petschull d.petsch...@two4.it wrote: Hi Louis, thanks for your help. I think I can manage it now... But now that I'm setting it all up, a question came to my mind: For all of this to work out, the LDAP server and the SOGo server need reside on the same host, right? Or is it also possible when LDAP and SOGo servers are on different hosts?? Doesn't matter if SOGo and LDAP are on the same server or not. You must point SOGo to the LDAP server either using DNS name or IP address. a great day, v -- users@sogo.nu https://inverse.ca/sogo/lists -- users@sogo.nu https://inverse.ca/sogo/lists -- users@sogo.nu https://inverse.ca/sogo/lists -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Addressbook via LDAP using OpenLDAPs dynamic config backend
The way I do it: 2 solutions: - 1 server with everything inside - 2 servers: one with Apache and Sogo, the second one with Slapd, LDAP database, MySQL. Louis 2010/10/13 Dennis Petschull d.petsch...@two4.it What do you mean by that? Can you explain a little further, please? Cheers, Dennis On Wednesday 13 October 2010 10:21:53 ketzal devims wrote: Don't put the Slapd on the same machine than the Sogo server, but slapd and LDAP database should be on the same server. Louis 2010/10/12 Dennis Petschull d.petsch...@two4.it Hi Louis, I just tried it out. As I expected, this does not work, as the slapd is looking for the socket on the ldap server, whereas the actual socket is of course on the sogo server. Here is the error message from the syslog on the ldap server: slapd[2631]: socket connect(/var/run/sogo/sogo-sockd.sock) failed So, is there anybody who did this already with ldap and sogo being on different hosts?? Cheers, Dennis On Monday 11 October 2010 11:16:15 ketzal devims wrote: Hi Dennis, For my configuration, I did it in a Co-localized server, but I'm pretty sure you can do it with two different servers. (If you're not sure, try it :)) Regs Louis 2010/10/11 Dennis Petschull d.petsch...@two4.it Hi Valentin, In general you're right. But are you sure that this also holds true for this special use-case of the sogo-slapd-sockd? As I understand, the users ldap query triggers the ldap server to ask the socket, specified in the ldap-directory. But the socket address is only present on the sogo server (where the sogo-slapd-sockd command was executed), not on the ldap server itself. Or am I missing something here?? Cheers, Dennis On Monday 11 October 2010 09:20:43 Valentin Bud wrote: Hello Dennis, On Sun, Oct 10, 2010 at 10:15 PM, Dennis Petschull d.petsch...@two4.it wrote: Hi Louis, thanks for your help. I think I can manage it now... But now that I'm setting it all up, a question came to my mind: For all of this to work out, the LDAP server and the SOGo server need reside on the same host, right? Or is it also possible when LDAP and SOGo servers are on different hosts?? Doesn't matter if SOGo and LDAP are on the same server or not. You must point SOGo to the LDAP server either using DNS name or IP address. a great day, v -- users@sogo.nu https://inverse.ca/sogo/lists -- users@sogo.nu https://inverse.ca/sogo/lists -- users@sogo.nu https://inverse.ca/sogo/lists -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Addressbook via LDAP using OpenLDAPs dynamic config backend
Don't put the Slapd on the same machine than the Sogo server, but slapd and LDAP database should be on the same server. Louis 2010/10/12 Dennis Petschull d.petsch...@two4.it Hi Louis, I just tried it out. As I expected, this does not work, as the slapd is looking for the socket on the ldap server, whereas the actual socket is of course on the sogo server. Here is the error message from the syslog on the ldap server: slapd[2631]: socket connect(/var/run/sogo/sogo-sockd.sock) failed So, is there anybody who did this already with ldap and sogo being on different hosts?? Cheers, Dennis On Monday 11 October 2010 11:16:15 ketzal devims wrote: Hi Dennis, For my configuration, I did it in a Co-localized server, but I'm pretty sure you can do it with two different servers. (If you're not sure, try it :)) Regs Louis 2010/10/11 Dennis Petschull d.petsch...@two4.it Hi Valentin, In general you're right. But are you sure that this also holds true for this special use-case of the sogo-slapd-sockd? As I understand, the users ldap query triggers the ldap server to ask the socket, specified in the ldap-directory. But the socket address is only present on the sogo server (where the sogo-slapd-sockd command was executed), not on the ldap server itself. Or am I missing something here?? Cheers, Dennis On Monday 11 October 2010 09:20:43 Valentin Bud wrote: Hello Dennis, On Sun, Oct 10, 2010 at 10:15 PM, Dennis Petschull d.petsch...@two4.it wrote: Hi Louis, thanks for your help. I think I can manage it now... But now that I'm setting it all up, a question came to my mind: For all of this to work out, the LDAP server and the SOGo server need reside on the same host, right? Or is it also possible when LDAP and SOGo servers are on different hosts?? Doesn't matter if SOGo and LDAP are on the same server or not. You must point SOGo to the LDAP server either using DNS name or IP address. a great day, v -- users@sogo.nu https://inverse.ca/sogo/lists -- users@sogo.nu https://inverse.ca/sogo/lists -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Addressbook via LDAP using OpenLDAPs dynamic config backend
Hi Louis, I just tried it out. As I expected, this does not work, as the slapd is looking for the socket on the ldap server, whereas the actual socket is of course on the sogo server. Here is the error message from the syslog on the ldap server: slapd[2631]: socket connect(/var/run/sogo/sogo-sockd.sock) failed So, is there anybody who did this already with ldap and sogo being on different hosts?? Cheers, Dennis On Monday 11 October 2010 11:16:15 ketzal devims wrote: Hi Dennis, For my configuration, I did it in a Co-localized server, but I'm pretty sure you can do it with two different servers. (If you're not sure, try it :)) Regs Louis 2010/10/11 Dennis Petschull d.petsch...@two4.it Hi Valentin, In general you're right. But are you sure that this also holds true for this special use-case of the sogo-slapd-sockd? As I understand, the users ldap query triggers the ldap server to ask the socket, specified in the ldap-directory. But the socket address is only present on the sogo server (where the sogo-slapd-sockd command was executed), not on the ldap server itself. Or am I missing something here?? Cheers, Dennis On Monday 11 October 2010 09:20:43 Valentin Bud wrote: Hello Dennis, On Sun, Oct 10, 2010 at 10:15 PM, Dennis Petschull d.petsch...@two4.it wrote: Hi Louis, thanks for your help. I think I can manage it now... But now that I'm setting it all up, a question came to my mind: For all of this to work out, the LDAP server and the SOGo server need reside on the same host, right? Or is it also possible when LDAP and SOGo servers are on different hosts?? Doesn't matter if SOGo and LDAP are on the same server or not. You must point SOGo to the LDAP server either using DNS name or IP address. a great day, v -- users@sogo.nu https://inverse.ca/sogo/lists -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Addressbook via LDAP using OpenLDAPs dynamic config backend
Hi Valentin, In general you're right. But are you sure that this also holds true for this special use-case of the sogo-slapd-sockd? As I understand, the users ldap query triggers the ldap server to ask the socket, specified in the ldap-directory. But the socket address is only present on the sogo server (where the sogo-slapd-sockd command was executed), not on the ldap server itself. Or am I missing something here?? Cheers, Dennis On Monday 11 October 2010 09:20:43 Valentin Bud wrote: Hello Dennis, On Sun, Oct 10, 2010 at 10:15 PM, Dennis Petschull d.petsch...@two4.itwrote: Hi Louis, thanks for your help. I think I can manage it now... But now that I'm setting it all up, a question came to my mind: For all of this to work out, the LDAP server and the SOGo server need reside on the same host, right? Or is it also possible when LDAP and SOGo servers are on different hosts?? Doesn't matter if SOGo and LDAP are on the same server or not. You must point SOGo to the LDAP server either using DNS name or IP address. a great day, v -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Addressbook via LDAP using OpenLDAPs dynamic config backend
Hi Louis, thanks for your help. I think I can manage it now... But now that I'm setting it all up, a question came to my mind: For all of this to work out, the LDAP server and the SOGo server need reside on the same host, right? Or is it also possible when LDAP and SOGo servers are on different hosts?? Cheers, Dennis On Sunday 03 October 2010 16:59:18 ketzal devims wrote: Hi Dennis, This dynamic configuration for openLDAP is used since a long time already. It was really difficult also for me to understand it at the beginning, but then, you get used to it, and it's not that complex. You can find attached a doc I made when I setup Sogo on my server, this is the part concerning LDAP. Regs Louis 2010/10/1 Mohit Chawla mohit.chawla.bin...@gmail.com Is it a priority to use the dynamic backend ? I personally find it disrupting the way Ubuntu Debian are moving to the slapd.d style. Maybe it holds some (probably important) advantages, but at the same time the static slapd.conf method isn't particularly disadvantageous either. Of course, you can still use slapd.conf using the -f argument to slapd, that's how I do it on new installations. Anyway, the Ubuntu wiki is a good source of information, that's probably where you should be looking for your answer regarding the configuration adding records. On Fri, Oct 1, 2010 at 8:47 PM, Dennis Petschull d.petsch...@two4.itwrote: Hi, I've read Wolfgangs email concerning sogo-slapd-sockd here: http://mail.opengroupware.org/pipermail/sogo/2010-March/005881.html The instructions are clear to me, if I would be using the old static slapd.conf configuration method of OpenLDAP. But now that I'm using OpenLDAP version 2.4.15-1ubuntu3.1 with the new dynamic config backend, I'm not quite sure how to accomplish this. Does anybody have a working ldif file to get this working with the slapadd command? Thanks! Cheers, Dennis -- users@sogo.nu https://inverse.ca/sogo/lists -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Addressbook via LDAP using OpenLDAPs dynamic config backend
Hi Dennis, This dynamic configuration for openLDAP is used since a long time already. It was really difficult also for me to understand it at the beginning, but then, you get used to it, and it's not that complex. You can find attached a doc I made when I setup Sogo on my server, this is the part concerning LDAP. Regs Louis 2010/10/1 Mohit Chawla mohit.chawla.bin...@gmail.com Is it a priority to use the dynamic backend ? I personally find it disrupting the way Ubuntu Debian are moving to the slapd.d style. Maybe it holds some (probably important) advantages, but at the same time the static slapd.conf method isn't particularly disadvantageous either. Of course, you can still use slapd.conf using the -f argument to slapd, that's how I do it on new installations. Anyway, the Ubuntu wiki is a good source of information, that's probably where you should be looking for your answer regarding the configuration adding records. On Fri, Oct 1, 2010 at 8:47 PM, Dennis Petschull d.petsch...@two4.itwrote: Hi, I've read Wolfgangs email concerning sogo-slapd-sockd here: http://mail.opengroupware.org/pipermail/sogo/2010-March/005881.html The instructions are clear to me, if I would be using the old static slapd.conf configuration method of OpenLDAP. But now that I'm using OpenLDAP version 2.4.15-1ubuntu3.1 with the new dynamic config backend, I'm not quite sure how to accomplish this. Does anybody have a working ldif file to get this working with the slapadd command? Thanks! Cheers, Dennis -- users@sogo.nu https://inverse.ca/sogo/lists LDAP Config for SOGo.pdf Description: Adobe PDF document
[SOGo] Addressbook via LDAP using OpenLDAPs dynamic config backend
Hi, I've read Wolfgangs email concerning sogo-slapd-sockd here: http://mail.opengroupware.org/pipermail/sogo/2010-March/005881.html The instructions are clear to me, if I would be using the old static slapd.conf configuration method of OpenLDAP. But now that I'm using OpenLDAP version 2.4.15-1ubuntu3.1 with the new dynamic config backend, I'm not quite sure how to accomplish this. Does anybody have a working ldif file to get this working with the slapadd command? Thanks! Cheers, Dennis -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Addressbook via LDAP using OpenLDAPs dynamic config backend
Is it a priority to use the dynamic backend ? I personally find it disrupting the way Ubuntu Debian are moving to the slapd.d style. Maybe it holds some (probably important) advantages, but at the same time the static slapd.conf method isn't particularly disadvantageous either. Of course, you can still use slapd.conf using the -f argument to slapd, that's how I do it on new installations. Anyway, the Ubuntu wiki is a good source of information, that's probably where you should be looking for your answer regarding the configuration adding records. On Fri, Oct 1, 2010 at 8:47 PM, Dennis Petschull d.petsch...@two4.itwrote: Hi, I've read Wolfgangs email concerning sogo-slapd-sockd here: http://mail.opengroupware.org/pipermail/sogo/2010-March/005881.html The instructions are clear to me, if I would be using the old static slapd.conf configuration method of OpenLDAP. But now that I'm using OpenLDAP version 2.4.15-1ubuntu3.1 with the new dynamic config backend, I'm not quite sure how to accomplish this. Does anybody have a working ldif file to get this working with the slapadd command? Thanks! Cheers, Dennis -- users@sogo.nu https://inverse.ca/sogo/lists -- users@sogo.nu https://inverse.ca/sogo/lists