Announcement

Collapse
No announcement yet.

Dsadd And dsmod failed error

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dsadd And dsmod failed error

    Hi
    I try to use dsadd and dsmod queryes to add or change, users or group...
    But allways it says object cannot find or something like this.
    It seems the syntax is currect, I can't see why it dosent work???!!!
    Please help me
    thank you all
    Last edited by maryam.tooty; 26th May 2009, 07:45.

  • #2
    Re: Dsadd And dsmod failed error

    Welcome to Petri, maryam
    Can you post the exact commands you are using (change domain names to protect the innocent)
    Also, what server OS and service pack are you on?
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Re: Dsadd And dsmod failed error

      Thank you
      a command for example :
      Dsadd user "CN=a b,OU=People,DC=ney,DC=pnu,DC=ac,DC=ir"</p> -samid a.b -pwd * -mustchpwd yse -hmdir\\SERVERNAME\USERS\%USERNAME%\...
      I also use LDIFDE and CSVDE no rresult

      I use windows server 2008 SP1

      Comment


      • #4
        Re: Dsadd And dsmod failed error

        Is the </p> really in your command?
        Without that it works with:
        -pwd * prompts (twice) for password
        -mustchpwd yes
        -hmdir picks up the current username (e.g. administrator)
        Tom Jones
        MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
        PhD, MSc, FIAP, MIITT
        IT Trainer / Consultant
        Ossian Ltd
        Scotland

        ** Remember to give credit where credit is due and leave reputation points where appropriate **

        Comment


        • #5
          Re: Dsadd And dsmod failed error

          I forget '</p>' and It still get the same error messageThank you however

          Comment


          • #6
            Re: Dsadd And dsmod failed error

            What is the exact error message?
            Try building up the command bit by bit:
            dsadd user "CN=.....dc=ir" (should give you a disabled account)
            Delete the account then add the -pwd * (should prompt for new password twice)
            Keep going (delete account each time) until you find the step where it fails
            Tom Jones
            MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
            PhD, MSc, FIAP, MIITT
            IT Trainer / Consultant
            Ossian Ltd
            Scotland

            ** Remember to give credit where credit is due and leave reputation points where appropriate **

            Comment


            • #7
              Re: Dsadd And dsmod failed error

              error message :
              Dsadd failed:CN=....dc=ir:directory object not found.
              Exactly no user account created by using dsadd.

              Comment


              • #8
                Re: Dsadd And dsmod failed error

                OK, so check the exact spelling and path of your CN, OUs and DCs (I used ... to save typing everything so I hope you used "CN=a b,OU=People,DC=ney,DC=pnu,DC=ac,DC=ir" as you gave in post #3)
                Tom Jones
                MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
                PhD, MSc, FIAP, MIITT
                IT Trainer / Consultant
                Ossian Ltd
                Scotland

                ** Remember to give credit where credit is due and leave reputation points where appropriate **

                Comment


                • #9
                  Re: Dsadd And dsmod failed error

                  Thanks Tom, but i tryed before and got no result!

                  Comment

                  Working...
                  X