I am trying to add hosts to the LDAP server for more control on logins.

I have nis.schema in the slapd.conf file. Below is host.ldif file

dn: cn=mldap,ou=hosts,dc=aaa
objectClass: ipHost
cn: mldap

When I try to add it I get following error.

ldap_add: Object class violation (65)
additional info: no structural object class provided

My aim is to add all the network servers under ou=hosts, and then assign access to users depending on the need.

Please help!!!!!!