473,385 Members | 1,154 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,385 software developers and data experts.

get network login name

One of my coding partners swears you can capture the network login name so
that we can use it to set security levels. If that can be done how do you do
it. References to articles etc would be helpful
Nov 16 '05 #1
5 5924
You can use System.Security.Principal.WindowsIdentity.GetCurre nt()
--
-Philip Rieck
http://philiprieck.com/blog/

-
"owyn" <ow**@discussions.microsoft.com> wrote in message
news:1D**********************************@microsof t.com...
One of my coding partners swears you can capture the network login name so
that we can use it to set security levels. If that can be done how do you
do
it. References to articles etc would be helpful

Nov 16 '05 #2
What exactly do you mean with " network login name ", be more specific about
the usage scenario.

Willy.

"owyn" <ow**@discussions.microsoft.com> wrote in message
news:1D**********************************@microsof t.com...
One of my coding partners swears you can capture the network login name so
that we can use it to set security levels. If that can be done how do you
do
it. References to articles etc would be helpful

Nov 16 '05 #3
That is the name of the user on the WAN and it also establishes user name on
the local machine.
"Willy Denoyette [MVP]" wrote:
What exactly do you mean with " network login name ", be more specific about
the usage scenario.

Willy.

"owyn" <ow**@discussions.microsoft.com> wrote in message
news:1D**********************************@microsof t.com...
One of my coding partners swears you can capture the network login name so
that we can use it to set security levels. If that can be done how do you
do
it. References to articles etc would be helpful


Nov 16 '05 #4
User names are 'possibly' exchanged as a result of an authentication
process, I'm asking what kind of application it is (web based, client
server, other...), not what kind of network it is.
I suppose you want to capture the user name at the server side ( and here I
mean the application running as the server side).

Willy.
"owyn" <ow**@discussions.microsoft.com> wrote in message
news:E9**********************************@microsof t.com...
That is the name of the user on the WAN and it also establishes user name
on
the local machine.
"Willy Denoyette [MVP]" wrote:
What exactly do you mean with " network login name ", be more specific
about
the usage scenario.

Willy.

"owyn" <ow**@discussions.microsoft.com> wrote in message
news:1D**********************************@microsof t.com...
> One of my coding partners swears you can capture the network login name
> so
> that we can use it to set security levels. If that can be done how do
> you
> do
> it. References to articles etc would be helpful


Nov 16 '05 #5
It is an aspx page that is the front end for a database. The user is logged
in to a WAN and then goes on to the intranet the pages which are run from a
web server on the WAN. If I could get the users Network login name which also
is the local machine user account name we could simply put the users name
into a group and assign permissions. In short it is a web app.

"Willy Denoyette [MVP]" wrote:
User names are 'possibly' exchanged as a result of an authentication
process, I'm asking what kind of application it is (web based, client
server, other...), not what kind of network it is.
I suppose you want to capture the user name at the server side ( and here I
mean the application running as the server side).

Willy.
"owyn" <ow**@discussions.microsoft.com> wrote in message
news:E9**********************************@microsof t.com...
That is the name of the user on the WAN and it also establishes user name
on
the local machine.
"Willy Denoyette [MVP]" wrote:
What exactly do you mean with " network login name ", be more specific
about
the usage scenario.

Willy.

"owyn" <ow**@discussions.microsoft.com> wrote in message
news:1D**********************************@microsof t.com...
> One of my coding partners swears you can capture the network login name
> so
> that we can use it to set security levels. If that can be done how do
> you
> do
> it. References to articles etc would be helpful


Nov 16 '05 #6

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

Similar topics

1
by: viki | last post by:
HI, when i try to use request.servervariable(login_user) it returns empty in asp. i created a dll in vb using the apigetusername . when testing this in vb , it retruns the network login id. But in...
3
by: Bruce Wood | last post by:
I've been mucking about with Environment.UserName and similar properties in .NET. I can get the user's login name for their machine, but unfortunately that doesn't get me much for users logged into...
3
by: Don | last post by:
I'm using FROMS authentication and want to automate the login. Right now I force the user to manually log in. I would like to detect the users network userName and if they have an account I will...
12
by: rs | last post by:
Hello everyone, Is it possible to get the IP address of a machine on the network if we know the windows login name. I am assuming NO. If anyone knows a work around or how this can be done,...
3
by: Tomdhu | last post by:
As a Newbie I've picked up a heap of tips and tricks from this NG but I have been battling to get the current user's Netwok Login ID recorded on a form at the time a new record is created or...
4
samycbe
by: samycbe | last post by:
Hi, How to get the windows login name from vb? samy
2
by: Middletree | last post by:
Intranet application. strLogon= Replace(Request.ServerVariables("LOGON_USER"),"DOMAIN\","") The above line is used by several pages on my browser-based app to obtain the Windows login name...
4
by: Dhessevick | last post by:
We are using a software package that requires a username and password. We want to write a routine that would read the users network user name variable on the system and look up the user name and...
3
by: hkeiner | last post by:
I have an Access 2003 MDB database that uses the "currentuser()" function extensively (in queries and macros) to control what a particular user can see and do. In Access 2007 (which no longer uses...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.