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

Re: ldif import problems




openldap-server-2.2.14 and same version client utils. running on freebsd 4.10

MailRoutingAddress is in the misc.schema and it doesn't seem to be
an alias. I tried importing stuff without mailRoutingAddress and got the same error message, then I removed mailhost addribute and I got a different error.


ldap_add: Type or value exists (20)
        additional info: objectClass: value #0 provided more than once

There are no duplicate entries anywhere in ldif, so I'm not sure what this error message means?



Quanah Gibson-Mount wrote:


--On Saturday, August 28, 2004 8:50 PM -0400 synrat <synrat@wirewalk.org> wrote:

I can't populate the directory from ldif files created by migrate
scripts. I keep getting this error message:


adding new entry "uid=user,ou=people,dc=domain,dc=com" ldap_add: Constraint violation (19) additional info: mailRoutingAddress: multiple values provided

I have the following schemas included and below is a sample entry.

include         /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/cosine.schema
include         /usr/local/etc/openldap/schema/inetorgperson.schema
include         /usr/local/etc/openldap/schema/misc.schema
include         /usr/local/etc/openldap/schema/nis.schema


dn: uid=user,ou=people,dc=domain,dc=com uid: user cn: user sn: lastname givenName: user mail: user@domain.com mailRoutingAddress: user@mail.domain.com mailHost: mail.domain.com objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson objectClass: account objectClass: posixAccount objectClass: top userPassword: {crypt}lalalala uidNumber: 1000 gidNumber: 1000 homeDirectory: /home/user loginShell: /usr/local/bin/bash gecos: user


What version of OpenLDAP?

Did you read the schema to see if "mailRoutingAddress" was an alias for another attribute you already have defined?

--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html