Or just do this single line
Code:
ldapadd -x -W -D 'cn=config' -f /etc/openldap/schema/misc.ldif
Why make things harder than it is, with every schema that follows with Openldap there is a ldif file for it this is ready to be imported if needed. I can mention that this worked just fine in Slackware 14.0 with Openldap 2.4.31.