Skip to main content
1-Visitor
January 15, 2015
Solved

Can I add the windows user to the Apache log file ?

  • January 15, 2015
  • 2 replies
  • 1360 views

Dear,

I like to have a better view on the people that logging in to Windchill. That is why I am using the Apache log file to get the ip address of the logged on machine and translate this to a machine name. The problem commes when Citrix users are logging on, then I get one ip address for a number of people logged on.

So my question is; can I get more information in the Apache log file so I can identify the windows user properly ? I do know the Windchill user.

The logfile looks like :

172.30.44.XX - nbrm [15/Jan/2015:13:31:44 +0100] "GET /Windchill/servlet/WindchillAuthGW/com.ptc.wvs.server.ui.ThumbnailHelper/getMThumb?oid=wt.epm.EPMDocument:776065947 HTTP/1.1" 200 394 187205

Best regards,

Bernard

Best answer by jessh

The user is nbrm in the line shown. If that's not indicative of who is logging in, then that's an issue with your deployment.

If you additionally want to know which client user account the user is logging in from, I don't suspect that is possible. You can snoop the HTTP headers, but I don't believe that information is present there. If it is, then you can should be able to customize Apache's log file format to include that information.

2 replies

jessh12-AmethystAnswer
12-Amethyst
January 15, 2015

The user is nbrm in the line shown. If that's not indicative of who is logging in, then that's an issue with your deployment.

If you additionally want to know which client user account the user is logging in from, I don't suspect that is possible. You can snoop the HTTP headers, but I don't believe that information is present there. If it is, then you can should be able to customize Apache's log file format to include that information.

23-Emerald IV
January 15, 2015

From a little Googling it seems like authentication information is only passed to Apache when requested. Since your Windchill logon appears different than the Windows logon, the information being requested will be specific to Windchill, not Windows. Not sure if it's possible or not, but you'd probably have to configure double authentication. Basically some type of hidden single sign on using the windows credentials and then the normal LDAP login for Windchill.

Here are some things on NTLM authentication:

http://www.apachelounge.com/viewtopic.php?p=25073

http://board.phpbuilder.com/showthread.php?10377804-RESOLVED-AUTH_USER-Apache-in-Windows-Domain