Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-06-2006, 05:11 AM   #1
Registered: Jan 2006
Location: taiwan
Posts: 156

Rep: Reputation: 30
Openldap replication

I am trying to follow the admin guide to configure the openldap replication , I run the /usr/bin/slurpd , then it pop the message " Error: Malformed "replica" line in slapd config file, line 72 , Warning: failed to add replica " - ignoring replica " , I sure the server is reachable , can anyone advise what is possible reason for the error ? thx

my slapd.conf

replogfile /var/lib/ldap/master-slapd.replog
database ldbm
suffix "dc=resues1,dc=com"
rootdn "cn=Manager,dc=resues1,dc=com"
rootpw secret
rootpw {SSHA}UKfX5uzttkfXd9nMEFWl3l9BfdafOjsV8TQKv
directory /var/lib/ldap/
replica host=resues2:389
index objectClass,uid,uidNumber,gidNumber,memberUid eq
index cn,mail,surname,givenname eq
bindmethod=simple credentials=password
Old 08-07-2006, 04:53 AM   #2
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
From man slapd.conf..
replica          uri=ldap[s]://<hostname>[:port]|host=<hostname>[:port]
              [starttls=yes|critical]          [suffix=<suffix>         [...]]
              bindmethod=simple|sasl [binddn=<simple DN>] [credentials=<simple
              password>]    [saslmech=<SASL   mech>]   [secprops=<properties>]
              [realm=<realm>]          [authcId=<authentication           ID>]
              [authzId=<authorization ID>] [attr[!]=<attr list>]
              Specify  a  replication  site  for  this database.  Refer to the
              "OpenLDAP Administrator's Guide"  for  detailed  information  on
              setting  up  a  replicated slapd directory service. Zero or more
              suffix instances can be used to select the subtrees that will be
              replicated  (defaults  to all the database).  host is deprecated
              in favor of the uri option.  uri allows the replica LDAP  server
              to be specified as an LDAP URI.  A bindmethod of simple requires
              the options binddn and credentials and should only be used  when
              adequate  security  services  (e.g TLS or IPSEC) are in place. A
              bindmethod of  sasl  requires  the  option  saslmech.   Specific
              security  properties  (as  with the sasl-secprops keyword above)
              for a SASL bind can be set with  the  secprops  option.  A  non-
              default  SASL  realm  can  be set with the realm option.  If the
              mechanism will use Kerberos, a kerberos instance should be given
              in authcId.  An attr list can be given after the attr keyword to
              allow the selective replication of the listed  attributes  only;
              if  the  optional  !   mark  is  used,  the  list  is considered
              exclusive, i.e. the listed attributes are not replicated.  If an
              objectClass  is listed, all the related attributes are (are not)
Old 10-18-2006, 07:24 AM   #3
LQ Newbie
Registered: Sep 2006
Posts: 4

Rep: Reputation: 0

Pls make sure that ur slapd.conf file contain replica directive like this only.

replogfile /var/lib/ldap/openldap-master-replog
replica uri=ldaps://
bindmethod=simple credentials=secret

Hope it will work !!!!

Jitender Rajpal


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Replication and SQLite krizzz Programming 3 12-01-2015 03:45 PM
OpenLDAP Replication Master\Slave paul_mat Linux - Networking 3 10-18-2006 07:37 AM
openldap replication master/slave slapd.conf paul_mat Linux - Networking 1 11-30-2005 01:54 PM
CVS and Replication Satriani Programming 1 08-26-2005 11:46 AM
Mysql replication pk21 Linux - Software 0 08-28-2003 05:00 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration