You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2013/06/17 14:43:20 UTC
[jira] [Commented] (DIRSERVER-1861) documentation update entry
[ https://issues.apache.org/jira/browse/DIRSERVER-1861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13685506#comment-13685506 ]
Emmanuel Lecharny commented on DIRSERVER-1861:
----------------------------------------------
You most certainly miss the final "-".
Like in :
dn: CN=John Smith,OU=Legal,DC=example,DC=com
changetype: modify
replace:employeeID
replace: extensionAttribute6
extensionAttribute6: JSmith98
-
> documentation update entry
> --------------------------
>
> Key: DIRSERVER-1861
> URL: https://issues.apache.org/jira/browse/DIRSERVER-1861
> Project: Directory ApacheDS
> Issue Type: Improvement
> Components: doc
> Affects Versions: 2.0.0-M12
> Environment: linux 32bit java 1.7.0.21
> Reporter: Serge Pouliquen
> Priority: Minor
> Labels: documentation
>
> Hi,
> Could you add a sample of code that show how to update an entry (attribute addition) using an ldif file (or command line in guide) ?
> Adding and deleting are already present in basic user guide.
> I tried adding lines like "changetype: modify", "add: jpegPhoto" and "jpegPhoto:: ...".
> But, I only get an exception:
> ERR_12042_BAD_MODIFY_SEPARATOR_2 Bad state : we should have come from a MOD_SPEC or an ATTRVAL_SPEC
> at org.apache.directory.api.ldap.model.ldif.LdifReader.parseModify(LdifReader.java:1165)
> at org.apache.directory.api.ldap.model.ldif.LdifReader.parseChange(LdifReader.java:1227)
> at org.apache.directory.api.ldap.model.ldif.LdifReader.parseEntry(LdifReader.java:1383)
> at org.apache.directory.api.ldap.model.ldif.LdifReader.init(LdifReader.java:256)
> at org.apache.directory.api.ldap.model.ldif.LdifReader.initReader(LdifReader.java:242)
> at org.apache.directory.api.ldap.model.ldif.LdifReader.<init>(LdifReader.java:325)
> Could you help me to find out what I'm doing wrong ?
> Serge
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira