hy every body, We have dokeos application using apache as the web server. when accessing dokeos we have to login, So users who try to access this application , has to login using ID & pwd. But I don't have this ID information in the apache webserver log files. I mean "user name" information is not getting into the log files. Thanks.
2 Answers
You need to do authentication via HTTP headers for apache to log the info in the user field of the http logs. If the login to the application is via a form/cookies then apache does not consider the user authenticated.
![](../../users/profiles/7136.webp)
- 1,147
- 1
- 7
- 9
-
thank you, but i don't no hhow to do that dokeos is e-learning envirment, it need authentification to access. how can i link this authentification to http headers – Dec 15 '09 at 06:51
I assume we're talking about application-level login, not http auth here?
If the form submitting the username/password uses POST as the form method, then the username is embedded in the http body - you won't see it logged on the URL.
EDIT:
I looked at their demo site. Here is the form tag for the login form:
<form action="/index.php" method="post" name="formLogin" id="formLogin">
Because the method is post, you won't see the username/password in the logs. In most cases, this is a good idea for security purposes. If you need to track logins by user, and the application doesn't already have this, you could add some code to index.php where it processes the login to make a log entry an a separate file:
2009-12-16 11:55:00 User jsmith logged in from 192.168.1.123
![](../../users/profiles/28190.webp)
- 171
- 1
- 1
- 4
-
BTW, this post could be tagged better, but I don't have the points to re-tag. Anyone? – Matt Dec 15 '09 at 18:55
-
thank you for your hepl, i'm not good in that. so, i need to know if i can do some thing to have the login from dokeos form(php form) in the log file. or i can't have that – Dec 15 '09 at 21:16
-
edited my entry to reply to your comment... it didn't like the html in the comment. – Matt Dec 16 '09 at 16:56