Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 6th, 2005, 02:47 AM
Registered User
 
Join Date: Jan 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to chandu80
Default Changing Password in Active Directory

I am using Active directory for Authentication from my aspx page. I provided the option for changing the password.
I couldable to change the Password in Active Directory.

The problem when login it is taking both old password and new password. If i rebuild the project then it is taking only new password. How Can i rectify this.

Please help me

The Code is given Below

Dim deSearch As DirectorySearcher = New DirectorySearcher
                deSearch.SearchRoot = de
                deSearch.Filter = "(&(objectClass=user) (sAMAccountName=" + Trim(txtlogin.Text) + "))"
                Dim result As SearchResult = deSearch.FindOne()
                result.GetDirectoryEntry.Invoke("ChangePassword", New Object() {Trim(txtpwd.Text), newPassword})
                de_user.CommitChanges()
                result.GetDirectoryEntry.CommitChanges()
                de_user.RefreshCache()





Similar Threads
Thread Thread Starter Forum Replies Last Post
Active Directory TCSE305 Windows Server 1 November 22nd, 2006 01:26 AM
About Active Directory apalmero VB How-To 1 April 8th, 2005 04:06 PM
Active Directory - help! bubmachine General .NET 2 August 3rd, 2004 04:45 PM
About Active Directory apalmero VS.NET 2002/2003 1 November 9th, 2003 01:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.