Re: using dsadd remotely

From: Stew Basterash (stewartbash_at_hotmail.com)
Date: 03/31/04


Date: Wed, 31 Mar 2004 08:27:51 -0600

The problem with W2K3 is the password policy... I had this very issue...
Change password policy, or change your password to make it meet the
complexity requirments of W2K3... I was lucky... My script included a file
that contained usernames and passwords... only one met the complexity
requirements... it was obvious when all accounts were created but only one
was enabled...

"Stivie S." <stefan.suesser@computacenter.com> wrote in message
news:387B4D5A-F408-49F6-99FA-9CB345A9EF54@microsoft.com...
> Hi Derek,
>
> my 2nd thought was that your domain may use a password policy that
prevents setting the password you specify in your script. For example, when
I try to run the "dsadd" command against our W2K3 AD domain without
specifying a password that meets our password policy, I get the following
error:
> "dsadd failed:cn=test12345,ou=myOU,dc=domain,dc=com:Unable to update the
password. The
> value provided for the new password does not meet the length, complexity,
or history requireme
> nt of the domain."
>
> However, the user account gets created but is "disabled"
>
> ----- Derek Melber [MVP] wrote: -----
>
> Stivie,
>
> I had considered that, and included the -samid, but got the same
error. So,
> I took your line of thought and even added a password, since AD
requires it.
> I still get the same error, with -samid and -pwd.
>
> --
> Derek Melber
> BrainCore.Net
> derekm@braincore.net
> "Stivie S." <stefan.suesser@computacenter.com> wrote in message
> news:14FAEFCA-701F-4F96-A949-64E5ED68D09C@microsoft.com...
> > Hi Derek,
> >> as you may know, the user-class in Active Directory has mandatory
and
> optional attributes. The mandatory attributes must be set when a new
user is
> created, the optional attributes may be set, but are not required.
> > From the AD schema documentation, there are 8 mandatory attributes
for the
> user class. 6 of them are set automatically by the system, the other
two you
> have to specify when you create a user. These two attributes are
"common
> name" and "sAMAccountName".
> > You provide the "common name" in your "dsadd" call, so I would try
to add
> the user with specifying the sAMAccountName, in addition. As dsadd
tries to
> "guess" the sAMAccountName when you do not provide one, make sure
that the
> samID you specify when calling "dsadd" is unique in your domain.
> >>> ----- Derek Melber [MVP] wrote: -----
> >> Any dsadd guru's out there?
> >> I am just testing and playing with dsadd and it seems to be a
quirky
> command. I have my 2k3 DC and my XP Pro client (joined to the
domain). I am
> logged into my XP Pro box as a domain admin from the DC. I run the
dsadd
> tool to create a user in the domain using the following syntax:
> >> dsadd user "cn=user1,ou=ou1,dc=acme,dc=local" -s dc1
> >> I get the following back:
> >> dsadd failed:cn=user1,ou=ou1=dc=acme,dc=local:The network
path was
> not found.:Set password failed.
> >> Then, I go to DC1 and the user is created!
> >> Any ideas?
> >> --
> > Derek Melber
> > BrainCore.Net
> > derekm@braincore
>
>
>



Relevant Pages

  • Re: Password Policy Issue
    ... I have no complaints w/ security and the password complexity to enhance ... > The password policy can only be set at the domain level, ... >> Max password age 365 ... >> The password does not meet the password policy requirements. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Cant get password right in ADAM
    ... password policy on the server whereas ADAM on WinXP is not subject ... on W2K3 then the account is set to disabled if no valid password ... "Lee Flight" wrote: ...
    (microsoft.public.windows.server.active_directory)
  • Re: programmatically reading password policy or check the complexi
    ... I think I sent you down the wrong path with the LSA APIs. ... I don't see one there that will get you whether or not password complexity is enabled. ... I searched out the Lsa* APIs, but i am not sure which one is what i need. ... I also have another solution to find out the password policy, ...
    (microsoft.public.windows.server.active_directory)
  • Re: Unable to create user after promote Windows 2003 Server DC
    ... but i have changed the password policy ... under the domain level, how come it doesn't change, what ... Regards ... >Does you password meet the password complexity ...
    (microsoft.public.windows.server.general)
  • Re: First time Defining Password Policy
    ... You can change the password policy to additional complexity without the ... Also communicate the password must be changed each ... my company have never had any password policies defined ...
    (microsoft.public.windows.server.active_directory)