I have been able to create a working ASP.NET web form authentication with Active Directory following this tutorial.
I have two questions (one of them might be specific to my need):
I put in my own username and password in the
membershipelement inweb.configforConnectionUsernameandConnectionPassword. It seems strange to me that while I am authenticating all users in the domain I need to put my own username and password in theweb.config. I would imagine that the username and password from the login form should be used for this, unless I understand this incorrectly. Whoseusernameandpassworddo we usually put in theweb.configinmembershipelement?Out of hundreds of users in the domain, I need to give access to several users (let's say 20 of them) to several pages. I read about Active Directory access control but I don't want to go down that path. Is it common and sensible to have a table in the database with a list of usernames that has access to those special pages and do a match whether a logged-in user is in that table and authorize if so?
Thank you for your input.