Monday, March 26, 2012

Windows authentication - disabling password

I'm a new in ASP.NET Word. Just finishing writing my first web
application (CMS). It should be available anonymously for all users, but
some part (admin) should be available only for some (authenticated) users.
For folder with admin pages I turned off "enable anonymous access" and
checked "Integrated Windows authentication". It works fine, only users
after logon can use this part of website, but I don't want to display
user and password window. What I need is to automatically authenticate
user basically on windows login. It is possible ? How to configure IIS
and application to turn off this window and authenticate automatically ?
disabling
best,
SlawomirTurn off integrated windows authentication and use
roles based authentication, setup the roles in web.config,
and use location tags to mark a directory as available to admins.

See a complete sample at :

http://www.codeproject.com/aspnet/formsroleauth.asp
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espanol : http://asp.net.do/foros/
======================================
"Slawomir" <spasko.usunto@.o2.plwrote in message news:fhjrq6$g2q$1@.node1.news.atman.pl...

Quote:

Originally Posted by

I'm a new in ASP.NET Word. Just finishing writing my first web application (CMS). It should be available anonymously
for all users, but some part (admin) should be available only for some (authenticated) users.
For folder with admin pages I turned off "enable anonymous access" and checked "Integrated Windows authentication". It
works fine, only users after logon can use this part of website, but I don't want to display user and password window.
What I need is to automatically authenticate user basically on windows login. It is possible ? How to configure IIS
and application to turn off this window and authenticate automatically ?
disabling
best,
Slawomir


Juan T. Llibre pisze:

Quote:

Originally Posted by

Turn off integrated windows authentication and use
roles based authentication, setup the roles in web.config,
and use location tags to mark a directory as available to admins.
>


Thanx for advice, but I need to use windows authentication. The major
problem is that most of the users in AD doesn't know the password. Whole
corporation use intelligent cards to log on.

best,
Slawomir
Set the permissions (ACLs) on the physical directory that needs to be
"windows auth" protected to the appropriate AD Group.

--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com
"Slawomir" wrote:

Quote:

Originally Posted by

>
Juan T. Llibre pisze:

Quote:

Originally Posted by

Turn off integrated windows authentication and use
roles based authentication, setup the roles in web.config,
and use location tags to mark a directory as available to admins.


Thanx for advice, but I need to use windows authentication. The major
problem is that most of the users in AD doesn't know the password. Whole
corporation use intelligent cards to log on.
>
best,
Slawomir
>


set the default domain (iis setting for site) to the most common. the
browser does not send the domain name, the mismatch is what causes the
dialog.

-- bruce (sqlwork.com)

Slawomir wrote:

Quote:

Originally Posted by

I'm a new in ASP.NET Word. Just finishing writing my first web
application (CMS). It should be available anonymously for all users, but
some part (admin) should be available only for some (authenticated) users.
For folder with admin pages I turned off "enable anonymous access" and
checked "Integrated Windows authentication". It works fine, only users
after logon can use this part of website, but I don't want to display
user and password window. What I need is to automatically authenticate
user basically on windows login. It is possible ? How to configure IIS
and application to turn off this window and authenticate automatically ?
disabling
best,
Slawomir


Here is the answer:
I needed to put my website IP address into local intranet zone in IE
(temporary) or AD (later)

best,
Slawomir

0 comments:

Post a Comment