473,386 Members | 1,741 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to Code in VS.net to Change AD User's Password

In my web application, I need to authenticate users to the AD and allow users to change the password. From my readings, I find out that I have to use DirectoryEntry class to authenticate the users with password. I do that OK. But I still cannot find a way to allow users to change the password. Can anyone help? Thank you.

Ching
Nov 18 '05 #1
3 4078
Hi Ching,

The following tutorial includes a method for changing and saving a user
password through Active Directory. Note that the examples work with the
"WinNT" provider. If working with a domain Active Directory, you will need
to work with the "LDAP" provider.

http://www.15seconds.com/issue/020730.htm

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Ching Liang" <cl******@hotmail.com> wrote in message
news:O0*************@tk2msftngp13.phx.gbl...
In my web application, I need to authenticate users to the AD and allow
users to change the password. From my readings, I find out that I have to
use DirectoryEntry class to authenticate the users with password. I do that
OK. But I still cannot find a way to allow users to change the password.
Can anyone help? Thank you.

Ching
Nov 18 '05 #2
How about setting the new password to the DirectoryEntry object, and
then call the CommitChanges method.

Tommy,

"Ching Liang" <cl li***@hotmail.com> wrote in message news:<O0*************@tk2msftngp13.phx.gbl>...
In my web application, I need to authenticate users to the AD and allow
users to change the password. From my readings, I find out that I have
to use DirectoryEntry class to authenticate the users with password. I
do that OK. But I still cannot find a way to allow users to change the
password. Can anyone help? Thank you.

Ching
--

Nov 18 '05 #3
I tried that and it did not work. I was hoping it would be that simple but it turned out not so. I am digesting Kevin's response. It seems that there are more security involved, such as impersonation.

Ching

"Tommy" <We**********@Hotmail.com> wrote in message news:a8**************************@posting.google.c om...
How about setting the new password to the DirectoryEntry object, and
then call the CommitChanges method.

Tommy,

"Ching Liang" <cl li***@hotmail.com> wrote in message news:<O0*************@tk2msftngp13.phx.gbl>...
In my web application, I need to authenticate users to the AD and allow
users to change the password. From my readings, I find out that I have
to use DirectoryEntry class to authenticate the users with password. I
do that OK. But I still cannot find a way to allow users to change the
password. Can anyone help? Thank you.

Ching
--

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sigi | last post by:
Hi guys. I am new member in this group. I am also new to Visual C++. I am developing a new system. I have a password to enter the system. The user should have a choice to change his/her password...
1
by: Mark | last post by:
Hi all I can write basic VBA code. I have on problem, I have a tbl with the following fields: lngempID - Name - Password - IN This is for a logon form once the user logon I want the field IN to...
2
by: MLH | last post by:
What's the simplest way to allow a user of an A97 app to change password?
2
by: J | last post by:
Hello. I apologize if this isn't the appropriate group for this question but I was wondering if it's possible to allow regular windows domain users to change their passwords through an .asp page? ...
3
by: W C Hull | last post by:
We have a request from Auditing to modify the password an a local workstation administrative account every 90 days. We are developing two programs - a VB6 GUI program that will allow the...
1
by: roshina | last post by:
Hi Iam facing a problem in my project, developing a web site for online shopping in ASP on windows XP using IIS server. All the validations are ok but the new password is not upadated in the data...
2
by: yasinirshad | last post by:
Hi, Please see my below code to change password. Here i need to check for old password from database and need to update new password. But when i try to submit by giving wrong old password ,its...
1
by: eighthman11 | last post by:
Hi everyone: I created a custom toolbar called Password, so users can change their password. I used the Command "User and Group Accounts". I know the user can not change anything in the Tab...
0
by: shellegreen | last post by:
Hello, I need help with some password changes that I have to do in some iPAQs. The company that I work has 3 models of iPAQ and 3 different versions of Windows Mobile (Microsoft Pocket PC...
4
by: =?Utf-8?B?QXZhRGV2?= | last post by:
ASP.Net 2. We are migrating to Windows 2008 64 bit Server with IIS 7 from Windows 2003 32 Bit with IIS 6. A few library classes we wrote uses impersonation in code like explained in this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.