Solved

Active Directory Membership Provider

Posted on 2008-10-27
4
777 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
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 250 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Prevent call a sub/function several times when data bind to gridview 21 29
mail.To.Add 5 26
ASP.net File format issue in producing Excel file 3 37
vb.net 1 month apart 11 30
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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

777 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