[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: slapadd error
Hi there,
I've found the cause of the problem. It turns out that
the line
seeAlso: Roman
should read:
seeAlso: cn=Roman
To answer your question, use slapcat to export your
database to LDIF. But make certain that slapd is
stopped. Usage:
slapcat -l output.ldif
--
Kayne
k.mcgladrey@worldnet.att.net
> how did you create that ldif file?
>
> can you create an ldif file with an export utility (what is that called and
> to use it)?
>
> if so, will the slapadd -d 1 -l $.ldif file do the import?
>
> of not, what does an import from an export get accomplished?
>
> thanks.
>
> rf
>
> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of
> k.mcgladrey@att.net
> Sent: Monday, July 09, 2001 12:30 PM
> To: openldap-software@OpenLDAP.org
> Subject: slapadd error
>
>
> Hello,
>
> 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
> using:
>
> slapadd -d 1 -l inet.ldif
>
> and the output (shortened to the important bits):
>
> => str2entry
> str2entry: invalid value for syntax
> 1.3.6.1.4.1.1466.115.121.1.12
> 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,
> dc=company,dc=com
> 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 1.3.6.1.4.1.1466.115.121.1.12 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.
>
>
> --
> Kayne
> k.mcgladrey@worldnet.att.net
>
>