Ldifde

thickSkinthickSkin Member Posts: 45 ■■□□□□□□□□
Good Day

Been practising with LDIFDE and i keep getting this error.No log files were written. In order to generate a log file ,please specify the log file path via -j option.

I know that maybe something is wrong with my syntax that is why i need the log.err file to tell me what is wrong.

I created a folder on my G: drive called log and In my import command i included -j G:\Log so i do not understand the error. A ldif.log was created but it was empty.

Been baffling this. Help please.

Comments

  • earweedearweed Member Posts: 5,192 ■■■■■■■■■□
    What exactly were you trying to do with ldifde to begin with? The original commands may help someone to figure your problem.
    No longer work in IT. Play around with stuff sometimes still and fix stuff for friends and relatives.
  • thickSkinthickSkin Member Posts: 45 ■■□□□□□□□□
    was trying to import the following file NewUser.ldf

    dn: cn=Scot Thomas,ou=Employee,dc=contoso,dc=com
    changetype: add
    userAccountControl: 514
    UserPrincipalName: ScotT@contoso.com
    givenName: Scot
    sn: Thomas
    displayName: Scot Thomas
    SAMAccountName: Guy.Thomas
    objectClass: user
    -

    ldifde -i -f NewUser.ldf -s server01 -j G:\Log
  • earweedearweed Member Posts: 5,192 ■■■■■■■■■□
    thickSkin wrote: »
    was trying to import the following file NewUser.ldf

    dn: cn=Scot Thomas,ou=Employee,dc=contoso,dc=com
    changetype: add
    userAccountControl: 514
    UserPrincipalName: ScotT@contoso.com
    givenName: Scot
    sn: Thomas
    displayName: Scot Thomas
    SAMAccountName: Guy.Thomas
    objectClass: user
    -

    ldifde -i -f NewUser.ldf -s server01 -j G:\Log
    Your problem may just be that your info in the file is out of order. The correct order is
    DN:
    changeType:
    CN:
    ObjectClass:
    sAMAccountName:
    userPrincipalName:
    givenName:
    sn:
    displayName:
    mail:
    description:
    title:
    department:
    company:

    I also believe ALL info needs to be in your file. ie. include all of these.
    Hope this helps.
    No longer work in IT. Play around with stuff sometimes still and fix stuff for friends and relatives.
Sign In or Register to comment.