I am currently developing a staff and student portal for my college. I look into LDAP to authenticate and authorize users (I am using VS 2005 C# to do this). However, as most you know at this forum, .htm, .pdf, and etc are not protected by the ASP.NET security. I have done some reading and found that you can change this problem in IIS.
If this solution hasn?t been posted, select your project in IIS and choose properties. Next on the Directory tab find the Configure Button and click it. After you do that you?ll be on the Mapping tab, click the Add button. This will take you to another window, where you will browse for the aspnet_isapi.dll file. After you have found that file all you have to do is add the extension you wish to protect (like .pdf).
After showing this process, is there an easier way? Maybe using web.config? I can read XML, but I don?t know much about it to make anything work for me.
Another neat thing that my portals I?m creating might contain is a password change and reset page. So my next question is how can I make sure my page is more secure? Like I mentioned before, I am using Forms Authentication. I also have Digested and Integrated Authentication checked, but I have it setup for anonymous access so I can make my login page work. After I deploy my portals they will be on SSL. However, this will make it impossible for me to see what the attacker done if we were compromised. Any suggestions will be welcomed. I?m relatively new to C# and security.