authenticate user using WINDOWS login

Hi,
we have a asp.net 2.0 web application built, but recently decided to redo the login section, rather than using forms authenticate, we decided it might be better to use windows login, as it's an intranet application and might make it easier on the user to remember one less login. We also need to drop a session property once the user is logged in, as the remainder of the site already looks for that value, are there any samples on how to customize the login against WINDOWS passwords? Samples to show how to set it up and how to custom authenticate the check for whether the user/pass is valid or not, so if valid we can add that extra session property in  as well.

thanks.

0
pdassnyc
5/4/2009 2:29:28 PM
asp.net.security 27051 articles. 1 followers. Follow

3 Replies
1243 Views

Similar Articles

[PageSpeed] 5
Get it on Google Play
Get it on Apple App Store

Hi,

In your web.config change the configuration like this

<authentication mode="Windows">

</authentication>

in IIS take the properties of your project and in one of the tabs select Windows Authentication and remove check from Annonymous access if it is checked.

Run your site. Now you should see a popup like window asking for User name and password.


Faraz Shah Khan
MCP, MCAD.Net, MCSD.Net, MCTS-Win/Web, MCPD-Web
Blog
0
farazsk11
5/4/2009 2:53:21 PM

 Thanks, but what if i don't want a popup? i want to keep the form on the asp.net page, have the user type in their login and then authenticate it?

0
pdassnyc
5/4/2009 2:57:48 PM

Well you can have a look at this post to understand further http://msdn.microsoft.com/en-us/library/ms998358.aspx and you can probably find your answer in this post http://forums.asp.net/t/1295710.aspx (In short your browser will not promput you if your site is added in trusted website).

Hope it will help you out.


Faraz Shah Khan
MCP, MCAD.Net, MCSD.Net, MCTS-Win/Web, MCPD-Web
Blog
0
farazsk11
5/4/2009 8:06:55 PM
Reply:

Similar Artilces:

How do I use the Login with Windows User Logins?
I would like to use the windows user logins for my intranet, but am unsure how I would use the roles, etc. for this. Any suggestions?"Sometimes I spend so much time going the wrong direction on a problem. K.I.S.I.S = Keep It Simple I'm Stupid :)"Matt Check out these articles:msdn2.microsoft.com/en-us/library/ms998358.aspxmsdn2.microsoft.com/en-us/library/aa480475.aspxHope this helps,Vivek Social Networking Platform in ASP.NET || Join now: CodeASP.NET Community Please mark the most helpful reply/replies as "Answer". I guess what I'm trying to do is get ...

Manual authentication of user using Login Control .Net 2.0
Hi,I have used login control in my .net 2.0 application as login control maintain all thing like user id, password, roles etc...Now i have to integrate my application with other one so i want that if some one logged in at some other side and that same user id and password is valid for my site then user can directly logged in to my system. Means i have one link at other site when user click on that i will call login page (pass user id and password to my site), now at my page i will check that user is and password if valid then i will directly redirect that uer to my site home page. ...

Windows Authenticated Website
I have a website using Integrated windows authentication. I'm using the follow code called from a pop-up window to show word, excel, csv, text, and pdf files within the browser or by forcing a download using the content type header. The problem is that when I try to display excel files within the browser by using below code, I get a Windows Login Prompt even though the user has already logged in once already in the parent window that the popup was called from. In Windows XP (IE7) I hit cancel without logging in and the document displays just fine. In Vista, if I hit cancel the ...

Getting Windows User's Login and Domain while using Forms Authentication
I am using Forms Authentication, in an intranet application for reasons not worth getting in to. I have left anonymous off and kept Windows Integrated Security on. Is there a way for me to get the user's windows login and domain. I have tried using Environment and Thread.CurrentPrincipal.Identity to retrieve this information but no luck. Any information will help. Thanks!!! cceccanti User.Identity.Name should work...Starting with ASP.NET 2.0? Look at:Programming Microsoft Web Forms My Blog Unfortunetly this does not work when you have. <authentication mode="Forms&quo...

Login failed for user '(null)' error when trying to use Windows authentication
I'm working on an ASP.NET project, and we're attempting to switch from SQL Server authentication to Windows authentication to connect to the database. It works fine locally when I debug in Visual Studio, but when it hits the web server, I get the error: "Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection." IIS has anonymous access disabled, and Integrated Windows Authentication is checked. The web.config file has: <authentication mode="Windows"/><identity impersonate="true"/> The database I'm attempting to access is on a different mach...

login security issue
I see 2 boys sitting together that are not supposed to be. When questioned, they said...well...Brandon can't remember his I.D. number so I just let him use my username and password. �If we type it in and hit enter at the exact same time it will log us both in!!!! �I watched them and it worked. Consecutive logins are set at 1. Has anyone seen this.......is there a fix? Netware 6, service pack 3, Windows 98, Novell Client 3.3 >Consecutive logins are set at 1. Concurrent. >Has anyone seen this.......is there a fix? Many many times. Someone reports this he...

Windows Authentication Replace Remote User Login Popup With Page Login
 Hey,I have a corporate intranet and when the users are local we use single sign-on and they are automatically authenticated and they move on about their business. Sadly, when they browse the intranet remotely, most users don't uderstand that the login needs to be 'domain\ussername', not just username which of course submits mysite.com\username. Anyway, How can I replace that login popup with a page redirect to a login web page. All of my users are on one domain so I could assume that much for them. The end result is that when they logon from home, I want them to be redirect...

How to open the NT user login window to force user to re-authenticate?
As our app is moving to start using NT user authentication, there is a need for the user to re-authenticate themselves before logging into the app, due to security issues with some of the financial data contained within. Does anyone use what Windows API we have to call to open the regular network login window and force the user to re-authenticate (i.e. re-enter their password) and find out if it was successful? thank you, Jacek Can you elaborate a bit. What's the point of this "re-authentication"? > As our app is moving to start using NT user authentication...

How to authenticate users using user login and password stored in SQL database?
Hi. I have a DetailsView with Bound Fields "Login" and "Password". This informations are stored in SQL database. How to solve such authorization? How to compare password stored in database against passowrd typed by user? Is this a good idea to use CustomValidator control to write some checking procedure?. Regards. Pawel. When you click the login button. Perform a select query to your database that gets the password for the given loginname. Then compare the two passwords. Good luck!Johan TheunissenMCPD, MCSE, MCTS BizTalk 2006==============================Please mark the most helpful rep...

How to authenticate users using user login and password stored in SQL database?
Hi. I have a DetailsView with Bound Fields "Login" and "Password". This informations are stored in SQL database. How to solve such authorization? How to compare password stored in database against passowrd typed by user? Is this a good idea to use CustomValidator control to write some checking procedure?. Regards. Pawel. A custom validator control probably isn’t the best choice to validate the user password.  Typically websites avoid acknowledging that the username is in the system if the password is incorrect.  I’d take a look at the ASP.Net Membership Provider.  You can cr...

How to use user/password authentication/security within users' public_html folders
Hello, I have NW5.1SP5.1.5 and Netware Enterprise Web Server 3.5.3 installed. Can I provide my account owners the ability to use user/password authentication/security within their public_html folders of their home directories ? Regards. Mustafa Cagatayli: > within their public_html folders of their home > directories ? > sure, go into the admin server, click the Restrict Access link, and remove PUBLIC_HTML from the list of public directory designations. Joe Moore Novell Support Connection Volunteer Sysop http://just.fdisk-it.com - Coming soon: &q...

login using window authentication
hi, what should I put in my code if I wanted to use window authentication to log in to my program instead of the usual form login. Thanks in advance. Below link has info on how to use windows bas authentication http://www.dotnetjunkies.com/quickstart/aspplus/doc/windowsauth.aspxSreedharhttp://www.w3coder.orgweblog http://weblogs.asp.net/skoganti...

Login script using @NET USE for login name
--____SJDNMAUHJRPPCUAIVNQS____ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 Content-Disposition: inline; modification-date="Thu, 27 Aug 2008 11:50:31 -0400" Q3VycmVudGx5IHVzaW5nIHRoZSBmb2xsb3dpbmcgdG8gbWFwIGEgaG9tZSBkaXJlY3Rvcnkgb24g YSBNQUMgT1NYIHNlcnZlciBmb3IgdXNlcnMgbG9nZ2luZyBpbnRvIGEgTmV0d2FyZSA2LjUgc2Vy dmVyLg0KDQpJRiBMT0dJTl9OQU1FPCJFIiBUSEVODQogICBATkVUIFVTRSBIOiBcXFNKUFMtT1NY MVxIT01FX0RJUkVDVE9SSUVTXFRFQUNIRVJTQS1EXCVMT0dJTl9OQU1FICAvUEVSU0lTVEVOVDpO Tw0KICAgV1JJVEUgIk1BUFBJTkcgVE8gT1NYMSINCkVORA0KDQpUaGlzIHdvcmtzIGZvciB1c2Vy cyB3...

System.Data.SqlClient.SqlException: Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.
I am trying to deploy the application with  Windows Authendication to SQL server, I am getting the fallowing error Message  System.Data.SqlClient.SqlException: Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. connectionString="Data Source=XXXXX;Initial Catalog=YYYYY;Integrated Security=SSPI" The ASPNET account will not have access to My  SQL Server & SQL server will run only in Windows authendiaction mode I hope the error is this Process name: aspnet_wp.exe Account name: XXXXX\ASPNET   is there is a...

Web resources about - authenticate user using WINDOWS login - asp.net.security

HID Global and Botosoft Launch Mobile Student ID System in West Africa to Authenticate Over 2 Million ...
CSO Australia - News, Industry Blogs, Tools and Resources for Data Security Executives

New IBM tech lets apps authenticate you without personal data
Back in January IBM announced Identity Mixer, a new technology for protecting users' personal data during authentication. On Friday, it announced ...

Cable providers still leery of Apple TV, some refuse to authenticate 'HBO Go' app
In an interview on Thursday, HBO's CTO Otto Berkes outlined the troubles in bringing a totally in-house app to the Apple TV, but the bigger challenge ...

Eureka! Sports site authenticates users sans the password hassle
We've all been there at some point—tempted to create a user account on a website that's mildly interesting, but the hassle of creating yet another ...

Google makes it easier to authenticate e-mail
... e-mail with just a few clicks in a control panel. Google announced today that it is making it easy for organizations using Google Apps to authenticate ...

CNN.com - CBS' experts say they didn't authenticate Bush memos - Sep 15, 2004
... memos alleging President Bush received special treatment during his service in the Texas Air National Guard told CNN Tuesday they did not authenticate ...

Insert Coin: PIPA Touch fingerprint reader lets phone owners authenticate most anything
In Insert Coin, we look at an exciting new tech project that requires funding before it can hit production. If you'd like to pitch a project, ...

Berkeley researchers authenticate your identity with just your brainwaves, replace passwords with passthoughts ...
In the future, instead of trying to type your mixed-case, numbers-and-punctuation on a painfully small smartphone screen, logging in might be ...

Forget Passwords: This Startup Wants To Authenticate Your Mind
Biocatch detects fraud and identity theft based on your online behaviors. Most online identity security today is based on what you know (like ...

Toss the Token and Let the PC Authenticate You
There are various ways to achieve secure network authentication with perhaps the best known being two-factor authentication – something you have ...

Resources last updated: 11/21/2015 7:17:14 PM