1. 我用的版本是openldap-2.4.23-31.el6.x86_64 。
2. 我看到openldap的手册里是这么写的,所以我理解为simple模式只能用明文做密码。
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. REMEMBER:simplebindcredentialsmustbeincleartext!
3. 还有这句话“你把不要把這個同步的密碼理解為別人訪問你的,而是他訪問別人的時候要用到的密碼。”我不是特别理解。指的是两个服务器之间的访问密码么?4. 我的服务器是这么配的。A和B的控制账号和密码完全相同,只是ip不同。当我密码用明文的时候就可以同步,但是密码如果用的是密文就不能同步。是不是我其他的配置有问题呢?5. 还有database monitor这个数据库到底是起什么作用的呢?一直不明白为什么要配置这个数据库。6. sasl加密没有tls安全么?
服务器Amoduleload syncprov.la
database bdbsuffix "dc=****,dc=****"checkpoint 1024 15
rootdn "cn=manager,dc=***,dc=***"
rootpw {SSHA}cXUVsI2kuKNK9kjCagWtvraossyAKuhX
directory /var/lib/ldap/tmsr
access to * by self write by * read
# Indices to maintain for this databaseindex objectClass,entryCSN,entryUUID eq,presindex ou,cn,mail,surname,givenname eq,pres,subindex uidNumber,gidNumber,loginShell eq,presindex uid,memberUid eq,pres,subindex nisMapName,nisMapEntry eq,pres,sub
serverID 1 (A和B服务器这里是不同的)
syncrepl rid=111 provider=ldap://***** (A和B服务器这里是对方的IP) bindmethod=simple binddn="cn=manager,dc=***,dc=***" credentials={SSHA}cXUVsI2kuKNK9kjCagWtvraossyAKuhX searchbase="dc=****,dc=***" schemachecking=on type=refreshAndPersist retry="60 +"mirrormode onoverlay syncprovsyncprov-checkpoint 100 10syncprov-sessionlog 100
#enable monitoringdatabase monitor# allow onlu rootdn to read the monitoraccess to attrs=userPassword,shadowLastChange by self write by users read by anonymous auth# by * noneaccess to * by dn.exact="cn=manager,dc=tmsr,dc=org" write# by * read by users read by anonymous read