I am trying to import kerberos.schema into OpenLDAP on RHEL7.

I create a file with include /etc/ldap/schema/kerberos.schema in it and then run:

slapcat -f schema_convert.conf -F /tmp/ldif_output -n0 -s "cn={12}kerberos,cn=schema,cn=config" > /tmp/cn=kerberos.ldif

I get

5a1707bf /etc/openldap/schema/kerberos.schema: line 604: unknown directive outside backend info and database definitions.

and line 604 is

objectclass: ( 2.16.840.1.113719.1.301.6.1.1 NAME 'krbContainer' SUP top STRUCTURAL MUST ( cn ) )

I'm really not sure where to go with this.

closed as off-topic by Jeff Schaller, G-Man, Stephen Rauch, GAD3R, meuh Nov 27 '17 at 7:48

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller, G-Man, Stephen Rauch, GAD3R, meuh
If this question can be reworded to fit the rules in the help center, please edit the question.


Turns out it was just a simple mistake in the kerberos.schema that I must have done while moving it over. I installed a fresh copy and it's fine.

Not the answer you're looking for? Browse other questions tagged or ask your own question.