- 论坛徽章:
- 0
|
环境
RHEL 6.3 X64
OPENLDAP 版本
lapd -V
@(#) $OpenLDAP: slapd 2.4.23 (May 7 2012 13:59:20) $
两台服务器:10.x.x.7 10.x.x.8
目的是,这两台的LDAP 数据相互同步。
10.x.x.7 配置如下
root@IT-ldap1[/var/log]#cat /etc/openldap/slapd.conf
include /etc/openldap/schema/corba.schema
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/duaconf.schema
include /etc/openldap/schema/dyngroup.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/java.schema
include /etc/openldap/schema/misc.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/openldap.schema
include /etc/openldap/schema/ppolicy.schema
include /etc/openldap/schema/collective.schema
allow bind_v2
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
loglevel 256
logfile /var/log/slapd/ldap.log
TLSCACertificatePath /etc/openldap/certs
TLSCertificateFile "\"OpenLDAP Server\""
TLSCertificateKeyFile /etc/openldap/certs/password
database config
access to *
by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage
by * none
database monitor
access to attrs=userPassword
by self write
by anonymous auth
by dn.base="cn=Manager,dc=services,dc=eu" write
by * none
access to *
by * write
by * read
serverID 1
database bdb
suffix "dc=test,dc=eu"
checkpoint 1024 15
rootdn "cn=Manager,dc=test,dc=eu"
rootpw {SSHA}abJjc8Q3tt0+Qe7K01FUysrpNVRM8/qO
directory /var/lib/ldap
# Indices to maintain for this database
index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub
#overlay syncprov
syncrepl rid=001
provider=ldap://10.x.x.8:389
bindmethod=simple
binddn="cn=Manager,dc=test,dc=eu"
credentials="test"
searchbase="dc=test,dc=eu"
schemachecking=on
type=refreshAndPersist
retry="60 +"
mirrormode on
================================================================
10.x.x.8 配置如下
root@IT-ldap2[/var/log]#cat /etc/openldap/slapd.conf
include /etc/openldap/schema/corba.schema
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/duaconf.schema
include /etc/openldap/schema/dyngroup.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/java.schema
include /etc/openldap/schema/misc.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/openldap.schema
include /etc/openldap/schema/ppolicy.schema
include /etc/openldap/schema/collective.schema
allow bind_v2
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
loglevel 256
logfile /var/log/slapd/ldap.log
TLSCACertificatePath /etc/openldap/certs
TLSCertificateFile "\"OpenLDAP Server\""
TLSCertificateKeyFile /etc/openldap/certs/password
database config
access to *
by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage
by * none
database monitor
access to attrs=userPassword
by self write
by anonymous auth
by dn.base="cn=Manager,dc=services,dc=eu" write
by * none
access to *
by * write
by * read
serverID 1
database bdb
suffix "dc=test,dc=eu"
checkpoint 1024 15
rootdn "cn=Manager,dc=test,dc=eu"
rootpw {SSHA}abJjc8Q3tt0+Qe7K01FUysrpNVRM8/qO
directory /var/lib/ldap
# Indices to maintain for this database
index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub
#overlay syncprov
syncrepl rid=001
provider=ldap://10.x.x.7:389
bindmethod=simple
binddn="cn=Manager,dc=test,dc=eu"
credentials="test"
searchbase="dc=test,dc=eu"
schemachecking=on
type=refreshAndPersist
retry="60 +"
mirrormode on
=====================================================================
两边都报错如下:
do_syncrep2: rid=001 got search entry without Sync State control
do_syncrepl: rid=001 rc -1 retrying
conn=1095 fd=12 ACCEPT from IP=10.x.x.7:30808 (IP=0.0.0.0:389)
conn=1095 op=0 BIND dn="cn=manager,dc=zteservices,dc=eu" method=128
conn=1095 op=0 BIND dn="cn=manager,dc=zteservices,dc=eu" mech=SIMPLE ssf=0
conn=1095 op=0 RESULT tag=97 err=0 text=
conn=1095 op=1 SRCH base="dc=zteservices,dc=eu" scope=2 deref=0 filter="(objectClass=*)"
conn=1095 op=1 SRCH attr=* +
slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.1.9.1.1
send_search_entry: conn 1095 ber write failed.
conn=1095 fd=12 closed (connection lost on write)
do_syncrep2: rid=001 got search entry without Sync State control
do_syncrepl: rid=001 rc -1 retrying
Google 很久没有找到方法。
求大神帮忙看看啊。 |
|