Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 6th, 2005, 02:47 AM
Registered User
 
Join Date: Jan 2005
Location: Bangalore, Karnataka, India.
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()
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:46 AM.


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