[Date Prev][Date Next] [Chronological] [Thread] [Top]

Replica Problem ... permission ?



Hi ! 
Im starting with openldap ... and ldap :-D

Im trying to enable a replica ... so I have 
MASTER slapd.conf
include         /var/local/openldap2.3.20/etc/openldap/schema/core.schema

pidfile         /var/local/openldap/var/run/slapd.pid
argsfile        /var/local/openldap/var/run/slapd.args

loglevel 256

readonly off
database        bdb
suffix          "dc=linux,dc=com"
rootdn          "cn=Manager,dc=linux,dc=com"

replica host=10.0.0.2:389 binddn="cn=Replicator,dc=linux,dc=com" bindmethod=simple  credentials=secret
replogfile /var/local/openldap/log/slurpd.replog

rootpw          secret
directory       /var/local/openldap/var/openldap-data
index   objectClass     eq

And in the Slave

include         /var/local/openldap/etc/openldap/schema/core.schema

pidfile         /var/local/openldap/var/run/slapd.pid
argsfile        /var/local/openldap/var/run/slapd.args

loglevel 256

database        bdb

suffix          "dc=linux,dc=com"
rootdn          "cn=Manager,dc=linux,dc=com"

updatedn "cn=Manager,dc=linux,dc=com"

rootpw          secret
directory       /var/local/openldap/var/openldap-data
index objectClass eq

Also I try :
ldapsearch -x -h 10.0.0.187 -D"cn=Manager,dc=linux,dc=com" -w secret
# extended LDIF
#
# LDAPv3
# base <> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# linux.com
dn: dc=linux,dc=com
objectClass: dcObject
objectClass: organization
dc: linux
o: Example Corporation
description: The Example Corporation

# Manager, quitox.com.ar
dn: cn=Manager,dc=linux,dc=com
objectClass: organizationalRole
cn: Manager
description: Directory Manager

# search result
search: 2
result: 0 Success

# numResponses: 3
# numEntries: 2


But replica :
in slurpd
request done: ld 0x809d1a0 msgid 1
Error: ldap_simple_bind_s for 10.0.0.2:389 failed: Invalid credentials
Retrying operation for DN dc=linux,dc=com on replica 10.0.0.2:389


How to configure permission to replica ?? 

Thanx in advance