authentication - How to authenticate by using windows credentials in c# web application under form authenticate mode -


i developing web application , application must satisfy these requirement:

the application need support authentication active directory , sql membership provider. if logged-in window account of actor window account existed in database, system show homepage , not show login form. otherwise, system shows login form user enter username , password login.

the problem here is: can't windows account (username/ password) , base on username, check against database continue show homepage or show login page. how can username , password?

notice in iis, system configured under form authentication, not windows authentication.

web.config:

<authentication mode="forms"> 

i tries such : windowsidentity.getcurrent(). environment.name, ... doesn't work.

could please help?

great thanks.

providing link..hope http://www.codeproject.com/articles/94612/windows-authentication


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

java - Log4j2 configuration not found when running standalone application builded by shade plugin -

python - How do I create a list index that loops through integers in another list -