directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Nguyen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRAPI-242) LDIF Reader
Date Tue, 07 Jul 2015 04:38:04 GMT

    [ https://issues.apache.org/jira/browse/DIRAPI-242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14616164#comment-14616164
] 

Steven Nguyen commented on DIRAPI-242:
--------------------------------------

I got it now.

Thank you very much. I think the issue can be closed.

> 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
>         Attachments: SAP.ldif
>
>
> 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)

Mime
View raw message