[Date Prev][Date Next] [Chronological] [Thread] [Top]

slapadd error


I'm having a problem adding a set of entries that are 
using the inetOrgPerson schema.  Previously, I was using 
the organizationalPerson schema for my entries, but I'd 
like to use inetOrgPerson.  Here is the command I am 

slapadd -d 1 -l inet.ldif

and the output (shortened to the important bits):

=> str2entry
str2entry: invalid value for syntax
slapadd: could not parse entry (line=60)

Here's the LDIF file, once again shortened to the 
offending entry:

dn: cn=Roman Gebhart, ou=Product Testing, 
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
cn: Roman Gebhart
sn: Gebhart
description: This is Roman Gebhart's description
l: Emeryville
ou: Product Testing
postalAddress:  company$Product Testing$Dept # 133
telephoneNumber: +1 408 429 8042
title: Supreme Product Testing Artist
userPaxssword: trahbeGnam
uid: Roman_Gebhart
givenName: Roman
mail: Roman_Gebhart@company.com
carLicense: FQR9XJ4
departmentNumber: 9204
employeeType: Employee
homePhone : +1 408 762-7283
initials: R.G.
mobile: +1 804 762-7283
pager: +1 818 939-7740
manager: cn=Melinda Ayaz
secretary: cn=Rajesh Johansen
roomNumber: 6902
seeAlso: Roman

And here's the appropriate lines from slapd.conf:
include /usr/local/etc/openldap/core.schema
include /usr/local/etc/openldap/cosine.schema
include /usr/local/etc/openldap/inetorgperson.schema

I'm running OpenLDAP 2.0.11 on Red Hat 7.1.

It turns out that is the 
DN attribute.  So, I've already tried removing the 
spaces from the first line, so that it reads:

dn: cn=Roman Gebhart,ou=Product Testing,dc=company,dc=com

Removing the spaces doesn't seem to help.  Any help will 
be greatly appreciated.