Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
B

bud80

@bud80
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Active Directory - Reset password
    B bud80

    I try to explain better.. With my application i can create user and store it to active directory. I set for the user a default password. With this credentials user can login into Windows: if it's the first access, Windows ask to change the password. If a user losts the password, my application allow to reset it, and set a new default password. Now when the user login into Windows, the system have to re-ask to change the password... How can I do this? The code to reset the password is below DirectoryEntry uEntry = GetDirectoryEntry(Path); uEntry.Invoke("SetPassword", new object[] { "NewPassword"}); uEntry.Properties["LockOutTime"].Value = 0; //unlock account int flags = (int)uEntry.Properties["userAccountControl"][0]; uEntry.Properties["pwdLastSet"].Value = -1; uEntry.CommitChanges(); uEntry.Close();

    ASP.NET csharp asp-net windows-admin question

  • Active Directory - Reset password
    B bud80

    I made an application with asp.net 2.0 (c#) to manage users in active directory. I need to reset the user's password and at the first access The system have to ask me to change the password. Any Idea?

    ASP.NET csharp asp-net windows-admin question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups