473,785 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5962
You can use System.Security .Principal.Wind owsIdentity.Get Current()
--
-Philip Rieck
http://philiprieck.com/blog/

-
"owyn" <ow**@discussio ns.microsoft.co m> wrote in message
news:1D******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:1D******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:1D******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:E9******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:1D******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:E9******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:1D******** *************** ***********@mic rosoft.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
2524
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 asp it returns the servername where the asp is running. can anybody help me to solve this issue Thanks, VIKI
3
2055
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 our corporate network through laptops: all its gets me is their user ID on the laptop, which means nothing at the corporate level. Does anyone know how I can get my hands on the username that was used to log into Microsoft Networking? This is...
3
2105
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 automatically log them in. If they don't they wil be taken to the login page. I can get the network id of the user using System.Environment.UserName if I turn off anonymous access but this gived me an access denied error. If I turn on...
12
2604
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, please let me know
3
3602
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 modified. I haven't implemented Access security, and want their Network Login ID. The network is running W2K server and all users have unique login ID's. I run A2K and I've found Dev Ashish's code at http://www.mvps.org/access/api/api0008.htm . I...
4
6884
samycbe
by: samycbe | last post by:
Hi, How to get the windows login name from vb? samy
2
2862
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 for the user. Of course, I replaced our domain name with the generic word "DOMAIN" here, but the point is that I am trying to get that name and store it into a variable.
4
1536
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 password for the package and login them in automatically. Any thoughts?
3
7449
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 user level security) the current user function now always returns "admin" , which pretty much breaks my database functionality. This database is used in a business environment and all PCs are connected to a common wired Novell network. I found...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10329
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10092
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7500
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.