SSO Authentication Fail
Troubleshooting
If your configuration is exactly like How to and still your SSO authentication failed. Check out the following:
-
Make sure the User Name: is administrator@safesquid.test (User name should be any user from AD having administrative permissions)
-
Monit service must be Up. Verify it using the command:
pidof monit
root@sabproxy:~# pidof monit 19940
- As soon as you Save policy by selecting NEGOTIATE_LDAP_AUTH kerberos.sh* script will automatically run from path /usr/local/safesquid/ui_root/cgi-bin
a. Verify below files at path**:/usr/local/safesquid/security**
HTTP.keytab
krb5.conf
krb.tkt
b. SafeSquid will create the stub zone for DNS resolution of your Active Directory server.
The file with stub zone will be created with the name: safesquid.dns.conf
At path**:/usr/local/safesquid/security/dns**
Run command:
cat safesquid.dns.conf
-----------------------------------------------------------------------
zone safesquid.test {
type stub;
masters {192.168.221.1;};
};
-----------------------------------------------------------------------
Also, it will automatically copy at given path**:/etc/bind/** Run command:
cat safesquid.dns.conf
-----------------------------------------------------------------------
zone safesquid.test {
type stub;
masters {192.168.221.1;};
};
-----------------------------------------------------------------------
Note: Monit service must be up
If any one of the above entries missing you have to repeat all the steps.
First, remove all the given files from the above-given path.
Start monit service and repeat all the steps and capture logs
Command:
tail -F /var/log/safesquid/native/safesquid.log
-
Go to Access Restriction > GLOBAL >> SSO: TRUE
-
ALLOW List: Policy with PAM: TRUE
-
Testing SSO Auth
a. Go to the Windows machine which joins in the domain of AD e.g windows7.safesquid.test b. Go to the browser and set PROXY as FQDN of the proxy server (sabproxy.safesquid.test) c. Access any website (Authentication prompt should not come) d. Open extended logs
tail -F /var/log/safesquid/extended/extended.log
find username@SAFESQUID.TEST@ 192.168.221.212 (IP address of Windows machine which is in the domain)