Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

for internet access, i config squid to authenticate users with win active directory.

when a user enter username and pass check with AC users. is a way to know what user from what ip connected?

share|improve this question

I don't know if it's possible to see information like "John Doe is currently authenticated from" but you can fetch the list of currently connected client IPs from Squid Cache Manager CGI (cachemgr.cgi) or via SNMP using SQUID.MIB and cacheClientTable.

share|improve this answer

Yes: Squid's access.log. It will report both the client IP address and the user name, if the user is authenticated.

share|improve this answer
no, i say seassion details for connected users. for example users that close web browser or expire his seassion, logs that – hamedsh Aug 26 '10 at 10:29
How could the proxy server know the user closed its browser? That's simply not possible, the HTTP protocol doesn't specify that this information should be sent by the browser to the web server (or proxy). – Massimo Aug 26 '10 at 10:38
i mean that close session, when a user close his browser and open that again must enter user-name and pass again – hamedsh Aug 26 '10 at 10:54
There's no authentication session on the proxy, the browser simply remebers your credentials after you enter them for the first time. Eveyr HTTP request is authenticated on its own, as HTTP is a connectionless protocol. – Massimo Aug 26 '10 at 11:44
OK, that authentication details where store? – hamedsh Aug 27 '10 at 6:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.