Solved

Active Directory Membership Provider

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

730 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