Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > ActiveDirectoryMembershipProvider without storing username and password?

Thread Tools

ActiveDirectoryMembershipProvider without storing username and password?

Posts: n/a

I am trying to create an ASP login page that authenticates against AD.

Is there any way to setup a connection string in web.config that does not
store a user name and password?

If I do this, it works great, but I need to modify the web.config every time
the password changes:

<add connectionStringName="NorthAmericaConnectionString "
attributeMapUsername="sAMAccountName" enableSearchMethods="true"
type="System.Web.Security.ActiveDirectoryMembershi pProvider, System.Web,
Version=,Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionUsername="username" connectionPassword="mypass"/>

As everyone who will be logging in is authorized to search AD, I don't see
why I cannot use the login information from the login form?

Does Microsoft really expect me to either use a non expiring password, or
change all my web.config files on password expiration?



Reply With Quote
Posts: n/a
If your shop requires you to use expiring passwords for services and
app pools and the rest how is that currently managed and can you fit
this in with that?

It looks like you can use machine$ or the app pool id instead.

How To: Use Membership in ASP.NET 2.0

.... If you do not specify account credentials, your application's
process identity is used to access Active Directory, regardless of
whether your application uses impersonation....

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveDirectoryMembershipProvider and SqlRoleProvider Max2006 ASP .Net 1 06-10-2008 02:57 AM
User Images: Storing in Files VS Storing in Database Jonathan Wood ASP .Net 1 06-02-2008 05:56 PM
loginview control displays network username instead of (web) username Shailesh Patel ASP .Net Web Controls 0 11-08-2006 08:19 PM
storing pointer vs storing object toton C++ 11 10-13-2006 11:08 AM
Change the username found in "C:\Documents and Settings\Username" The Reluctant Robot Named Jude Computer Support 1 05-05-2004 07:11 AM