File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes How to Import a file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to Import a file" Watch "How to Import a file" New topic

How to Import a file

Pradeep LV

Joined: Nov 05, 2004
Posts: 8

I am trying to import a .ldif file to ADS which is working properly. I tried the follwing in dos prompt.
ldifde -i -f ExportData.ldif

But it is givig the error "Failed on token starting with 'o' on line 4
0 entries modified successfully.
An error has occurred in the program".

Here is the first few lines of the export file which i am trying to import.

dn: OU=Domain Controllers,DC=XX,DC=XX,DC=XX
changetype: add
objectClass: top
objectClass: organizationalUnit
ou: Domain Controllers
description: Default container for new Windows 2000 domain controllers
distinguishedName: OU=Domain Controllers,DC=XX,DC=XX,DC=XX
instanceType: 4
whenCreated: 20040708230721.0Z
whenChanged: 20050427181833.0Z
uSNCreated: 7201
uSNChanged: 7201
showInAdvancedViewOnly: FALSE
name: Domain Controllers
systemFlags: -1946157056
isCriticalSystemObject: TRUE
dSCorePropagationData: 20050520190054.0Z
dSCorePropagationData: 20050502160350.0Z
dSCorePropagationData: 20050502160347.0Z
dSCorePropagationData: 16010101181633.0Z

Please suggest me somthing.
I agree. Here's the link:
subject: How to Import a file
It's not a secret anymore!