Hi,
Thanks.
I checked the extra spaces. To be honest, I didn't find any extra spaces. Here
is the contents of my file:
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 ldapmodify: wrong attributeType at line 10, entry
"olcDatabase={0}config,cn=config»
If I understand correctly 10 line
bindmethod=simple
If possible any help
> 1 дек. 2020 г., в 23:56, Quanah Gibson-Mount <[email protected]> написал(а):
>
>
>
> --On Thursday, November 26, 2020 2:08 PM +0000 Клеусов Владимир Сергеевич
> <[email protected]> wrote:
>
>> Thanks for the example. I have Debian 9. Changing the example for my
>> values. ldapmodify -Y EXTERNAL -H ldapi:/// -f change.ldif
>> I get an error ldapmodify: wrong attributeType at line 10, entry "
>> olcDatabase={0}config, cn=config»
>
> It looks like there's an extra space in the dn?
>
> " olcDatabase={0}config, cn=config"
>
> Not sure if that's just a typo when pasting.
>
> Also, I would note that if there are trailing spaces, for example if you have:
>
> "replace: olcSyncrepl "
>
> instead of:
>
> "replace: olcSyncrepl"
>
> You'll get a similar error message.
>
> Regards,
> Quanah
>
> --
>
> Quanah Gibson-Mount
> Product Architect
> Symas Corporation
> Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
> <http://www.symas.com>