I have an application thats going to use Active Directory for Authentication. This will be used in mnay locaitons, so I want the user to be able to input their AD domain into a settings file. So, the first time they run this app, they won't be able to login, because they haven't entered the AD Domain name, so want I want to do, is check the web.config to see if there is an ADName value in there, if there isn't, forward them to the settings page, if there is, then they should be asked to authenticate and then forwarded to the index page. Is this possible?
In particualr what I need to know, is the best way to make it so the settings page does not require authetnication if the ADName value is empty, but does if it is not.