You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Steven Nguyen (JIRA)" <ji...@apache.org> on 2015/07/03 10:30:04 UTC
[jira] [Created] (DIRAPI-242) LDIF Reader
Steven Nguyen created DIRAPI-242:
------------------------------------
Summary: LDIF Reader
Key: DIRAPI-242
URL: https://issues.apache.org/jira/browse/DIRAPI-242
Project: Directory Client API
Issue Type: Bug
Affects Versions: 1.0.0-M30
Reporter: Steven Nguyen
Hi Team,
I want to parse an LDIF file using LdifReader. My LDIF content is simple but when I call the parse() method, it throws out below exception
org.apache.directory.api.ldap.model.ldif.LdapLdifException: ERR_12070 Error while parsing the ldif buffer
at org.apache.directory.api.ldap.model.ldif.LdifReader.parseLdif(LdifReader.java:1847)
at com.advantco.ldap.test.LDIFParser.main(LDIFParser.java:19)
Caused by: org.apache.directory.api.ldap.model.ldif.LdapLdifException: ERR_12013_NO_DN No DN for entry
at org.apache.directory.api.ldap.model.ldif.LdifReader.parseDn(LdifReader.java:628)
at org.apache.directory.api.ldap.model.ldif.LdifReader.parseEntry(LdifReader.java:1413)
at org.apache.directory.api.ldap.model.ldif.LdifReader.parseLdif(LdifReader.java:2050)
at org.apache.directory.api.ldap.model.ldif.LdifReader.parseLdif(LdifReader.java:1834)
... 1 more
Below please find my sample LDIF content:
version: 1
dn: OU=SAP,DC=sap,DC=local
objectClass: organizationalUnit
objectClass: top
instanceType: 4
objectCategory: CN=Organizational-Unit,CN=Schema,CN=Configuration,DC=sap,DC=
local
ou: SAP
distinguishedName: OU=SAP,DC=sap,DC=local
dSCorePropagationData: 20150608094628.0Z
dSCorePropagationData: 16010101000001.0Z
name: SAP
objectGUID:: WFlektZ2C0aFHTEbgTscfw==
uSNChanged: 12761
uSNCreated: 12760
whenChanged: 20150608094628.0Z
whenCreated: 20150608094627.0Z
The LDIF content is exported using Apache Directory Studio. The server is MS Active Directory.
Hope my question is clear enough.
Best Regards,
Steven Nguyen
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)