Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Openldap replication
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nash11
n00b
n00b


Joined: 30 May 2006
Posts: 26
Location: hk

PostPosted: Sun Aug 06, 2006 10:12 am    Post subject: Openldap replication Reply with quote

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 "resues2.com:389 - ignoring replica " , I sure the server resues.com 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/resues1.com
replica host=resues2:389
index objectClass,uid,uidNumber,gidNumber,memberUid eq
index cn,mail,surname,givenname eq
binddn="cn=replicator,dc=resues1,dc=com"
bindmethod=simple credentials=password
Back to top
View user's profile Send private message
slam_head
Guru
Guru


Joined: 06 Jan 2003
Posts: 449
Location: New York City

PostPosted: Tue Aug 08, 2006 9:30 pm    Post subject: Reply with quote

You need to clean up your file a little bit. Remember order and white space are import in the slapd.conf:

Code:

include         /etc/openldap/schema/core.schema
include         /etc/openldap/schema/cosine.schema
include         /etc/openldap/schema/inetorgperson.schema
include         /etc/openldap/schema/nis.schema

database        ldbm
suffix          "dc=resues1,dc=com"
rootdn          "cn=Manager,dc=resues1,dc=com"
rootpw          {SSHA}UKfX5uzttkfXd9nMEFWl3l9BfdafOjsV8TQKv
directory       /var/lib/ldap/resues1.com

index           objectClass,uid,uidNumber,gidNumber,memberUid eq
index           cn,mail,surname,givenname eq

replica         uri=ldap://resues2:389
                binddn="cn=replicator,dc=resues1,dc=com"
                bindmethod=simple credentials="yourpassword"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum