How to do that ....... ?

  • Thread starter Thread starter Sam Carl
  • Start date Start date
S

Sam Carl

We have (Windows 2000 Servers and Windows 2000 Professionals desktop)
network.

Requirement is if the specified user (UserId = UserId1) logged in to our
network by logging into his/her workstation (Windows 200 professional) using
Userid = UserId1, I want to allow them to launch and query my application
(either vb.net or asp.net application) without logging onto my application.



Q1. How to do that using VB.Net application? How much programming effort is
required to read the logged in user Id when the vb.net application is
launched? Is there any alternative solution for this problem?

My approach will be, I will read the user Id who logged into the windows
2000 and then I will compare whether that user ID is allowed to launch the
application or not in the database where I will be maintaining the user
information.



Q2. Is it possible to do the same thing as specified in Q1 using ASP.Net
application? How much programming effort is required to read the user
information of the browsing computer? Is it possible? I am using IIS 5.0 and
IE 5.5+.

Thanks,

Sam Carl
 
Hi Sam,

System.Environment.UserName can be used in windows
appication to determine Domain logon user.

User.Identity.Name can be used in Intranet Web application
(deny anonymous access).

HTH

Elton Wang
(e-mail address removed)
 
I am using page.User.Identity.Name.
The above value is not getting populated.
Why ? I am using .Net Frmaework 1.1 and IIS 5.00.
I am testing in the debug mode and the production application will be roled
in intranet.
Thanks,
Sam
 
Sam i guess u are not getting the right values becos Windows Auth is
turned off!
Make sure Anonymouis access is turned of and Windows Authturned On.
Hope this helps
Patrick
 
Back
Top