Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links



Ldife Import / Export problem

Active Directory


Reply
 
Thread Tools Search this Thread
  #1  
Old 23-03-2007
Member
 
Join Date: Mar 2007
Posts: 1
Ldife Import / Export problem

Hi,
I have a little problem with the ldifde command. Here it is :

1) EXPORT from the server : pl2source

I'm exporting from the server : pl2source a ldif file with the following command :

ldifde -f personnes.ldf -s localhost -t 389 -d "OU=centrale,OU=personnes,DC=adc,DC=education,DC=fr" -p subtree

Here is an extract of this file :

Code:
dn: OU=centrale,OU=personnes,DC=adc,DC=education,DC=fr
changetype: add
objectClass: top
objectClass: organizationalUnit
ou: centrale
distinguishedName: OU=centrale,OU=personnes,DC=adc,DC=education,DC=fr
instanceType: 4
whenCreated: 20060323131947.0Z
whenChanged: 20060323131947.0Z
uSNCreated: 20506
uSNChanged: 20506
name: centrale
objectGUID:: UGHJafoedU61CR7Oir7FVg==
objectCategory: 
 CN=Organizational-Unit,CN=Schema,CN=Configuration,CN={51056F19-F658-40D4-9E98-
 5714AE035C2D}

dn: CN=TUTU CLAUDE,OU=centrale,OU=personnes,DC=adc,DC=education,DC=fr
changetype: add
FrEduTel1: +33 1 55 XX XX XX
personalTitle: Mlle
FrEduFax1: +33 1 55 XX XX XX
FrEduFax2: +33 1 55 XX XX XX
FrEduTypeTel1: LA
FrEduTypeFax1: LA
FrEduTypeFax2: LA
houseIdentifier: ADM (Administration)
FrEduMatriculeMesConges: XXXX
FrEduSite: 110, RUE TRUC - 75007 - PARIS
departmentNumber: XXXXX
FrEduSource: Anais, MDRH
FrEduMailAutorise: Ok
roomNumber: XXX
uid: ctutu
FrEduDemandeDesactivation: FALSE
FrEduOuDN: 
 CN=XXX,CN=YYY,CN=ZZ,CN=sg,CN=menesr,OU=structures,DC=adc,DC=educat
 ion,DC=fr
FrEduOuDN: 
 CN=saam c3\0ADEL:cbc31060-9b0a-487d-a4e4-83cc5725944a,CN=Deleted Objects,DC=ed
 ucation,DC=fr
FrEduOuEffectiveDN: 
 CN=saam d1,CN=saam d,CN=sg-saam,CN=sg,CN=menesr,OU=structures,DC=adc,DC=educat
 ion,DC=fr
FrEduOuEffectiveDN: 
 CN=saam c3\0ADEL:cbc31060-9b0a-487d-a4e4-83cc5725944a,CN=Deleted Objects,DC=ed
 ucation,DC=fr
FrEduStatut: validated
FrEduAffiliation: A
FrEduDateNaissance: 20/08/19XX
mailforwardingaddress: claude.tutu@XX.education.fr
uidRH: aanger
FrEduGrade: XXX
FrEduNomPatro: XXX
FrEduGradeLibel: SECRETAIRE ADMINISTR. (A.C.) CL.NORMALE
FrEduNumen: {SSHA}EcESCoXJ9+0YB7Hg0RPYtN5wzuFzYWx0
FrEduBureau: XX
FrEduDirection: SAAM
FrEduNumind: XX
CAperso: CA\CA-A\ctutu_NAB.nsf
sn: ANGER
MotdepasseDomino: XXXXX
MailFile: MAIL\MAIL-A\claude_tutu.nsf
MailServer: CN=XXX/OU=SRV/O=Education/C=FR
FrEduType: centrale
CNperso: CLAUDE TUTU/Centrale/Education/FR
mail: claude.tutu@education.gouv.fr
CNFullperso: CN=CLAUDE TUTU/OU=Centrale/O=Education/C=FR
givenName: CLAUDE
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
objectClass: inetOrgPerson
objectClass: FrEduPerson
objectClass: FrEduPENPerson
objectClass: FrEduAdcPerson
cn: TUTU CLAUDE
st: France
ou: XXXX
postalAddress: 110, RUE TUTU $ 75007 $ PARIS
telephoneNumber: +33 1 55 55 XX XX
facsimileTelephoneNumber: +33 AXP0S
distinguishedName: 
 CN=TUTU CLAUDE,OU=centrale,OU=personnes,DC=adc,DC=education,DC=fr
instanceType: 4
whenCreated: 20060503122423.0Z
whenChanged: 20070212165637.0Z
uSNCreated: 99800
uSNChanged: 533475
showInAdvancedViewOnly: TRUE
name: ANGER ANNE-MARIE
objectGUID:: oVKo/W3DNki5iYcdnNuA9g==
badPwdCount: 0
badPasswordTime: 0
pwdLastSet: 128034924642336033
objectSid:: AQUAABqrTy/Ky9n2wpG7JdTRZUyc9Ar29Y9KuA==
lockoutTime: 0
objectCategory: 
 CN=Person,CN=Schema,CN=Configuration,CN={51056F19-F658-40D4-9E98-5714AE035C2D}

dn: CN=TII NICOLE,OU=centrale,OU=personnes,DC=adc,DC=education,DC=fr

(...)
2) IMPORT from the server : pl2dest

I'm trying to import personnes.ldif from the destination server : pl2dest

ldifde -i -f personnes.ldf -s localhost -t 389

Here is the message I'm getting :


Code:
C:\WINDOWS\ADAM>ldifde -i -f personnes.ldf -s localhost -t 389
Connexion à "localhost" en cours
Connexion en tant qu'utilisateur actuel en utilisant SSPI
Importation de l'annuaire à partir du fichier "personnes.ldf"
Chargement des entrées.
Erreur d'ajout sur la ligne 2: Aucun objet correspondant
L'erreur du côté serveur est : 0x208d Objet de l'annuaire non trouvé.
L'erreur serveur étendue est :
0000208D: NameErr: DSID-03152110, problem 2001 (NO_OBJECT), data 0, best match o
f:
        'DC=education,DC=fr'

0 entrées modifiées.
Une erreur s'est produite dans le programme
Aucun fichier journal n'a été écrit. Afin de générer un fichier journal,
spécifiez le chemin d'accès au fichier journal à l'aide de l'option -j.

C:\WINDOWS\ADAM>
Does someone know where is the problem ?
Thank you
:)
Reply With Quote
  #2  
Old 23-03-2007
Lee Flight
 
Posts: n/a
Re: Ldife Import / Export problem

looks like the partition (or a required subtree of) DC=education,DC=fr
that you are attempting to import into does not exist on PL2DEST?
Reply With Quote
  #3  
Old 03-12-2009
Member
 
Join Date: Dec 2009
Posts: 1
Re: Ldife Import / Export problem

I ve got it right after about three days of struggle.

Here is the trick.

Exporting:

when you export you have to use the -m switch to omit the attributes that cannot be written. IE:GUID s and stuff. This is one main reason for the error.

So the command would be:
ldifde -f c:\Dper.ldf -m -s localhost -t 10389 -d "OU=Dev,OU=Configurations,O=config" -p subtree

Importing:

Before you import you have to open the .ldf file and change the name of your destination OU if you are going to import this to the same ADAM instance you exported it from. Otherwise no change needed.

Command: ldifde -i -f c:\Dper.ldf -s localhost -t 10389
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Ldife Import / Export problem"
Thread Thread Starter Forum Replies Last Post
Import & Export Data AnkitSingh007 Off Topic Chat 2 09-12-2011 04:18 PM
How to import and export Images in Photoshop Guns-n-Roses Windows Software 3 18-06-2009 10:59 AM
Outlook 2007 can not use Import/Export jerryface@gmail.com MS Office Support 1 24-01-2009 09:01 PM
Export/Import AD data mtsint@yahoo.com Active Directory 3 20-11-2008 08:21 PM
DNS Import and export utility Kumar Windows Server Help 1 17-10-2008 09:33 AM


All times are GMT +5.5. The time now is 07:20 PM.