Solved

Active Directory Membership Provider

Posted on 2008-10-27
4
775 Views
Last Modified: 2012-06-21
Is there a way to configure this membership provider to use the current user's username and password with the changepassword control? My server team doesn't want me to have login information in the web.config file. Can anyone give suggestions?


<membership defaultProvider="MyADMembershipProvider">

			<providers>

				<add name="MyADMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="adConnection" connectionUsername="username" connectionPassword="password" attributeMapUsername="sAMAccountName" minRequiredNonalphanumericCharacters="0"/>

				

      </providers>

		</membership>

Open in new window

0
Comment
Question by:NickMalloy
  • 3
4 Comments
 
LVL 18

Expert Comment

by:David Robitaille
Comment Utility
well, ask the server team if the info is crypted?
http://aspnet.4guysfromrolla.com/articles/021506-1.aspx
 
0
 
LVL 18

Expert Comment

by:David Robitaille
Comment Utility
i just noticed the sentence is unclear. it should read :
Ask the server team if they could allow you to put that info int the webconfig if you crypt it ?
0
 

Author Comment

by:NickMalloy
Comment Utility
Is there anyway to get the <asp:changepassword control to use the current user's username and password to change there password? That way I can use my current setting with the provider?
0
 
LVL 18

Accepted Solution

by:
David Robitaille earned 250 total points
Comment Utility
http://msdn.microsoft.com/en-us/library/system.web.security.activedirectorymembershipprovider.changepassword.aspx
 The interesting part :
  • The ChangePassword method is used to update the user's password in the Active Directory data store. Regardless of the credentials that the ActiveDirectoryMembershipProvider instance is configured to use, the provider connects to the Active Directory server using the username and oldPassword parameters as the connection credentials.  
So, yes and you dont have to do anything to do so...
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This video discusses moving either the default database or any database to a new volume.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now