Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- auth_param basic /usr/lib/squid/ncsa_auth.script /etc/squid/passwd.file
- #!/bin/bash
- AUTH_DATE=`date +"%d-%m-%Y %H:%M:%S"`
- while read; do
- AUTH_STRING="$REPLY"
- USERNAME=`echo ${AUTH_STRING} | awk -F' ' '{print $1}'`
- RES=`echo ${AUTH_STRING} | /usr/lib/squid/ncsa_auth /etc/squid/passwd`
- echo -e $AUTH_DATE'tusername:'${USERNAME}'ttlogin result:t'$RES >> /var/log/squid/auth.log
- echo $RES
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement