473,387 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Working with the Windows Authentication in ASP.NET

I have a problem related to the page authentication. . . i am trying to
implement the Windows authentication in the project,
I am using the LDAP services to fetch the details from the widows directory.
.. .

I mainly use the User.Identity.Name to fetch the user name and keep the
details in the session and passthrough where ever required

First Problem:
Even though the sessions are not expired the user is displayed with the
windows authentication form

Second Problem:
How to get the details of user along with the Groups Assigned to him

Third Problem:
When the sessions are expired, i need to know the situation that sessions
are expired

My main idea is first authentication from the Windows and then with the
database of mine and give him the permission

Nov 19 '05 #1
2 2964
Raghuram,

please do *not* post the same question,
consecutively, with two different subjects.

That only adds clutter.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Raghuram" <rv******@gmail.com> wrote in message
news:uG**************@TK2MSFTNGP12.phx.gbl...
I have a problem related to the page authentication. . . i am trying to
implement the Windows authentication in the project,
I am using the LDAP services to fetch the details from the widows directory.
. .

I mainly use the User.Identity.Name to fetch the user name and keep the
details in the session and passthrough where ever required

First Problem:
Even though the sessions are not expired the user is displayed with the
windows authentication form

Second Problem:
How to get the details of user along with the Groups Assigned to him

Third Problem:
When the sessions are expired, i need to know the situation that sessions
are expired

My main idea is first authentication from the Windows and then with the
database of mine and give him the permission

Nov 19 '05 #2
This articles should guide you through:-
http://www.upyourasp.net/articles/article.aspx?aid=13
or
http://msdn.microsoft.com/library/de.../en-us/dnnetse
c/html/SecNetHT02.asp

And if you need to extend to a Role Based Windows Auth you can look
through my blog at:-
http://spaces.msn.com/members/naijacoder/

Hope that helps
Patrick
*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Bob Everland | last post by:
I have an application that is ISAPI and the only way to secure it is through NT permissions. I need to have a way to login to windows authentication so that when I get to the ISAPI application no...
5
by: sid | last post by:
I am trying to connect to SQL serevr using 'Windows only Authentication'. Below is my code. Dim strConn As String = _ "data source=localhost; " & _ "initial catalog=northwind; " & _ "integrated...
15
by: Patrick | last post by:
I set my web.config as follows: <authentication mode="Windows" /> <identity impersonate="true" /> Logon to my ASP.NET website as a user who can authenticate to the target database. 1) Works...
1
by: bennett | last post by:
In order for my ASP.Net application to access a database using my privileged account, I was told to set up an app using Integrated Windows authentication and to use impersonation. I set the app to...
22
by: Bob and Sharon Hiller | last post by:
I have an ASP page that was done in VBScript It is setup to read an Access database and I need to change it to read a Sql 2005 Database. The code that is used to open the Access Database: Set...
1
by: las | last post by:
I have created a web service and a simple ASP.Net page that makes calls to the web service (the page roughly mimics the standard Visual Studio web service test page). Running on //localhost, if...
2
by: mbrand | last post by:
When trying to connect to my web service from a client application, the System.Net.CredentialCache.DefaultCredentials doesn't authenticate properly. I can see in the event viewer on the server...
2
by: pop | last post by:
Microsoft says that ------------ ASP.NET version 2.0 on Windows Server 2003 protects all files in a given directory, even those not mapped to ASP.NET, such as .html, .gif, and .jpg files....
1
by: =?Utf-8?B?U3RlcGhhbmU=?= | last post by:
Hi, I have a problem with Integrated Windows Authentication on one server (Win Server 2003 SP2 IIS 6.0 ASP.Net 1.4). Let's say I want to disable anonymous connections to an admin directory, I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.