Getting Computer Login Name.

 

Hi all I'm using VWD

Im trying to get the computer Login Name(Username) in my web application.

I tried using

HttpContext.Current.User.Identity.Name and alot of other way like the old method servervariables? and many other. But cannot rem them no. All of it works IF im working local Host. But it Just Became Empty or Wrong Value if its working on a server/client basis.

 

And ideas how to get it using web Application?

 

Thx in advance

Cheers

0
Loooby
4/24/2006 7:31:53 AM
asp.net.security 27051 articles. 1 followers. Follow

4 Replies
436 Views

Similar Articles

[PageSpeed] 29

Did you tried just User.Identity.Name and what you got!

Also what value it's showing. One more quesiton, are you using forms authentication?

 


Sreedhar
http://www.w3coder.org
weblog http://weblogs.asp.net/skoganti
0
SreedharK
4/24/2006 10:19:03 AM

Yes i tried using it. It Work perfectly right in local host but when i tried to put on my server and i access it using remote then It dun work anymore. the result is network service -.- And No I'm Not using form Authentication by the web config. I used Instead the User Codes Like

 

Check Password if = same then

Declare Session(Login) = True

then My naviagation Ascx will check whether this session = true if yes the can proceed in if no then Will kick to Login page.

 

wrong? thats actually wat i learn in sch.

 

0
Loooby
4/25/2006 12:39:26 AM

If you won't use Forms authentication then it's going to give 'network service' as it thinks you are not using forms authentication.

I would suggest you to use forums authenticaiton. OR else any way you are Session, may be you can keep login information in session and use it!

 


Sreedhar
http://www.w3coder.org
weblog http://weblogs.asp.net/skoganti
0
SreedharK
4/25/2006 1:10:57 AM

hmm ok thx. I gib it a try.

0
Loooby
4/25/2006 7:32:32 AM
Reply:

Similar Artilces:

How to get NT login id and Computer Name?
How to get Windows User Login Id and Computer Name using PB5 power scripts. Thanks. You will have to use Win32 API calls to do that: FUNCTION boolean GetComputerNameA( REF string lpBuffer, REF ulong lpnSize ) LIBRARY "kernel32.dll" FUNCTION boolean GetUserNameA( REF string lpBuffer, REF ulong lpnSize ) LIBRARY "advapi32.dll" // sample code string ls_user, ls_machine ulong lul_max = 260 ls_user = Space( lul_max ) // pre-allocate memory ls_machine = Space( lul_max ) IF NOT GetUserNameA( ls_user, lul_max ) THEN // handle error EN...

How to get DNS Name be the DNS Name rather than computer name
In Patchlink associated with computers there is "DNS Name" field. This field seems to be the computer name (netbios name) for windows computers rather than the dns name assocated with the IP address. Is there a way to configure the patchlink server so this field reports the DNS Name rather than the computer name? where is that "DNS name" field? -- Shaun Pond > where is that "DNS name" field? > > -- > > Shaun Pond > > From the web interface: 1) From the Reports ->Computer Status Report the second field ins...

Login script using @NET USE for login name
--____SJDNMAUHJRPPCUAIVNQS____ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 Content-Disposition: inline; modification-date="Thu, 27 Aug 2008 11:50:31 -0400" Q3VycmVudGx5IHVzaW5nIHRoZSBmb2xsb3dpbmcgdG8gbWFwIGEgaG9tZSBkaXJlY3Rvcnkgb24g YSBNQUMgT1NYIHNlcnZlciBmb3IgdXNlcnMgbG9nZ2luZyBpbnRvIGEgTmV0d2FyZSA2LjUgc2Vy dmVyLg0KDQpJRiBMT0dJTl9OQU1FPCJFIiBUSEVODQogICBATkVUIFVTRSBIOiBcXFNKUFMtT1NY MVxIT01FX0RJUkVDVE9SSUVTXFRFQUNIRVJTQS1EXCVMT0dJTl9OQU1FICAvUEVSU0lTVEVOVDpO Tw0KICAgV1JJVEUgIk1BUFBJTkcgVE8gT1NYMSINCkVORA0KDQpUaGlzIHdvcmtzIGZvciB1c2Vy cyB3...

How can i get the computer client computer name not the IP address
I have been trying to get the client computer name and ip address. For the IP address i can get it. For the computer name i a gain get the IP address. Is there some thing i have to do in order to get the computer name not the IP. My application runs on a server in the company's intranet. Below is my sample code. I also want to get the "timea" just in hour/minutes format. At the moment timea is bringing to much details(I dont if there seconds or millisecoinds, but just to much figures) Dim username As String = HttpContext.Current.User.Identity.Name Dim timea As String = DateTime.Now.TimeOf...

Login failed for user <Domain Name\Computer Name$>
I'm working on an asp.net application.  No problem connecting to SQL Server 2005 in the visual web developer express development environment.Published the web pages to a web server and attempting to open a web page.  Get the following error message:"Login failed for user <Domain Name\Computer Name$>".I'm using this connection string in my web.config file:" <connectionStrings>  <add name="RandDConnectionString" connectionString="Data Source=&&&&&;Initial Catalog=RandD;UID=&&&&&...

How do i get the login name ???
Hello guys How do i get the login name ??? without using the login control. ie session["username"].ToString() please advice ??? tnx  What type of authentication are you using?If you are using any of the built-in authentication modes in ASP.Net you can use this in your code-behind:User.Identity.Name If this post is useful to you, please mark it as answer. If you are using the ASP.NET Membership Provider there are a number of methods that are part of the Membership class that you can use. The first two will return a collection based on the appropriate parameter that is...

How to get computer name?
How do I get the computer name from a vb.net 2.0 program?TIA,Owen Ok. I Found it.My.Computer.Name Owen...

Get Computer Name
How to get the computer name in Win95 and Win3.1(workgroup)? Thanks in advance. Do any web site that contain all Window API calls, thanks. Edward Chan For Win95: FUNCTION ulong GetComputerNameA( REF string lpBuffer, REF ulong nSize ) LIBRARY "kernell32.dll" Roy se5a03 wrote in message <3522454C.2CB87E94@hotmail.com>... >How to get the computer name in Win95 and Win3.1(workgroup)? > >Thanks in advance. > >Do any web site that contain all Window API calls, thanks. > >Edward Chan > se5a03 a �crit dans le message <35...

getting the login name
Hi, I'm just wondering if I'm able to get the login name (the username someone types to get access to Windows) from the system? Thanks!! Andrewwww.codingmayhem.com - VB.NET, C#, Silverlight, Javascript, HTML, CSS, T-SQL, MySQL and SQLitewww.headshotgamer.com - Gaming News and Reviews What kind of authentication does your site use? Not the site - the site in the future MAY have some kind but I'm talking about the Windows logon right at the start that grants you access to the domain. Basically - atm I'm assuming that if a person has rights to the domain they can access the appl...

How do I get the computer name?
We have an application that is run on either the user's local machine or the server. I can get the local computer name using n_cst_platform.of_getComputerName(), but how do I get the server name will that function work as well? TIA > We have an application that is run on either the user's > local machine or the server. I can get the local computer > name using n_cst_platform.of_getComputerName(), but how do > I get the server name will that function work as well? > > TIA > > Are you just trying to determine if it is being run on a loal d...

Get computer name
I found the code below in an old Google session for this newsgroup. I am just wondering if the GetComputerNameA Win32 API works in 95, 98, 2000 and XP. Anyone? To get the computer name, use the GetComputerNameA Win32 API call as follows: FUNCTION boolean GetComputerNameA( REF string lpBuffer, REF ulong lpnSize ) LIBRARY "kernel32.dll" // sample code string ls_name ulong lul_maxlen lul_maxlen = 260 ls_name = Space( lul_maxlen ) IF NOT GetComputerNameA( ls_name, lul_maxlen ) THEN // handle the error ELSE MessageBox( "Computer Name", ls...

get computer name in a network
Hello, I'm trying to get the computername from which a user has been logged in from. Is there a way to do this??????? Thnx, Geert http://eric.aling.tripod.com/PB/tips/pbtip14.htm Good luck... ;) U�ytkownik <Geert Vancleef> napisa� w wiadomo�ci news:4063fab6.370d.846930886@sybase.com... > Hello, > > I'm trying to get the computername from which a user has > been logged in from. Is there a way to do this??????? > > > Thnx, > > Geert Hi Geert, //external API declaration FUNCTION boolean GetComputerNameA(ref string ...

get names of computer and their users
Hello, is there a way to get all the computers and their users in a domain? Thnx, geert I use NetQueryDisplayInformation http://msdn.microsoft.com/library/en-us/netmgmt/netmgmt/NetQueryDisplayInformation.asp?frame=true A good example can be found here http://www.topwizprogramming.com/redirect.html?page=freecode > Hello, > > is there a way to get all the computers and their users in > a domain? > > > Thnx, > > geert ...

Get Novell login name
How can I get the novell login name for programming usage?? I have tried to add the Novell command in the login script, but it's not successful!! Pls give me help! Thanks ! Ming FUNCTION boolean GetUserNameA( REF string lpBuffer, REF ulong nSize ) LIBRARY "advapi32.dll" // sample code String ls_user Ulong lul_size ls_user = Space( 32 ) IF NOT GetUserNameA( ls_user, lul_size ) THEN // function failed ELSE MessageBox( "Current User", ls_user ) END IF -- pbm_hopethishelps, Roy Kiesler [TeamPS] Ming <siu_ming@usa.net> ...

Web resources about - Getting Computer Login Name. - asp.net.security

Computer - Wikipedia, the free encyclopedia
"Computer technology" and "Computer system" redirect here. For the company, see Computer Technology Limited . For other uses, see Computer (disambiguation) ...

Computer - Wikipedia, the free encyclopedia
"Computer technology" and "Computer system" redirect here. For the company, see Computer Technology Limited . For other uses, see Computer (disambiguation) ...

Computer Show
The first episode premiered at XOXO last month, and it brought the house down. I think you’re best off going in cold — just grab a beverage and ...

Bureau of Meteorology computers breached, ABC reports
Australia's Bureau of Meteorology has reportedly had its computer systems breached.

China blamed for 'massive' cyber attack on Bureau of Meteorology computer
China is being blamed for a major cyber attack at the Bureau of Meteorology, compromising systems across Government.

GCHQ accused of "persistent" illegal computer hacking
... GCHQ the UK version of the NSA has engaged in "persistent" illegal hacking. The targets of the intelligence agency's surveillance include computers ...

Google offers computer 'vision' tech - Business Insider Deutschland
Google on Tuesday announced a new tool on Wednesday for app developers that's absolutely amazing and also a little disturbing. It lets apps 'see.' ...

Asustek Computer to reorganize system business group
Asustek Computer, to cope with drastic changes in business environment, will reorganize its System Business Group to two new business units: ...

Step aside Gershwin: Computer-generated musical to premiere in London
Computers might be ideal productivity companions, but sometimes they need to express their creative side too. They produce music, design knitwear, ...

Microsoft Facial Recognition Project Allows Computers To 'See' Your Mood
Facial recognition makes a 'smarter app' i.e. one that can serve you better depending on your mood. But facial recognition technologies have ...

Resources last updated: 12/4/2015 9:08:40 PM