467,135 Members | 1,109 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,135 developers. It's quick & easy.

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
  • viewed: 5726
Share:
5 Replies
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by viki | last post: by
3 posts views Thread by Bruce Wood | last post: by
2 posts views Thread by Middletree | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.