cancel
Showing results for 
Search instead for 
Did you mean: 
Ksahil
Flight Engineer
Flight Engineer
  • 454 Views

While the configuration of the LDAP server getting below error.

While the configuration\practicing of the LDAP server getting below error.

[root@instructor ~]# vi /etc/openldap/changes.ldif
[root@instructor ~]# cat /etc/openldap/changes.ldif
dn: olcDatabase={2}hdb,cn=config
changetype: modify
replace: olcSuffix
olcSuffix: dc=example,dc=com

dn: olcDatabase={2}hdb,cn=config
changetype: modify
replace: olcRootDN
olcRootDN: cn=Manager,dc=example,dc=com

dn: olcDatabase={2}hdb,cn=config
changetype: modify
replace: olcRootPW
olcRootPW: {SSHA}ShtDCc+SJceAmLoo212m7O8LDDRPwD/8

dn: cn=config
changetype: modify
replace: olcTLSCertificateFile
olcTLSCertificateFile: /etc/openldap/certs/cert.pem

dn: cn=config
changetype: modify
replace: olcTLSCertificateFile
olcTLSCertificateFile: /etc/openldap/certs/priv.pem

dn: cn=config
changetype: modify
replace: olcLogLevel
olcLogLevel: -1

dn: olcDatabase={1}monitor,cn=config
changetype: modify
replace: olcAccess
olcAccess: {0}to * by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" read by dn.base="cn=Manager,dc=example,dc=com" read by * none

dn: cn=config
changetype: modify
replace: olcTLSCertificateFile
OlcTLSCertificateFile: /etc/openldap/certs/cert.pem
-
replace: olcTLSCertificateKeyFile
OlcTLSCertificateKeyFile: /etc/openldap/certs/priv.pem

[root@instructor ~]#

---------------------------------------ERROR----------------

[root@instructor ~]# ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/changes.ldif
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
modifying entry "olcDatabase={2}hdb,cn=config"
ldap_modify: No such object (32)
matched DN: cn=config

[root@instructor ~]#

 

Unable to understand what I m doing wrong.

Thank You.

 

Labels (3)
2 Replies
cyb3rx
Flight Engineer
Flight Engineer
  • 446 Views

are you following any course track for this?

0 Kudos
Ksahil
Flight Engineer
Flight Engineer
  • 422 Views

No, few articles available on Google from there I m doing.

0 Kudos
Join the discussion
You must log in to join this conversation.