Hello list,
I've moved from a 2.2 installation to a 2.3.38 installation, and am having a problem loading one of my old LDIF files. The user in question was the only one I attempted to use the inetOrgPerson object class on, and the program seems to have a problem with it. When I attempt to import it, I get:
modifying entry "cn=jjohnson,ou=users,dc=remitpro,dc=local" ldap_modify: Invalid syntax (21) additional info: objectclass: value #1 invalid per syntax
In the FAQ-o-matic, there's mention of this issue and the OP was directed to a link pointing out what can cause it. For reference:
http://www.openldap.org/faq/data/cache/648.html
There's no whitespace at the end of each line, there's no empty attributes, and I've eliminated any characters that I thought might pose an issue. Any help is greatly appreciated.
Here's the LDIF file:
dn: cn=jjohnson,ou=users,dc=remitpro,dc=local objectclass: person objectclass: inetOrgPerson objectClass: posixAccount cn: jjohnson cn: Jim Johnson sn: Johnson uid: jjohnson userPassword: secret uidNumber: 513 gidNumber: 513 title: Lackey telephoneNumber: 4028610005 mail: ddenton@remitpro.com gn: Jim displayName: Jim Johnson initials: JJ o: RemitPro Inc ou: users postalAddress: 3925 S 147th St postalCode: 68138 l: Omaha st: NE
Thanks in advance...
P.S. - I've also tried using the syntax available at the following link, with no luck.
http://ldap.akbkhome.com/index.php/objectclass/inetOrgPerson.html
"Dan" == Dan Denton ddenton@remitpro.com writes:
Dan> modifying entry "cn=jjohnson,ou=users,dc=remitpro,dc=local" Dan> ldap_modify: Invalid syntax (21) additional info: Dan> objectclass: value #1 invalid per syntax
I got that once (or twice) when the LDAP server was missing an objectclass definition. Are you loading all schema's?
Thanks for the reply. After looking at the conf file, inetorgperson.schema wasn't being included. I added a line to include it, but now I get the following error when starting slapd:
/opt/openldap//etc/openldap/schema/inetorgperson.schema: line 155: AttributeType not found: "audio"
It seems something is off in the formatting of this particular schema file, unless there's something else to add to my conf file. I took the same schema file (from openldap.org) and compared it to the one that came with redhat's RPM installation, and the files are identical in size. I get the same error using their schema file. Any more suggestions?
-----Original Message----- From: openldap-software-bounces+ddenton=remitpro.com@OpenLDAP.org [mailto:openldap-software-bounces+ddenton=remitpro.com@OpenLDAP.org] On Behalf Of Turbo Fredriksson Sent: Friday, October 05, 2007 2:07 PM To: openldap-software@openldap.org Subject: Re: upgrade from 2.2 to 2.3, LDIF file difference...
"Dan" == Dan Denton ddenton@remitpro.com writes:
Dan> modifying entry "cn=jjohnson,ou=users,dc=remitpro,dc=local" Dan> ldap_modify: Invalid syntax (21) additional info: Dan> objectclass: value #1 invalid per syntax
I got that once (or twice) when the LDAP server was missing an objectclass definition. Are you loading all schema's?
My apologies. I meant to include this in my reply. It's a snippet from the tailend of my inetorgperson.schema file (minus the trailing closing paren...). Does anything look odd about this?
# inetOrgPerson # The inetOrgPerson represents people who are associated with an # organization in some way. It is a structural class and is derived # from the organizationalPerson which is defined in X.521 [X521]. objectclass ( 2.16.840.1.113730.3.2.2 NAME 'inetOrgPerson' DESC 'RFC2798: Internet Organizational Person' SUP organizationalPerson STRUCTURAL MAY ( audio $ businessCategory $ carLicense $ departmentNumber $ displayName $ employeeNumber $ employeeType $ givenName $ homePhone $ homePostalAddress $ initials $ jpegPhoto $ labeledURI $ mail $ manager $ mobile $ o $ pager $ photo $ roomNumber $ secretary $ uid $ userCertificate $ x500uniqueIdentifier $ preferredLanguage $ userSMIMECertificate $ userPKCS12 )
-----Original Message----- From: openldap-software-bounces+ddenton=remitpro.com@OpenLDAP.org [mailto:openldap-software-bounces+ddenton=remitpro.com@OpenLDAP.org] On Behalf Of Turbo Fredriksson Sent: Friday, October 05, 2007 2:07 PM To: openldap-software@openldap.org Subject: Re: upgrade from 2.2 to 2.3, LDIF file difference...
"Dan" == Dan Denton ddenton@remitpro.com writes:
Dan> modifying entry "cn=jjohnson,ou=users,dc=remitpro,dc=local" Dan> ldap_modify: Invalid syntax (21) additional info: Dan> objectclass: value #1 invalid per syntax
I got that once (or twice) when the LDAP server was missing an objectclass definition. Are you loading all schema's?
openldap-software@openldap.org