Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-13-2010, 04:29 AM
Intermediate Member
 
Posts: 22
Unhappy Zimbra to Zimbra GAL

Hi,

I have two zimbra servers both 6.0.4, and new task has been given to get one global list of contacts. I tried connecting one zimbra server to another through GAL Configuration Wizard, using following settings:

GAL: External
Results: 100
Name of gal: my.post.com
Server type: LDAP
ldap://my.post.com:389

ldap filter: (|(cn = %s*)(sn=%s*)(gn=%s*)(mail=%s*))
auto filter: (|(cn = %s*)(sn=%s*)(gn=%s*)(mail=%s*))
base: dc=my, dc=post, dc=com

DN:
DNuser:my_admin_user
DNpass:my_admin_pass

everything next is set by default, and i get error: check.CONNECION_REFUSED
[Root exception is java.net.ConnectException: Connection refused]

Both Zimbra's installed on Ubuntu 8.0.4

I did manage to get it work with AD. I was getting returned with search strings i requested. But no success with LDAP.

Have read all of the gal topics in forums, but still couldnt get it to work.

Please help
Reply With Quote
  #2 (permalink)  
Old 01-14-2010, 04:57 AM
Intermediate Member
 
Posts: 22
Default

Up, please help
Reply With Quote
  #3 (permalink)  
Old 01-14-2010, 05:05 AM
Intermediate Member
 
Posts: 16
Default

Looks to me that you might have a firewall ( physical or iptables ), or either you don't use plain ldap buy maibe ldaps.

you can check the connectivity between host with telnet <ip> <tcp_port>

I hope this will lead you further in finding the root cause...

Best regards,
Alex R.
Reply With Quote
  #4 (permalink)  
Old 01-18-2010, 12:43 AM
Intermediate Member
 
Posts: 22
Default

Yes i tried connecting through telnet it does, work with 389 port, but it just black screen,when i try to type in commands, it kinda disconnects me. Is there a way to check LDAP from console? Like is it working at all, if it does it suppose to return something.
Reply With Quote
  #5 (permalink)  
Old 01-19-2010, 08:26 AM
Intermediate Member
 
Posts: 16
Default

You can use ldapsearch to check the response of the remote server
This example below will return you nothing, since in zimbra 6 anonymous bind is not allowed anymore, but at least you can check the connectivity and somre response....

Code:
ldapsearch -t -x -H ldap://<remote_host>:389 -b "" -L (&(objectClass=zimbraAccount))"
Btw... Did you check the connectivity from the machine were you tried to setup the GAL -> the machine where the GAL is ? Or opposite...

Maybe you can describe a bit more how is the connectivity between your hosts...
Code:
serverA --> switchA --> firewallA --> routerA --> switchB --> serverB
I still suspect a connectivity issue...
On the remote host you can check the connections with "netstat -natp"
see if your host from where you try to connect using telnet <host> 389
shows up in that list....

Best regards,
Alex R.
Reply With Quote
  #6 (permalink)  
Old 01-21-2010, 06:10 AM
Special Member
 
Posts: 160
Default

Quote:
Originally Posted by winampus View Post
You can use ldapsearch to check the response of the remote server
This example below will return you nothing, since in zimbra 6 anonymous bind is not allowed anymore, but at least you can check the connectivity and somre response....

Code:
ldapsearch -t -x -H ldap://<remote_host>:389 -b "" -L (&(objectClass=zimbraAccount))"
Btw... Did you check the connectivity from the machine were you tried to setup the GAL -> the machine where the GAL is ? Or opposite...

Maybe you can describe a bit more how is the connectivity between your hosts...
Code:
serverA --> switchA --> firewallA --> routerA --> switchB --> serverB
I still suspect a connectivity issue...
On the remote host you can check the connections with "netstat -natp"
see if your host from where you try to connect using telnet <host> 389
shows up in that list....

Best regards,
Alex R.

You dont happen to know what the admin or rootdn for zimbra's openldap is? Whenever I do ldapsearches I get empty results. Im not sure if it allows for anonymous binds or not - and I cant find a slapd.conf to look through. It appears zimbra has obfuscated their openldap install with ldifs for schemas, configuration, and other weirdness.
Reply With Quote
  #7 (permalink)  
Old 01-21-2010, 06:24 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Quote:
Originally Posted by i2ambler View Post
You dont happen to know what the admin or rootdn for zimbra's openldap is? Whenever I do ldapsearches I get empty results. Im not sure if it allows for anonymous binds or not - and I cant find a slapd.conf to look through. It appears zimbra has obfuscated their openldap install with ldifs for schemas, configuration, and other weirdness.
Check the current Release Notes for 'anonymous bind' details.
__________________
Regards


Bill
Reply With Quote
  #8 (permalink)  
Old 01-22-2010, 12:25 AM
Intermediate Member
 
Posts: 16
Default

Quote:
Originally Posted by i2ambler View Post
You dont happen to know what the admin or rootdn for zimbra's openldap is? Whenever I do ldapsearches I get empty results. Im not sure if it allows for anonymous binds or not - and I cant find a slapd.conf to look through. It appears zimbra has obfuscated their openldap install with ldifs for schemas, configuration, and other weirdness.
As you can see in my previous post, I mentioned that anonymous bind is not allowed. I have a bit more custom setup, but for binding I use zmposix.... more or less I have added the zmposix user and use that one for binding...

In your case you can use the "uid=zimbra,cn=admins,cn=zimbra" and the ldap root password for binding...

Best regards,
Alex R.
Reply With Quote
  #9 (permalink)  
Old 01-25-2010, 06:40 AM
Special Member
 
Posts: 160
Default

Quote:
Originally Posted by winampus View Post
As you can see in my previous post, I mentioned that anonymous bind is not allowed. I have a bit more custom setup, but for binding I use zmposix.... more or less I have added the zmposix user and use that one for binding...

In your case you can use the "uid=zimbra,cn=admins,cn=zimbra" and the ldap root password for binding...

Best regards,
Alex R.
Im not sure what 'ldap root password' is needed to bind to this default instance of zimbra. When admining all of my other openldap Ive just used slappaswd to create the crypted password then stuck it into rootpw slapd.conf.. This was on previous openldap versions <2.3
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.