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

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 02-27-2006, 01:14 PM
Elite Member & Volunteer
 
Posts: 255
Default LDAP Replication

I'm trying to setup LDAP replication, I have followed the steps given to me. But I'm stuck at one point I was advised before beginning that this has not been fully tested. When I run zmldapenablereplica it starts out very nice but when it starts to do the actual replication it executes some unknown command. At first it looked like it was trying to execute the slapcat command, which does not exist so I thought I'd edit the script and change slapcat to zmslapcat. I'm still having the same results so I'm going to change it back. Here is the full output of my zmldapenablereplica command:

Code:
Looking for LDAP installation...succeeded
Verifying ldap on ldap://titan.xxx.on.ca:389...succeeded
Creating LDAP config in /opt/zimbra/conf/slapd.conf...succeeded
Setting up replication ldap user...succeeded
Enabling LDAP service on jumbo.xxx.on.ca...succeeded
Shutting down Zimbra Services on jumbo.xxx.on.ca...done
Shutting down Zimbra Services on titan.xxx.on.ca...done
Replicating ldap data from titan.xxx.on.ca...Copying data...

-bash: line 1: HOST:titan.xxx.on.ca: command not found
FAILED
Ldap replication failed - exiting
Thanks for the help
Reply With Quote
  #2 (permalink)  
Old 02-27-2006, 01:25 PM
Elite Member & Volunteer
 
Posts: 255
Default

I think I may have found part of the problem.

Line 165 of zmldapenablereplica:
Code:
echo HOST:${ldap_master_host} slapcat | ${zimbra_home}/bin/zmrc ${ldap_master_host} | \
        grep -v STARTCMD | grep -v ENDCMD > /tmp/repl.ldif
I think the problem has to do with HOST:${ldap_master_host} that is getting treated as a command line executable and choking. And I'm 99% sure that slapcat should be zmslapcat. I executed these command manually and they seemed to work the only problem was zmslapcat didn't seem to produce the correct output.
Reply With Quote
  #3 (permalink)  
Old 02-27-2006, 02:23 PM
Zimbra Employee
 
Posts: 2,073
Default

You don't want zmslapcat, you want slapcat.

You might try quoting the HOST:${ldap_master_host} slapcat args:

echo "HOST:${ldap_master_host} slapcat" | ...
Reply With Quote
  #4 (permalink)  
Old 02-28-2006, 07:17 AM
Elite Member & Volunteer
 
Posts: 255
Default

I did the quoting like you requested, but unfortunately there was no change in the outcome:
Code:
-bash: line 1: HOST:titan.xxx.on.ca: command not found
FAILED
Ldap replication failed - exiting
Correct me if I'm wrong, but the way I understand it is the script is trying to execute the following command on the LDAP master
Code:
HOST:titan.xxx.on.ca
This confuses me, is it supposed to be like this? I apologize for my ignorance, but I just don't understand.
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




 

Search Engine Optimization by vBSEO 3.1.0