Forum Moderators: coopster

Message Too Old, No Replies

Logged in user

Name of the user on client computer

         

Nutter

9:27 pm on Feb 24, 2005 (gmt 0)

10+ Year Member



I have done this in ASP, but have come to a point where I prefer PHP. Is it possible to get the Windows login name from a script? Say I log in to my computer with the username 'Bob'. Can a PHP script read a variable that has 'Bob' in it? Or the NT domain?

- Ryan

jatar_k

11:49 pm on Feb 24, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



well, we use our windows login as auth for a couple of internal sites and we use

Radius Authentication Module for Apache [wede.de]

there is a fair bit involved though.

reading your post gives me one primary thought though.

Why?

We use it for extra layers of security.

Nutter

1:06 pm on Feb 25, 2005 (gmt 0)

10+ Year Member



I used the ASP / Access version for an intranet site I started to develop. The pages were password protected, but to access the page the user had to be logged in to the domain. So, it seemed redundent to me. I checked against the domain and network user name, and if there was a match I didn't prompt for the username / password stored in my database. I just used the network login info. This app has since been upgraded and replaced with a PHP / MySQL off site internet page so I can access it from home.

Basically, I just wanted to see if it can be done for future projects. No immediate need.

One additional question about the module you mentioned. How does it work if the server I'm connecting to is off site? My website is a Linux server hosted across the country, but my Windows PDC is onsite. Is that even possible?