Solved

Active Directory Membership Provider

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
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…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

726 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