473,597 Members | 2,285 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

capturing username

I am trying to capture the Windows Authenticated username, but I want to be
able to capture the login name that exists in IIS, not Windows. In order to
enter my company's intranet through the internet, they have to login. I want
to be able to capture that login versus their Windows login because I need
to know who they are from any computer rather than only their computer. Any
ideas?

Thanks


Nov 18 '05 #1
14 2528
Brent,

If you check HttpContext.Cur rent.User.Ident ity, it will be the identity of
the user who is authenticated to the Web application. Is that what you
need?

Jim Cheshire, MCSE, MCSD [MSFT]
Microsoft Developer Support
ASP.NET
ja******@online .microsoft.com

This post is provided as-is with no warranties and confers no rights.
--------------------
From: "Brent Burkart" <Br***********@ wvmb.com>
Subject: capturing username
Date: Wed, 31 Dec 2003 11:54:33 -0700
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <e#************ **@TK2MSFTNGP10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
NNTP-Posting-Host: te-64-146-67-30.transedge.co m 64.146.67.30
Path: cpmsftngxa07.ph x.gbl!cpmsftngx a10.phx.gbl!TK2 MSFTNGXA05.phx. gbl!TK2MSFTNGP0 8
..phx.gbl!TK2MS FTNGP10.phx.gblXref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1991 55
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet

I am trying to capture the Windows Authenticated username, but I want to be
able to capture the login name that exists in IIS, not Windows. In order to
enter my company's intranet through the internet, they have to login. I wantto be able to capture that login versus their Windows login because I need
to know who they are from any computer rather than only their computer. Anyideas?

Thanks



Nov 18 '05 #2
Brent Burkart wrote:
I am trying to capture the Windows Authenticated username, but I want
to be able to capture the login name that exists in IIS, not Windows.
In order to enter my company's intranet through the internet, they
have to login. I want to be able to capture that login versus their
Windows login because I need to know who they are from any computer
rather than only their computer. Any ideas?


Brent,
I would use System.Security .Principal.Wind owsIdentity.Get Current().Name

Watch out when using HttpContext.Cur rent.User.Ident ity.Name. Depending
on the IIS / web.config file settings, User.Identity.N ame will not give you the
correct result (for Windows authentication mode).

e.g.
On a Windows Server 2003 box where I'm logged in as Administrator:

- With Identity Impersonate= false and IIS Anonymous Access enabled / NTLM enabled
=> WindowsIdentity .GetCurrent().N ame = "NT AUTHORITY\NETWO RK SERVICE"
=> User.Identity.N ame = ""

- With Identity Impersonate= false and IIS Anonymous Access disabled / NTLM enabled
=> WindowsIdentity .GetCurrent().N ame = "NT AUTHORITY\NETWO RK SERVICE"
=> User.Identity.N ame = "CARL20\Adminis trator"
- With Identity Impersonate= true and IIS Anonymous Access enabled / NTLM enabled
=> WindowsIdentity .GetCurrent().N ame = "CARL20\IUSR_CA RL20"
=> User.Identity.N ame = ""

- With Identity Impersonate= true and IIS Anonymous Access disabled / NTLM enabled
=> WindowsIdentity .GetCurrent().N ame = "CARL20\Adminis trator"
=> User.Identity.N ame = "CARL20\Adminis trator"

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP
Nov 18 '05 #3
Thanks Carl,

I have Identity Impersonate = True and IIS Anonymous Access enabled and I am
not sure what NTLM is.

I still get the username of the machine login rather than the intranet
login.

Any ideas?

"Carl Prothman [MVP]" <ca****@spamcop .net> wrote in message
news:uI******** ******@TK2MSFTN GP11.phx.gbl...
Brent Burkart wrote:
I am trying to capture the Windows Authenticated username, but I want
to be able to capture the login name that exists in IIS, not Windows.
In order to enter my company's intranet through the internet, they
have to login. I want to be able to capture that login versus their
Windows login because I need to know who they are from any computer
rather than only their computer. Any ideas?

Brent,
I would use System.Security .Principal.Wind owsIdentity.Get Current().Name

Watch out when using HttpContext.Cur rent.User.Ident ity.Name. Depending
on the IIS / web.config file settings, User.Identity.N ame will not give

you the correct result (for Windows authentication mode).

e.g.
On a Windows Server 2003 box where I'm logged in as Administrator:

- With Identity Impersonate= false and IIS Anonymous Access enabled / NTLM enabled => WindowsIdentity .GetCurrent().N ame = "NT AUTHORITY\NETWO RK SERVICE"
=> User.Identity.N ame = ""

- With Identity Impersonate= false and IIS Anonymous Access disabled / NTLM enabled => WindowsIdentity .GetCurrent().N ame = "NT AUTHORITY\NETWO RK SERVICE"
=> User.Identity.N ame = "CARL20\Adminis trator"
- With Identity Impersonate= true and IIS Anonymous Access enabled / NTLM enabled => WindowsIdentity .GetCurrent().N ame = "CARL20\IUSR_CA RL20"
=> User.Identity.N ame = ""

- With Identity Impersonate= true and IIS Anonymous Access disabled / NTLM enabled => WindowsIdentity .GetCurrent().N ame = "CARL20\Adminis trator"
=> User.Identity.N ame = "CARL20\Adminis trator"

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP

Nov 18 '05 #4
Carl,

You are correct as long as we're relying on Windows Authentication or Basic
Authentication in IIS. (In other words, the authentication mode for the
application needs to be Windows.) I missed the "capture the Windows
Authenticated username" part of Brent's message initially due to
multi-tasking :). As long as the above is correct, WindowsIdentity will
return the correct user as long as impersonation is enabled.

Jim Cheshire, MCSE, MCSD [MSFT]
Microsoft Developer Support
ASP.NET
ja******@online .microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
From: "Carl Prothman [MVP]" <ca****@spamcop .net>
References: <e#************ **@TK2MSFTNGP10 .phx.gbl>
Subject: Re: capturing username
Date: Wed, 31 Dec 2003 12:41:12 -0800
Lines: 43
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.0
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Message-ID: <uI************ **@TK2MSFTNGP11 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
NNTP-Posting-Host: 131.107.3.92
Path: cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!cpm sftngxa09.phx.g bl!TK2MSFTNGP08 .
phx.gbl!TK2MSFT NGP11.phx.gblXref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1991 79
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet

Brent Burkart wrote:
I am trying to capture the Windows Authenticated username, but I want
to be able to capture the login name that exists in IIS, not Windows.
In order to enter my company's intranet through the internet, they
have to login. I want to be able to capture that login versus their
Windows login because I need to know who they are from any computer
rather than only their computer. Any ideas?

Brent,
I would use System.Security .Principal.Wind owsIdentity.Get Current().Name

Watch out when using HttpContext.Cur rent.User.Ident ity.Name. Depending
on the IIS / web.config file settings, User.Identity.N ame will not give

you thecorrect result (for Windows authentication mode).

e.g.
On a Windows Server 2003 box where I'm logged in as Administrator:

- With Identity Impersonate= false and IIS Anonymous Access enabled / NTLM enabled => WindowsIdentity .GetCurrent().N ame = "NT AUTHORITY\NETWO RK SERVICE"
=> User.Identity.N ame = ""

- With Identity Impersonate= false and IIS Anonymous Access disabled / NTLM enabled => WindowsIdentity .GetCurrent().N ame = "NT AUTHORITY\NETWO RK SERVICE"
=> User.Identity.N ame = "CARL20\Adminis trator"
- With Identity Impersonate= true and IIS Anonymous Access enabled / NTLM enabled => WindowsIdentity .GetCurrent().N ame = "CARL20\IUSR_CA RL20"
=> User.Identity.N ame = ""

- With Identity Impersonate= true and IIS Anonymous Access disabled / NTLM enabled => WindowsIdentity .GetCurrent().N ame = "CARL20\Adminis trator"
=> User.Identity.N ame = "CARL20\Adminis trator"

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP


Nov 18 '05 #5
Brent Burkart wrote:
Brent Burkart wrote:
I am trying to capture the Windows Authenticated username, but I
want to be able to capture the login name that exists in IIS, not
Windows. In order to enter my company's intranet through the
internet, they have to login. I want to be able to capture that
login versus their Windows login because I need to know who they
are from any computer rather than only their computer. Any ideas?

I have Identity Impersonate = True and IIS Anonymous Access enabled
and I am not sure what NTLM is.
I still get the username of the machine login rather than the intranet
login.


Brent,
There can be only three possiable accounts you can get when using
Windows authentication mode with the default settings in machine.config:
1) MachineName\ASP NET (Windows XP - IIS 5.x)
or NT AUTHORITY\NETWO RK SERVICE (Windows Server 2003 - IIS 6.0)
2) MachineName\ISU R_MachineName
3) DomainName\User name

Which one are you trying to get?

Here are the configurations in IIS and web.config which will result in obtaining
the above account: (note NTLM = Integrated Windows Authentication in IIS)

- With Identity Impersonate= false and IIS Anonymous Access enabled / NTLM enabled
=> WindowsIdentity .GetCurrent().N ame = "NT AUTHORITY\NETWO RK SERVICE"
=> User.Identity.N ame = ""

- With Identity Impersonate= false and IIS Anonymous Access disabled / NTLM enabled
=> WindowsIdentity .GetCurrent().N ame = "NT AUTHORITY\NETWO RK SERVICE"
=> User.Identity.N ame = "CARL20\Adminis trator"
- With Identity Impersonate= true and IIS Anonymous Access enabled / NTLM enabled
=> WindowsIdentity .GetCurrent().N ame = "CARL20\IUSR_CA RL20"
=> User.Identity.N ame = ""

- With Identity Impersonate= true and IIS Anonymous Access disabled / NTLM enabled
=> WindowsIdentity .GetCurrent().N ame = "CARL20\Adminis trator"
=> User.Identity.N ame = "CARL20\Adminis trator"

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP
Nov 18 '05 #6
Jim Cheshire [MSFT] wrote:
You are correct as long as we're relying on Windows Authentication or
Basic Authentication in IIS. (In other words, the authentication
mode for the application needs to be Windows.) I missed the "capture
the Windows Authenticated username" part of Brent's message initially
due to multi-tasking :). As long as the above is correct,
WindowsIdentity will return the correct user as long as impersonation
is enabled.


Right. It was the "capture the login name that exists in IIS, not Windows"
comment that caught my eye. Hence my warning for User.Identity.N ame
e.g.
- With Identity Impersonate= false and IIS Anonymous Access enabled / NTLM enabled
=> WindowsIdentity .GetCurrent().N ame = "NT AUTHORITY\NETWO RK SERVICE"
=> User.Identity.N ame = ""
Note User.Identity.N ame is blank.

I guess will find out exactly what Brent meant when he replys to my question in my last post... ;-)

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP
Nov 18 '05 #7
Carl, thanks so much for your help.

I am trying to capture DomainName\User name. I don't care who logged into
the machine they are using. I only care who logged into the intranet site.
I have tried all of the combinations and I still can't seem to capture the
domainName\User name.

Thanks again
"Carl Prothman [MVP]" <ca****@spamcop .net> wrote in message
news:uc******** ******@TK2MSFTN GP10.phx.gbl...
Brent Burkart wrote:
Brent Burkart wrote:
I am trying to capture the Windows Authenticated username, but I
want to be able to capture the login name that exists in IIS, not
Windows. In order to enter my company's intranet through the
internet, they have to login. I want to be able to capture that
login versus their Windows login because I need to know who they
are from any computer rather than only their computer. Any ideas?
I have Identity Impersonate = True and IIS Anonymous Access enabled
and I am not sure what NTLM is.
I still get the username of the machine login rather than the intranet
login.


Brent,
There can be only three possiable accounts you can get when using
Windows authentication mode with the default settings in machine.config:
1) MachineName\ASP NET (Windows XP - IIS 5.x)
or NT AUTHORITY\NETWO RK SERVICE (Windows Server 2003 - IIS 6.0)
2) MachineName\ISU R_MachineName
3) DomainName\User name

Which one are you trying to get?

Here are the configurations in IIS and web.config which will result in

obtaining the above account: (note NTLM = Integrated Windows Authentication in IIS)
- With Identity Impersonate= false and IIS Anonymous Access enabled / NTLM enabled => WindowsIdentity .GetCurrent().N ame = "NT AUTHORITY\NETWO RK SERVICE"
=> User.Identity.N ame = ""

- With Identity Impersonate= false and IIS Anonymous Access disabled / NTLM enabled => WindowsIdentity .GetCurrent().N ame = "NT AUTHORITY\NETWO RK SERVICE"
=> User.Identity.N ame = "CARL20\Adminis trator"
- With Identity Impersonate= true and IIS Anonymous Access enabled / NTLM enabled => WindowsIdentity .GetCurrent().N ame = "CARL20\IUSR_CA RL20"
=> User.Identity.N ame = ""

- With Identity Impersonate= true and IIS Anonymous Access disabled / NTLM enabled => WindowsIdentity .GetCurrent().N ame = "CARL20\Adminis trator"
=> User.Identity.N ame = "CARL20\Adminis trator"

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP


Nov 18 '05 #8
Brent,

If you're using Windows Integrated authentication, they will be one and the
same in almost all cases.

If you're using Basic authentication, the user will be forced to enter a
username and password, but again, in almost all cases, they will use their
domain UN/PW to access the site.

I'm curious as to exactly what you're doing here. Can you elaborate any?

Jim Cheshire, MCSE, MCSD [MSFT]
Microsoft Developer Support
ASP.NET
ja******@online .microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
From: "Brent Burkart" <Br***********@ wvmb.com>
References: <e#************ **@TK2MSFTNGP10 .phx.gbl> <uI************ **@TK2MSFTNGP11 .phx.gbl>
<eB************ *@TK2MSFTNGP11. phx.gbl>
<uc************ **@TK2MSFTNGP10 .phx.gbl>Subject: Re: capturing username
Date: Fri, 2 Jan 2004 13:42:15 -0700
Lines: 71
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <uu************ **@TK2MSFTNGP10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
NNTP-Posting-Host: te-64-146-67-30.transedge.co m 64.146.67.30
Path: cpmsftngxa07.ph x.gbl!cpmsftngx a10.phx.gbl!TK2 MSFTNGXA05.phx. gbl!TK2MSFTNGP0 8
..phx.gbl!TK2MS FTNGP10.phx.gblXref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1994 28
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet

Carl, thanks so much for your help.

I am trying to capture DomainName\User name. I don't care who logged into
the machine they are using. I only care who logged into the intranet site.
I have tried all of the combinations and I still can't seem to capture the
domainName\Use rname.

Thanks again
"Carl Prothman [MVP]" <ca****@spamcop .net> wrote in message
news:uc******* *******@TK2MSFT NGP10.phx.gbl.. .
Brent Burkart wrote:
>>> Brent Burkart wrote:
>>> I am trying to capture the Windows Authenticated username, but I
>>> want to be able to capture the login name that exists in IIS, not
>>> Windows. In order to enter my company's intranet through the
>>> internet, they have to login. I want to be able to capture that
>>> login versus their Windows login because I need to know who they
>>> are from any computer rather than only their computer. Any ideas?
>>>
> I have Identity Impersonate = True and IIS Anonymous Access enabled
> and I am not sure what NTLM is.
> I still get the username of the machine login rather than the intranet
> login.
>
Brent,
There can be only three possiable accounts you can get when using
Windows authentication mode with the default settings in machine.config:
1) MachineName\ASP NET (Windows XP - IIS 5.x)
or NT AUTHORITY\NETWO RK SERVICE (Windows Server 2003 - IIS 6.0)
2) MachineName\ISU R_MachineName
3) DomainName\User name

Which one are you trying to get?

Here are the configurations in IIS and web.config which will result in

obtaining
the above account: (note NTLM = Integrated Windows Authentication in

IIS)

- With Identity Impersonate= false and IIS Anonymous Access enabled /

NTLMenabled
=> WindowsIdentity .GetCurrent().N ame = "NT AUTHORITY\NETWO RK SERVICE"
=> User.Identity.N ame = ""

- With Identity Impersonate= false and IIS Anonymous Access disabled /NTLM enabled
=> WindowsIdentity .GetCurrent().N ame = "NT AUTHORITY\NETWO RK SERVICE"
=> User.Identity.N ame = "CARL20\Adminis trator"
- With Identity Impersonate= true and IIS Anonymous Access enabled / NTLM

enabled
=> WindowsIdentity .GetCurrent().N ame = "CARL20\IUSR_CA RL20"
=> User.Identity.N ame = ""

- With Identity Impersonate= true and IIS Anonymous Access disabled /

NTLMenabled
=> WindowsIdentity .GetCurrent().N ame = "CARL20\Adminis trator"
=> User.Identity.N ame = "CARL20\Adminis trator"

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP



Nov 18 '05 #9
Thanks for replying.

We currently have a company intranet. To access this intranet, they must
login no matter what machine they are using. I am adding an application to
the intranet where it is neccessary that I know who is using it and instead
of managing usernames and passwords in a database, I will enter the user
automatically into my database the first time they use the application and I
will track their info based on their username.

Does that clarify?

Thanks for your help.
"Jim Cheshire [MSFT]" <ja******@onlin e.microsoft.com > wrote in message
news:mF******** ******@cpmsftng xa07.phx.gbl...
Brent,

If you're using Windows Integrated authentication, they will be one and the same in almost all cases.

If you're using Basic authentication, the user will be forced to enter a
username and password, but again, in almost all cases, they will use their
domain UN/PW to access the site.

I'm curious as to exactly what you're doing here. Can you elaborate any?

Jim Cheshire, MCSE, MCSD [MSFT]
Microsoft Developer Support
ASP.NET
ja******@online .microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
From: "Brent Burkart" <Br***********@ wvmb.com>
References: <e#************ **@TK2MSFTNGP10 .phx.gbl> <uI************ **@TK2MSFTNGP11 .phx.gbl>
<eB************ *@TK2MSFTNGP11. phx.gbl>
<uc************ **@TK2MSFTNGP10 .phx.gbl>
Subject: Re: capturing username
Date: Fri, 2 Jan 2004 13:42:15 -0700
Lines: 71
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <uu************ **@TK2MSFTNGP10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
NNTP-Posting-Host: te-64-146-67-30.transedge.co m 64.146.67.30
Path:

cpmsftngxa07.ph x.gbl!cpmsftngx a10.phx.gbl!TK2 MSFTNGXA05.phx. gbl!TK2MSFTNGP0 8 phx.gbl!TK2MSFT NGP10.phx.gbl
Xref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1994 28X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet

Carl, thanks so much for your help.

I am trying to capture DomainName\User name. I don't care who logged into
the machine they are using. I only care who logged into the intranet site.I have tried all of the combinations and I still can't seem to capture thedomainName\Use rname.

Thanks again
"Carl Prothman [MVP]" <ca****@spamcop .net> wrote in message
news:uc******* *******@TK2MSFT NGP10.phx.gbl.. .
Brent Burkart wrote:
>>> Brent Burkart wrote:
>>> I am trying to capture the Windows Authenticated username, but I
>>> want to be able to capture the login name that exists in IIS, not
>>> Windows. In order to enter my company's intranet through the
>>> internet, they have to login. I want to be able to capture that
>>> login versus their Windows login because I need to know who they
>>> are from any computer rather than only their computer. Any ideas?
>>>
> I have Identity Impersonate = True and IIS Anonymous Access enabled
> and I am not sure what NTLM is.
> I still get the username of the machine login rather than the intranet > login.
>

Brent,
There can be only three possiable accounts you can get when using
Windows authentication mode with the default settings in machine.config: 1) MachineName\ASP NET (Windows XP - IIS 5.x)
or NT AUTHORITY\NETWO RK SERVICE (Windows Server 2003 - IIS 6.0)
2) MachineName\ISU R_MachineName
3) DomainName\User name

Which one are you trying to get?

Here are the configurations in IIS and web.config which will result in

obtaining
the above account: (note NTLM = Integrated Windows Authentication in

IIS)

- With Identity Impersonate= false and IIS Anonymous Access enabled / NTLM
enabled
=> WindowsIdentity .GetCurrent().N ame = "NT AUTHORITY\NETWO RK SERVICE" => User.Identity.N ame = ""

- With Identity Impersonate= false and IIS Anonymous Access disabled /

NTLM enabled
=> WindowsIdentity .GetCurrent().N ame = "NT AUTHORITY\NETWO RK SERVICE" => User.Identity.N ame = "CARL20\Adminis trator"
- With Identity Impersonate= true and IIS Anonymous Access enabled /

NTLMenabled
=> WindowsIdentity .GetCurrent().N ame = "CARL20\IUSR_CA RL20"
=> User.Identity.N ame = ""

- With Identity Impersonate= true and IIS Anonymous Access disabled /

NTLM
enabled
=> WindowsIdentity .GetCurrent().N ame = "CARL20\Adminis trator"
=> User.Identity.N ame = "CARL20\Adminis trator"

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP


Nov 18 '05 #10

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

Similar topics

5
1629
by: ashutosh.bhardwaj1980 | last post by:
Hi, I amdeveloping a web site in ASP and it is a secure site. I would like someone to help me on this: -->i dont want 2 users to accesss my site with the same username parallely. --> Also how can I capture window.close event in my application and then call a asp script in that function.
8
3943
by: Raj Thakkar | last post by:
Hi, I am currenty working on a site for intranet. I have a user control in the header of every page that will be displayed only if people with certain username are surfing the site. These lists of usernames is stored on the server side in a xml based file So what I am doing at the moment is inside the user control pageload method, i get the username of the current person logged in using HttpContext.Current.User.Identity.Name and if the...
17
4310
by: Lauren Wilson | last post by:
Does anyone know if it is possible to capture FTP responses to various FTP commands when managing an FTP session from a VBA procedure? For example, if we try to login to an FTP server and the login info is incorrect, FTP replies with a message to that effect. I need to capture those kinds of responses and advise the user of an Access app what is happening. Thanks for all responses.
5
10216
by: sachu | last post by:
Hi Everyone, I want develop the intranet site with seamless authentication. Is there any way to capture only the user name who has logged in the windows machine. Iam using PHP 5.0 MySQL and IIS Server. I have tried with $_SERVER but its returning nothing. Please help me out.
7
1713
xxoulmate
by: xxoulmate | last post by:
what script do i use to determine the username currently logged on the computer., tnx is there any way to do it using php or javascript.,
2
1436
xxoulmate
by: xxoulmate | last post by:
how can i captured the username logged on the computer., and print it in the php page. tnx
3
2210
by: mohanprasadgutta | last post by:
Hello, I want to capture the text being printed on console. problem description is as follows. I am calling called.pl program from caller.pl program using backticks. in called.pl program i am giving an external command to be executed in backticks. that external application will through a message to the console if any arguements are missing for that command. for example if we are not sending username and password(or wrong username and...
5
1495
ddtpmyra
by: ddtpmyra | last post by:
Hi I have a log-in script below that do the log-in validation, my question is how can I capture the username to for my next page reference so I can execute update command according to current log-in name? <?php session_start(); $errorMessage = ''; if (isset($_POST) && isset($_POST)) { include 'library/config.php'; include 'connect.php';
0
7971
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7893
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
6698
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5847
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
5436
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
3889
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
2408
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
1
1495
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1243
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.