Hi, I can not give you the Perl script that will work in your enviroment however I do have a basic how to and if you mail me I will help you through the initial setup of authenticating via the perl script and AD , then ill help you modify the perl script to do the rest , It would be pretty simple to do what you want have your usual users auth against AD and then other users against a different database, It would however mean maintaining a separate user database. If you have a read of the how to and decide to go that way then let me know and ill help you out. How To http://www.flandercan.co.uk/content/how_to/SQUID%20Enhanced%20Authentication .htm Paul ---------------------------------------------------------------------------- -------- flandercan.co.uk Paul Flanders paul@xxxxxxxxxxxxxxxx http://www.flandercan.co.uk ---------------------------------------------------------------------------- -------- -----Original Message----- From: Pena, Botp [mailto:botp@xxxxxxxxxxxxxxxxx] Sent: 01 December 2005 05:42 To: flandercan Subject: RE: Squid + ntlm authentication with not trusted domains flandercan [mailto:lfdl06766@xxxxxxxxxxxxxxxx] wrote: #After spending some time looking at the ntlm auth from squid, #because it #didn’t do exactly what I wanted I wrote a perl program this #way I could make #it check the AD using ntlm_auth to see if a user existed and #was a member of #a group, then check to see if the user was in a specific #database this way #my normal users could exist in the AD and my tempory short #term users (some #students) could exist in a postgres database. Then rather than point #squid.conf to the ntlm_auth I point it to my perl app. It #works well and #means I can do other fancy things with authentication in the future. care to share your code as i am not a perl hacker? it would really help. thanks and kind regards -botp #Hope that helps get you where your going -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 30/11/2005 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.11/191 - Release Date: 02/12/2005