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 Display Modes
  #1 (permalink)  
Old 06-12-2009, 04:15 AM
Member
 
Posts: 11
Default LDAP replication problem

Hello all,

I got trouble to make ldap replication work on my system.

I got a master ZCS server running v 5.0.13 hosted outside of my LAN (server.mydomain.com). It works as intented, with more than 40 emails account daily used.

I'd like to set up only LDAP replication on a slave server inside my lan (slave.mylan.mydomain.com).
I used this howto :

Configuring LDAP Replication

When I test it, I got this :

# /opt/zimbra/bin/zmprov -l gaa
wiki@mydomain.com
spam.0mmaekfx@mydomain.com
ham.4nb79bvp@mydomain.com

# /opt/zimbra/bin/zmprov -l gad
mydomain.com

I don't see accounts that are visible my doing the same command on my Master Server.

I saw the older howto (for ZCS 4.0) and I tried :

./zmsshkeygen
Generating public/private dsa key pair.
Your identification has been saved in /opt/zimbra/.ssh/zimbra_identity.
Your public key has been saved in /opt/zimbra/.ssh/zimbra_identity.pub.
The key fingerprint is:
XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
slave.mylan.mydomain.com
ERROR: account.NO_SUCH_SERVER (no such server: slave.mylan.mydomain.com)

Do you know how to fix this error please ?

Regards.
Reply With Quote
  #2 (permalink)  
Old 06-12-2009, 04:57 AM
Elite Member
 
Posts: 411
Default

what does zimbra.log says ? Is your firewall blocking traffic on secure ldap 636 or 389 ? You must be getting errors in zimbra.log then ? did you check slapd.conf file for replication settings ?
Reply With Quote
  #3 (permalink)  
Old 06-12-2009, 06:25 AM
Member
 
Posts: 11
Default

Master ldap is accessible :
# telnet server.mydomain.com 389
Trying 99.99.99.99...
Connected to server.mydomain.com.
Escape character is '^]'.
On zimbra.log I got :

Jun 12 16:01:39 slave slapd[6797]: syncrepl_entry: rid 100 LDAP_RES_SEARCH_ENTRY(LDAP_SYNC_ADD)
Jun 12 16:01:39 slave slapd[6797]: syncrepl_entry: rid 100 be_search (0)
Jun 12 16:01:39 slave slapd[6797]: syncrepl_entry: rid 100 ou=machines,dc=mydomain,dc=com
Jun 12 16:01:39 slave slapd[6797]: syncrepl_message_to_entry: rid 100 mods check (sambaDomainName: attribute type undefined)
Jun 12 16:01:39 slave slapd[6797]: do_syncrepl: rid 100 retrying
Jun 12 16:02:03 slave zimbramon[17378]: 17378:info: 2009-06-12 16:02:01, STATUS: : Unable: to determine enabled services. Cache is out of date or doesn't
exist.

I checked the slapd.conf on master (seems good as i got the lines mentionned).

on slave I got the lines :

updateref ldap://server.mydomain.com:389
overlay syncprov
thanks for your answer.

edit : I checked the install log.
Fri Jun 12 12:50:36 2009 *** Running as zimbra user: /opt/zimbra/bin/zmsshkeygen
Generating public/private dsa key pair.
Your identification has been saved in /opt/zimbra/.ssh/zimbra_identity.
Your public key has been saved in /opt/zimbra/.ssh/zimbra_identity.pub.
The key fingerprint is:
XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX slave.mylan.mydomain.com
ERROR: account.NO_SUCH_SERVER (no such server: slave.mylan.mydomain.com)

It looks like my main issue is that error.

Last edited by breverend : 06-12-2009 at 07:21 AM.
Reply With Quote
  #4 (permalink)  
Old 06-15-2009, 01:24 AM
Member
 
Posts: 11
Default

Anyone knows about that?
Reply With Quote
  #5 (permalink)  
Old 06-15-2009, 05:38 PM
Zimbra Employee
 
Posts: 403
Default

It looks like your replica does not load the same schema files as your master, thus replication will never occur to it. Fix what schema are allowed.
Quote:
Jun 12 16:01:39 slave slapd[6797]: syncrepl_message_to_entry: rid 100 mods check (sambaDomainName: attribute type undefined)
You can clearly see the samba schema is in place on your master.
__________________
Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra :: the leader in open source messaging and collaboration
Reply With Quote
  #6 (permalink)  
Old 06-17-2009, 03:23 AM
Member
 
Posts: 11
Default

Master is working perfectly, as it is our prod server.
Do you have a documentation to "Fix what schema are allowed" please ?

Thanks for your answer.
Reply With Quote
  #7 (permalink)  
Old 06-22-2009, 04:09 AM
Member
 
Posts: 11
Default

Ok, I just copied the zimbra/openldap/etc/openldap/schema/zimbra.schema from my master to my slave.

Schema should be the same. But I still get same errors as above, plus these :

Jun 22 12:06:59 slave zimbramon[28174]: 28174:info: zmmtaconfig: Skipping Configuration for server slave.mylan.mydomain.com update.
Jun 22 12:06:59 slave zimbramon[28174]: 28174:info: zmmtaconfig: gs:slave.mylan.mydomain.com ERROR: account.NO_SUCH_SERVER (no such server: slave.mylan.mydomain.com)
Jun 22 12:06:59 slave zimbramon[28174]: 28174:info: zmmtaconfig: Sleeping...Key lookup failed.

Still that NO_SUCH_SERVER error...

Anyone konw why I get that ?
Reply With Quote
  #8 (permalink)  
Old 06-22-2009, 02:12 PM
Zimbra Employee
 
Posts: 403
Default

Looks like the server was never created. You need to run zmprov and create the server in your master's db. This is a known issue that will be resolved in 6.0.
__________________
Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra :: the leader in open source messaging and collaboration
Reply With Quote
  #9 (permalink)  
Old 06-23-2009, 02:11 AM
Member
 
Posts: 11
Default

On master :

zimbra@master:~$ zmprov gas
master.mydomain.com
slave.mylan.mydomain.com

Looks like server was already in master's db.
Reply With Quote
  #10 (permalink)  
Old 06-24-2009, 01:43 AM
Member
 
Posts: 11
Default

Anyone knows how to fix NO_SUCH_SERVER error ?
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com