## SAMS settings

We can set up the SAMS settings to edit file /etc/sams.conf and change SAMS settings form.
File /etc/sams.conf is inclusive settings of the MySQL connection and shell scripts.

Options of sams.conf file
SAMS_DB=squidctrl - name of SAMS settings database
SQUID_DB=squidlog - name of SAMS database with SQUID cache
MYSQLHOSTNAME=localhost - name of host with MySQL base
MYSQLUSER=sams - name of MySQL user
MYSQLPASSWORD=yourpasswd - password of MySQL user
SQUIDROOTDIR=/etc/squid - SQUID root directory path
SQUIDLOGDIR=/var/squid/logs - SQUID log directory path
SQUIDCACHEFILE=access.log - name of SQUID log file
SQUIDPATH=/usr/sbin/squid - path to SQUID
SAMSPATH=/usr/local/sams - path to location of SAMS files

### Settings of the SAMS web interface

Select "WEB interface settings" in left frame and press key

Language: | select language of web interface
Allow the users access to your own statisatics on daily traffic on URL visiting | This key allows user's access to his statistics

### SAMS settings form

Select "SAMS administration" in left frame and press key |

SAMS settings form

Settings of the user authorization: this key set up settings to users authorization on squid-cache proxy.

NTLM

set up NTLM authorozation on squid-cache proxy
Switch on Use the user domain If you have several domains switch on "Use of user domain"
User domain is entered with the CAPITAL letters If your PC gives out the users domain with the capital letters, switch on "User domain is entered with the CAPITAL letters"
wbinfo -u
User name is entered with the CAPITAL letters If your PC gives out the user domain with the capital letters, switch on "User domain is entered with the CAPITAL letters"
Recode the domain users names Switch on recoding users name in the SQUID files. This command should be listed in the sams.conf file
For example to the Russian language:
In the Windows network users names are being sent in the DOS-866 codepage. In the SAMS database users names are saved in the KOI8-R codepage. For the users authentication you need to needed a recode files from KOI8-R to DOS-866.
recoding command:
iconv -f KOI8-R -t 866 %finp > %fout
%finp - input file
%fout - output file (if this needed)

NCSA | set up NCSA authorozation on squid-cache proxy
IP | set up user authorization to IP adress

Setting up samsdaemon Samsdaemon is the script to manage SQUID cache.

Check for the reconfiguration squid command every ... | Set time of request samsdaemon to SQUID reconfiguration. Minimum time period is 1 second.
Load SQUID logs | Permit on samsdaemon starting scripts for load SQUID logs to SAMS database Read SQUID log files constantly samsdaemon is starting the samsf script, Read SQUID log files every ... minute samsdaemon is starting the sams script, reading SQUID log files every ... minute Cleaning users traffic counters Clean the SAMS users traffic counters of the first day of month

Path to wbinfo: | Path to wbinfo
demand redirection file | graphical file for redirection
Path to the catalogue of the stored file of forbidden access | Path to files, used sams redirector for replace requested files
Redirector | Select the redirector
witch on the speed limit of the user access (delaypool) | witch on the speed limit for the SAMS users group