begging for help

Kenneth Hawkins kjurkic at
Fri Mar 6 23:48:16 UTC 2009

Thanks for the alternate link, Ryan
will see if that ldif example works better.

AFAICT, the line count starts at 1; I have seen similar complaints with importing ldif's, and when I corrected other glitches, it was always on a line number where the line count starts at 1.


From: Ryan Steele <rgsteele at>
To: The Canadian Ubuntu Users Community <ubuntu-ca at>
Sent: Friday, March 6, 2009 3:24:24 PM
Subject: Re: begging for help

On Fri, Mar 6, 2009 at 2:41 PM, Kenneth Hawkins <kjurkic at> wrote:
> Thanks Andy
> I wish I was even this far along (to do queries). I can't even import a
> basic ldif to populate my LDAP, without running into errors.
> Here's an example:


> bmsadmin at LDAP:/root$ sudo slapadd -l init.ldif
> /etc/ldap/slapd.conf: line 114: rootdn is always granted unlimited
> privileges.
> /etc/ldap/slapd.conf: line 131: rootdn is always granted unlimited
> privileges.
> str2entry: invalid value for attributeType objectClass #1 (syntax
> slapadd: could not parse entry (line=7)
> So I opened the source file (ldif):
> 1:    dn:     dc=bms,dc=bc,dc=ca
> 2:    objectClass:    dcObject
> 3:    objectClass:    organizationalUnit
> 4:    dc:     bms
> 5:    ou:     Bamfield Marine Science Centre
> 6:
> 7:    dn:     cn=admin,dc=bms,dc=bc,dc=ca *****nothing wrong with this line
> 8:    objectClass:    simpleSecurityObject

Judging by the error message, it looks like the issue is actually with
line 8. Not sure if that's because slapadd uses zero-indexed line
numbers or if it skips blank lines.

I'm not an OpenLDAP expert, so I can't provide any specific
assistance, but I found this document, which might be more up-to-date
than the wiki:

Ryan Steele - rgsteele at

ubuntu-ca mailing list
ubuntu-ca at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ubuntu-ca mailing list