Results 1 to 3 of 3

Thread: Ldife Import / Export problem

  1. #1
    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
    :)

  2. #2
    Join Date
    Jan 2006
    Posts
    830

    Re: Ldife Import / Export problem

    It seems to me that the partition, or a required subtress of, DC=education, DC=fr that you are trying to import into does not exist on PL2DEST?

  3. #3
    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

Similar Threads

  1. How to Export and Import DATA from Tally
    By SoftwareGuy in forum Tips & Tweaks
    Replies: 3
    Last Post: 08-03-2012, 03:18 AM
  2. Import & Export Data
    By AnkitSingh007 in forum Off Topic Chat
    Replies: 2
    Last Post: 09-12-2011, 04:18 PM
  3. Navicat New database import and export
    By Zindin in forum Software Development
    Replies: 2
    Last Post: 04-04-2009, 11:09 AM
  4. Why won't Project Import/Export to/from Excel
    By aghuvi in forum Microsoft Project
    Replies: 2
    Last Post: 19-12-2008, 06:58 AM
  5. DNS Import and export utility
    By Kumar in forum Windows Server Help
    Replies: 1
    Last Post: 17-10-2008, 08:33 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,703,487.62575 seconds with 16 queries