Problems using ldifde to manage group accounts

Discussion in 'Windows Server 2003 / 2008 / 2012 / 2016' started by jec69, Feb 18, 2009.

  1. jec69

    jec69 Bit Poster

    32
    0
    14
    I'm currently studying the 70-290 MS press book, and in chapter 4, exercise 3, after typing the command, i'm getting the following error message:

    "Unable to read the import file newgroup.ldf.
    No log files were written. In order to generate a log file, please specify the log file path via the -j option."

    has anybody had the same problem?

    thanks
     
    Certifications: A+ Network+
    WIP: MCSE
  2. BosonMichael
    Honorary Member Highly Decorated Member Award 500 Likes Award

    BosonMichael Yottabyte Poster

    19,183
    500
    414
    Out of curiosity, have you tried specifying the log file path using the -j option? Error messages exist for a reason... ;)
     
    Certifications: CISSP, MCSE+I, MCSE: Security, MCSE: Messaging, MCDST, MCDBA, MCTS, OCP, CCNP, CCDP, CCNA Security, CCNA Voice, CNE, SCSA, Security+, Linux+, Server+, Network+, A+
    WIP: Just about everything!
  3. jec69

    jec69 Bit Poster

    32
    0
    14
    okay I typed command:

    ldifde -j -i -f newgroup.ldf -s server01

    and it gave me error message: "unable to open log file"
     
    Certifications: A+ Network+
    WIP: MCSE
  4. BosonMichael
    Honorary Member Highly Decorated Member Award 500 Likes Award

    BosonMichael Yottabyte Poster

    19,183
    500
    414
    Can you paste the contents of your newgroup.ldf file?
     
    Certifications: CISSP, MCSE+I, MCSE: Security, MCSE: Messaging, MCDST, MCDBA, MCTS, OCP, CCNP, CCDP, CCNA Security, CCNA Voice, CNE, SCSA, Security+, Linux+, Server+, Network+, A+
    WIP: Just about everything!
  5. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,624
    117
    224
    I know nothing about the command in question, but if -j needs a path for the log file then you aren't supplying one!

    i.e. should it be -j c:\log for example? (Where log is a directory).

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  6. jec69

    jec69 Bit Poster

    32
    0
    14
    okay i'm just going to type the file that the book is giving me:

    dn: CN=Management,OU=Marketing,DC=contoso,DC=com
    changtype: add
    cn: Management
    objectClass: group
    samAccountName: Marketing

    and the command is:

    ldifde -i -f newgroup.ldf -s server01

    hope this helps

    thanks
     
    Certifications: A+ Network+
    WIP: MCSE
  7. BosonMichael
    Honorary Member Highly Decorated Member Award 500 Likes Award

    BosonMichael Yottabyte Poster

    19,183
    500
    414
    Well... I wanted you to copy and paste the contents of your actual file, because otherwise, we're not gonna be able to see where your file is having problems. The reason I say that is because I've seen on the Internet where people accidentally use periods instead of commas on the dn: line, and that causes the same error that you got above.

    That said, if your ldf file is indeed as you typed it above, then you're missing an "e" from "changetype:".
     
    Certifications: CISSP, MCSE+I, MCSE: Security, MCSE: Messaging, MCDST, MCDBA, MCTS, OCP, CCNP, CCDP, CCNA Security, CCNA Voice, CNE, SCSA, Security+, Linux+, Server+, Network+, A+
    WIP: Just about everything!
  8. jec69

    jec69 Bit Poster

    32
    0
    14
    okay I pasted the following:

    dn: CN=Management,OU=Marketing,DC=contoso,DC=com
    changetype: add
    cn: Management
    objectClass: group
    samAccountName: Marketing

    sorry I could'nt paste earlier, it was another pc, and it don't have a cd burner, and the floppy dont work, but I was able to save it on the flash stick

    hope this helps
     
    Certifications: A+ Network+
    WIP: MCSE
  9. Simon-MCT

    Simon-MCT Bit Poster

    18
    3
    27
    Did you find a solution to this?

    A couple of things to make sure about.

    1) You are saving the file as newgroups.ldf and not newgroups.ldf.txt if you are using Notepad to create the file
    2) Make sure that the OU you are trying to create the group in does exist and that the full DN path is correct.

    I'd have to double check but the lines CN: Management and sAMAccountName: Marketing don't look right to me. I think they should be the same, eg if you're trying to create the group Management in an OU called Marketing it should look like this:

    dn: CN=Management,OU=Marketing,DC=contoso,DC=com
    changetype: add
    cn: Management
    objectClass: group
    sAMAccountName: Management <----- capitalisation can also have an effect! ---> sAMAccountName
     
    Certifications: MCSE:Sec;MCITP; MCTS; MCT; A+,Sec+
    WIP: CCNA

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.