Results 1 to 4 of 4

Thread: LDAP Replication

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    London, ON
    Posts
    255
    Rep Power
    10

    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

  2. #2
    Join Date
    Nov 2005
    Location
    London, ON
    Posts
    255
    Rep Power
    10

    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.

  3. #3
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    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" | ...

  4. #4
    Join Date
    Nov 2005
    Location
    London, ON
    Posts
    255
    Rep Power
    10

    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.

Similar Threads

  1. LDAP Replication Experiences
    By technikolor in forum Administrators
    Replies: 4
    Last Post: 11-12-2008, 12:52 AM
  2. Something's wrong with the LDAP replication Wiki
    By fajarpri in forum Installation
    Replies: 12
    Last Post: 07-29-2007, 05:59 PM
  3. 3 testing: LDAP: 389 Failed when restore zimbra
    By victorLeong in forum Administrators
    Replies: 15
    Last Post: 05-24-2007, 07:45 AM
  4. Replies: 4
    Last Post: 11-15-2006, 12:16 PM
  5. Replies: 7
    Last Post: 05-20-2006, 06:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •