[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldapmodify: multiple additions
- To: openldap-technical@openldap.org
- Subject: ldapmodify: multiple additions
- From: infirit <infirit@gmail.com>
- Date: Wed, 13 Mar 2013 17:45:44 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=IBwxi2Ew76fMwdHJKdoFnckBDflRGoCc9+lr5iPl3AU=; b=h0h4jTCvfCY7lrA+UTGe/m6qbIIrmWWjjBIH6NMnE/+UvU3k8yQCmuaTks+QhCuCOQ PWTi+hfsDS5sWQBRAZZRW4AkeM/7F37DV4hVozyTipxJ/rvVBliB1hTxD4Wa3uCfKtYB h0lc4BRtSB23q7+c6lwdH1oSyrpxFM2eh2ZCL1lXi+fIp02mQS3tQnCBOak87Nq+IepT 6lUW//Cu0g4GNtTV6eT80wKvezUmSrQFKoFQqPSQdD8OfDmWB4wyEMQ3nZ8pqcmM5cj5 DGWvH+agFpMGzNn4Gg8q23BIh7QLpkBhob5dyJEHDO0NtL9HGyE6+VMZ/v+wWXWvtIeK alCg==
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130312 Thunderbird/17.0.4
Hi, I am working through a book (Mastering OpenLDAP, Packtpub) which is
based on openldap 2.3.
The book talks in chapter 3 how to modify/add/delete attributes for a
dn. It instructs to put the bellow in an ldif file and read it with
ldapmodify. The writerÅ point here is that I am supposed to add both a
"description" and "title" without separating out the additions with a
dash (-).
It never works for me and always comes with a syntax error.
non working ldif file:
dn: uid=nicholas,ou=Users,dc=home
changetype: modify
add: description title # <- 2 attributes
description: This is a test
title: Cartesian philosopher
Error: ldapmodify: wrong attributeType at line 4, entry
"uid=nicholas,ou=Users,dc=home"
The ldif file that does work is below.
Working ldif file:
dn: uid=nicholas,ou=Users,dc=home
changetype: modify
add: description
description: This is a test
-
add: title
title: Cartesian philosopher
Now am I doing something wrong, is the book using functionality that is
not available in openldap version 2.4 or something else?
Any pointers and help much appreciated.
Thx
infirit