3

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.

David Neudorfer
  • 171
  • 3
  • 9

1 Answers1

2

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...

voretaq7
  • 79,345
  • 17
  • 128
  • 213
  • 1
    http://cdn.memegenerator.net/instances/400x/24648047.jpg – Aaron Copley Aug 08 '12 at 22:45
  • 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 08 '12 at 22:47
  • .... I feel dumb. Here I go try that now. – David Neudorfer Aug 08 '12 at 22:51
  • where did you get the schema extensions? – SpacemanSpiff Aug 08 '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 08 '12 at 23:03
  • Ok @voretaq7 so that worked and I didn't get an error when I added the lines but now I get a `8/8/12 4:05:33 PM Workgroup Manager[13753] void -[LoginController gotServerError:forTransaction:](LoginController*, objc_selector*, objc_object*, XSAdminTransaction*): got error kNetworkError from request (null)` – David Neudorfer Aug 08 '12 at 23:07
  • Thought it might be a dns error and it was. fixed the dns. now this; `8/8/12 4:11:01.103 PM Workgroup Manager[46635]: -[LoginController gotServerError:forTransaction:]: got error kNetworkError from request (null)` looks like the same thing I think. – David Neudorfer Aug 08 '12 at 23:11