I added a new line. So the file is like this:
dn: olcDatabase={0}config,cn=config changetype: modify replace: olcRootPW olcRootPW: newpass! - replace: olcSyncRepl olcSyncRepl: rid=001 provider=ldaps://ldap1.domain.com searchbase="cn=config" bindmethod=simple credentials=newpass! binddn="cn=admin,cn=config" tls_reqcert=never type=refreshAndPersist retry="30 +" timeout=1 olcSyncRepl: rid=002 provider=ldaps://ldap2.domain.com searchbase="cn=config" bindmethod=simple credentials=newpass! binddn="cn=admin,cn=config" tls_reqcert=never type=refreshAndPersist retry="30 +" timeout=1 olcSyncRepl: rid=003 provider=ldaps://ldap3.domain.com searchbase="cn=config" bindmethod=simple credentials=newpass! binddn="cn=admin,cn=config" tls_reqcert=allow type=refreshAndPersist retry="30 +" timeout=1 dn: olcDatabase={1}mdb,cn=config changetype: modify replace: olcRootPW olcRootPW: newpass! - replace: olcSyncRepl olcSyncRepl: rid=001 provider=ldaps://ldap1.domain.com searchbase="dc=domain,dc=com" bindmethod=simple credentials=newpass! binddn="cn=admin,dc=domain,dc=com" tls_reqcert=allow type=refreshAndPersist retry="30 +" timeout=1 olcSyncRepl: rid=002 provider=ldaps://ldap2.domain.com searchbase="dc=domain,dc=com" bindmethod=simple credentials=newpass! binddn="cn=admin,dc=domain,dc=com" tls_reqcert=allow type=refreshAndPersist retry="30 +" timeout=1 olcSyncRepl: rid=003 provider=ldaps://ldap3.domain.com searchbase="dc=domain,dc=com" bindmethod=simple credentials=newpass! binddn="cn=admin,dc=domain,dc=com" tls_reqcert=allow type=refreshAndPersist retry="30 +" timeout=1
Error
ldap_modify: Other (e.g., implementation specific) error (80) additional info: Error: parse_syncrepl_line: unable to parse syncrepl id "001provider=ldaps://ldap1.domain.comsearchbase="cn=config"bindmethod=simplecredentials=newpass!binddn="cn=admin,cn=config"tls_reqcert=nevertype=refreshAndPersistretry="30 +Tim
If slapcat -b "cn=config" | egrep rid
olcSyncrepl: {0}rid=001 provider=ldaps://ldap1.domain.com olcSyncrepl: {1}rid=002 provider=ldaps://ldap2.domain.com olcSyncrepl: {2}rid=003 provider=ldaps://ldap3.domain.com olcSyncrepl: {0}rid=001 provider=ldaps://ldap1.domain.com olcSyncrepl: {1}rid=002 provider=ldaps://ldap2.domain.com olcSyncrepl: {2}rid=003 provider=ldaps://ldap3.domain.com
Theoretically, why is there a different indent between {0}rid=001 provider=ldap://ldap 1.domain.comhttp://1.domain.com in different lines ?
2 дек. 2020 г., в 23:11, Quanah Gibson-Mount <quanah@symas.commailto:quanah@symas.com> написал(а):
--On Wednesday, December 2, 2020 8:08 AM +0000 Клеусов Владимир Сергеевич <Kleusov.Vladimir@wildberries.rumailto:Kleusov.Vladimir@wildberries.ru> wrote:
Hi,
Thanks. I checked the extra spaces. To be honest, I didn't find any extra spaces. Here is the contents of my file:
You're missing a newline before the
dn: olcDatabase={1}mdb,cn=config
line. This is necessary to indicate that a new record is being dealt with. That would also be line 10 of the change modification, so the error is correct.
--Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com