File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to Import a file" Watch "How to Import a file" New topic
Author

How to Import a file

Pradeep LV
Greenhorn

Joined: Nov 05, 2004
Posts: 8
Hello,

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
objectCategory:
CN=Organizational-Unit,CN=Schema,CN=Configuration,DC=ad,DC=edc,DC=org
isCriticalSystemObject: TRUE
gPLink:
[LDAP://CN={6AC1786C-016F-11D2-945F-00C04fB984F9},CN=Policies,CN=System,DC=ad,
DC=edc,DC=org;0]
dSCorePropagationData: 20050520190054.0Z
dSCorePropagationData: 20050502160350.0Z
dSCorePropagationData: 20050502160347.0Z
dSCorePropagationData: 16010101181633.0Z

Please suggest me somthing.
Pradeep
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Import a file
 
Similar Threads
ApacheDS 1.0.2 LDAP java.net.ConnectException: Connection timed out: connect
WLS6.1 - Configuring realm for openLdap
Apache DS : LDIF import not working
Read LDIF contents and Display in Tree
Display LDIF contents in a Tree Hierarchy