[Date Prev][Date Next]
SUMMARY: ldapmodify and multiple replacements in a ldif file
- To: "Jan-Michael Ong" <firstname.lastname@example.org>, <openldap-software@OpenLDAP.org>
- Subject: SUMMARY: ldapmodify and multiple replacements in a ldif file
- From: "Timothy Lorenc" <email@example.com>
- Date: Wed, 31 Oct 2001 19:10:39 -0500
- Importance: Normal
- In-reply-to: <18.104.22.168.2.20011031153946.01710ab0@mailsj-v1>
Thank you Jan-Micheal Ong!
My understanding of the ldif format was incorrect.
I forgot to separate the replace lines with a "-".
When I changed my example to:
It worked great. Thanks. I re-read the man page and it
made perfect sense now.
From: Jan-Michael Ong [mailto:firstname.lastname@example.org]
Sent: Wednesday, October 31, 2001 6:44 PM
To: Timothy Lorenc
Subject: Re: Q: ldapmodify and multiple replacements in a ldif file
my experience has been to make sure that mailHost has been defined properly
in some schema and that what you are providing it is what its expecting
(i.e. the format of the text) also separate you update with dashes like the
finally make sure that at least one of your schema (that you load in
slapd.conf) has the attribute mailHost defined in it and that one of your
objectClasses for this particular entry references it. So if the
objectclass inetOrgPerson contains mailHost as one of the possible
attribute for that object make sure that
cn=tim,dc=domain.com... has been defined as
objectClass ... [blah]
objectClass: inetOrgPerson (or the appropriate object that contains
At 06:25 PM 10/31/2001 -0500, you wrote:
>I am scripting that ability for updates to our LDAP directory
>and I am trying the following ldif file to perform the changes:
>(BTW: I am using the qmail.schema)
>When I just ldapmodify with this ldif file I get:
>modifying entry "cn=tim,dc=domain.com,o=emailservice,c=us"
>ldap_modify: Undefined attribute type
> additional info: replace: attribute type undefined
>Am I doing something wrong with my attempt at multiple replaces
>within one ldif file, or is there some other way to format this
>file that will work? Individual replace ldif files work, but
>I would like to do all the replaces as once.
>-- LOAD your email!
>Timothy Lorenc USmail: Lorenc Advantage, Inc.
>Consultant 6732 E. State Blvd.
> PMB 304
>Email: email@example.com Fort Wayne, IN 46815
>If this communication concerns the negotiation of a contract or agreement,
>the Uniform Electronic Transaction Act does not apply to this
>contract and/or agreement formation in this matter shall only occur with
>manually-affixed signatures on original documents.