Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

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

    include /etc/openldap/schema/apple.schema

will probably do, assuming you put Apple's schema file in the appropriate location...

share|improve this answer
1  
2  
@AaronCopley maybe later tonight when I'm not amused by it anymore - I mean we have to have some fun in our lives, right? –  voretaq7 Aug 8 '12 at 22:47
    
.... I feel dumb. Here I go try that now. –  David Neudorfer Aug 8 '12 at 22:51
    
where did you get the schema extensions? –  SpacemanSpiff Aug 8 '12 at 23:00
    
@SpacemanSpiff Easiest place is /private/etc/openldap/schema/ on a mac, but I believe they're floating around on the Apple website somewhere too –  voretaq7 Aug 8 '12 at 23:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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