47OSD OperationDIT CreationThe LDAP Data Interchange Format (LDIF) is used to representLDAP entries in a simple text format (please refer to RFC2849). The figure below illustrates an LDIF file that creates theDIT for the B064-Series KVM Switch directory tree (shown inthe figure in the previous section).dn: dc=eaton, dc=comobjectclass: topobjectclass: dcObjectobjectclass: organizationdn: cn=Manager,dc=eaton,dc=comobjectclass: topobjectclass: personobjectclass: organizationalPersoncn: Managersn: Managerdn: ou=Users, dc=eaton, dc=comobjectclass: topobjectclass: organizationalUnitou: Usersdn: cn=steve, ou=Users, dc=eaton, dc=comobjectclass: topobjectclass: personobjectclass: organizationalPersonobjectclass: Usercn: stevesn: steveB020-U16-19-IP-AccessRight: w,v,p,j,c,luserPassword: passwordou: UsersThe following figure illustrates an LDIF file that defines theOpenLDAP group for the B064-Series KVM Switch.dn: cn=judy1, ou=Users, dc=eaton, dc=comobjectclass: topobjectclass: personobjectclass: organizationalPersonobjectclass: Usercn: judy1sn: judy1userPassword:passworddn: cn=ccc, dc=eaton, dc=comobjectclass: groupOfNamescn: cccmember: cn=judy1, cn=users, dc=eaton, dc=comdn: cn=bbb, dc=eaton, dc=comobjectclass: groupOfNamescn: bbbmember: cn=ccc, dc=eaton, dc=comdn: cn=aaa, dc=eaton, dc=comobjectclass: groupOfNamescn: aaamember: cn=bbb, dc=eaton, dc=comAdvanced Network Management SettingsUsing the New SchemaTo use the new schema, do the following:1. Save the new schema file (e.g., B064-Series KVM switch.schema) in the /OpenLDAP/ schema/ directory.2. Add the new schema to the slapd.conf file, as shown in thefigure:3. Restart the LDAP server.4. Write the LDIF file and create the database entries in init.ldif with the ldapadd command, as shown in the followingexample:ldapadd -f init.ldif -x -D “cn=Manager,dc=eaton,dc=com” -wsecretucdata-path ./ucdatainclude ./schema/core.schemainclude ./schema/cosine.schemainclude ./schema/inetorgperson.schemainclude ./schema/openldap.schemainclude ./schema/.schema#Define global ACLs to disable default read access.access to dn. children=”ou=Users, dc=eaton, dc=com”by: dn=”cn=Manager, dc=eaton,dc=com”writeby: selfreadby: anonymous authby* nonepidfile ./run/slapd.pidargfile ./run/slapd.args######################################## BDB database definitions#######################################databse bdbsuffix “dc=eaton, dc=com”rootdn “cn=Manager,dc=eaton,dc=com”rootpw secretdirectory ./data