When I try to add apple.schema to my OpenLDAP running on Debian this is the error I get;
root@directory:~# ldapadd -Y EXTERNAL -H ldapi:/// -f apple.schema
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
ldapadd: invalid format (line 1) entry: ""
ldapadd: invalid format (line 25) entry: ""
ldapadd: invalid format (line 33) entry: ""
ldapadd: invalid format (line 44) entry: ""
ldapadd: invalid format (line 52) entry: ""
ldapadd: invalid format (line 60) entry: ""
ldapadd: invalid format (line 68) entry: ""
ldapadd: invalid format (line 76) entry: ""
ldapadd: invalid format (line 91) entry: ""
ldapadd: invalid format (line 99) entry: ""
ldapadd: invalid format (line 107) entry: ""
... keeps going ...
... all the way to ...
ldapadd: invalid format (line 1680) entry: ""
ldapadd: invalid format (line 1686) entry: ""
ldapadd: invalid format (line 1692) entry: ""
I've Googled and gotten nothing. Not sure where else to turn. Any suggestions would be great. Help me reddit, you're my only hope.
psst! Hey you! Yeah you, the confused looking dude! This isn't reddit! :-)
Also, more importantly, that's not how you add schemas in OpenLDAP (see the manual) --
You want to add an
include /path/to/the/schema/file
directive to the LDAP server's configuration file (/etc/openldap/slapd.conf
).Something like
will probably do, assuming you put Apple's schema file in the appropriate location...