Re: Err got when update pwd in Active directory

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks for replay, Jorge.
Here is the main part of the code:

Set objUser =
GetObject("LDAP://CN=MyAccount,OU=Controlled,OU=Functional,OU=Com1
Users,DC=Com1,DC=Com2")

'GENERATE A PASSWORD
strTempPassword = "AgecjAjs"

'SET THE ACCOUNT ACTIVE VIA ADSI
objUser.IsAccountLocked = 0

'SET THE ACCOUNT PASSWORD TO THE TEMPORARY PASSWORD
objUser.SetPassword strTempPassword

'SET THE ACCOUNT TO RESET WITHIN 24 HOURS
objUser.AccountExpirationDate = dteExpire

'COMMIT THE ADSI CHANGES
objUser.SetInfo

Can someone give me any suggestion?

.



Relevant Pages

  • Re: Err got when update pwd in Active directory
    ... strTempPassword = "AgecjAjs" ... 'SET THE ACCOUNT ACTIVE VIA ADSI ... 'SET THE ACCOUNT PASSWORD TO THE TEMPORARY PASSWORD ... objUser.SetPassword strTempPassword ...
    (microsoft.public.win2000.active_directory)
  • Re: The "Lunch Break Hole"
    ... you do not need to be an Administrator or a Domain ... > about any account on this domain... ... ADSI security is regulated by the ACLs you place on the objects in the ... When building an e-commerce site, you want to start with a strong, secure ...
    (NT-Bugtraq)
  • catch an 401.2 error
    ... authenticate against a database or against ADSI. ... clients are) should an automatic authentication against ADSI ... an ADSI account) or from outside (user can be an employee ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • catch 401.2 error
    ... authenticate against a database or against ADSI. ... clients are) should an automatic authentication against ADSI ... an ADSI account) or from outside (user can be an employee ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Password Complexity
    ... It is really a limitation of how ADSI works. ... Enable account ... :) Joe Richards on the other hand... ...
    (microsoft.public.windows.server.active_directory)