On Wed, Aug 9, 2023 at 8:29 PM Quanah Gibson-Mount <quanah@fast-mail.org> wrote:


--On Wednesday, August 9, 2023 7:31 PM +0530 Kaushal Shriyan
<kaushalshriyan@gmail.com> wrote:

> Configure OpenLDAP server while sending the configuration to the LDAP
> server.
># cat db.ldif
> dn: olcDatabase={2}hdb,cn=config
> changetype: modify
> replace: olcSuffix
> olcSuffix: dc=itzgeek,dc=local
> dn: olcDatabase={2}hdb,cn=config
> changetype: modify
> replace: olcRootDN
> olcRootDN: cn=ldapadm,dc=itzgeek,dc=local
> dn: olcDatabase={2}hdb,cn=config
> changetype: modify
> replace: olcRootPW
> olcRootPW: {SSHA}RCQG8Sec/XtirtjxXL2cbAyeeWH2A9r/


This is not valid LDIF change format.  I suggest reading documentation on
how to create valid LDIF changes.

<https://ldap.com/ldif-the-ldap-data-interchange-format/> has some good
detail, see the section on:

LDIF Modify Change Records

Regards,
Quanah


Thanks  Quanah for the quick email response. Is there a way to validate the LDIF file once it is created?

Please guide me. Thanks in advance.

Best Regards,

Kaushal