Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting logged in user and storing in textbox

Status
Not open for further replies.

jgadon

IS-IT--Management
Jun 23, 2008
2
CA
I have recently tested out a trouble ticket application written in perl on my development web server. Everything works fine but I was wondering if there was a way to get the users name from their windows account rather than having them type it in manually. This is for an office environment using active directory. I have read that the getlogin() function will return the anonymous website account which is why I am looking here.

I just want it so that when the user loads the page, their user name is taken and put into the textbox so they don't need to type it in. Is this possible?
 
I would say that is dependent on the web server. Is it IIS or Apache? I know there are hacks for apache to get it to take AD authentication. Have you printed out %ENV and seen if there is anything there that will help you out?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
We are using IIS and the only thing I see that relates to me in that print out is my IP address. Is there a way to query active directory and be like "yo active directory whose IP is this?
 
I would look in to this

and maybe ask around on the IIS group here. Once you get that part done I'm sure you be able to get the user name.


I really though there was a way to pick up that information from IE.. but I'm not finding anything.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top