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

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -