?
Solved

Active Directory Membership Provider

Posted on 2008-10-27
4
Medium Priority
?
780 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 18

Expert Comment

by:David Robitaille
ID: 22814264
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
ID: 22814570
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
ID: 22815238
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 1000 total points
ID: 22815492
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

Basic Security of Your VPC

So, you’ve got this shiny new VPC and a fancy new application configured on your EC2 servers ready to go. This application is only accessible from your computer, which is great for security, but you need your users to be able to access it! So, what’s the easiest way to do this?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

770 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