Difference between revisions of "Authentication is not working"

From Secure Web Gateway
en>Samidha12
 
m (1 revision imported: Importing all pages)

Revision as of 15:36, 24 July 2021

Issues

  1. If your LDAP configuration  is improper, you should face authentication issue
  2. If your user name or password is wrong,  you should face authentication issue
  3. In case of SSO authentication if your access policies under access restriction section are not properly configured, you should face authentication issue.
  4. In case of SSO authentication if your entered wrong password multiple times for LDAP fail over your password should save under Reports > password cache on SafeSquid interface, you should face authentication issue.
  5. If SSO configuration is improperly configured, you should face authentication issue
  6. If time and date synchronization is not same among proxy server,active directory and client machine, you should face authentication issue

Solution

Case 1: If your LDAP configuration is improper, you should face authentication issue

Integrate Active Directory For Simple Authentication as per the link so that your authentication issue will solve.

Verify it from SafeSquid Logs.

GET http://safesquid.cfg/ HTTP/1.1
Host: safesquid.cfg
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Upgrade-Insecure-Requests: 1
Proxy-Authorization: Basic c2FtaWRoYWs6c2FydmE=


2019 04 08 16:34:56.398 [11750] debug: ldap: set_dn:1009 ip:[192.168.0.10] user:[SAMIDHAK@SAFESQUID.TEST] DN:[CN=samidhak,DC=safesquid,DC=test] Groups:[DC=safesquid DC=test,CN=MANAGERS DC=safesquid DC=test,SAMIDHAK@SAFESQUID.TEST]
2019 04 08 16:34:56.398 [11750] error: security: [IP:192.168.0.10] password cache: authentication failed for samidhak
2019 04 08 16:34:56.399 [11750] debug: header: to 192.168.0.10:
HTTP/1.1 407 Proxy Authentication Required
X-Powered-By: safesquid-2019.0401.1624.3-swg-standard
Proxy-Authenticate: Basic realm="sabproxy.safesquid.test"
Content-Length: 0
Proxy-Connection: close
X-SafeSquid-Client-ID: 11750.0

 

Case 2: If your user name or password is wrong,  you should face authentication issue

Make sure about your username and password for any authentication either it will be Simple authentication link,Basic authentication link or Interface authentication link

 

Case 3: In case of SSO authentication if policy configuration under Access Restriction section is improper, you should face authentication issue.

Make sure about your policy configuration under Access Restriction section as per the link

 

Case 4: In case of SSO authentication if  authentication challenge appears on interface and your entered wrong password multiple times for LDAP fail-over your password should save/stored under Reports > password cache on SafeSquid Interface, you should face authentication issue

Access SafeSquid Interface LINK and remove all the password which you entered from Reports > password cache.

 

Case 5: If SSO configuration is improper, you should face authentication issue

Before Integrating Active Directory For SSO Authentication make sure your DNS configuration and NTP server configuration is as per the  specify DNS and NTP server Configuration

For Integrating Active Directory For SSO Authentication follow link so that your authentication issue will solve.

 

Case 6: If time and date synchronization is not same among proxy server,active directory and client machine, you should face authentication issue

Verify the time and date synchronization amongproxy server,active directory and client machine using following command.

Command:

root@sabproxy:~# ntpdate <server_IP>

Example:

In our case Proxy server IP address : 192.168.221.222

                 Active Directory IP address : 192.168.221.1

                 Client machine IP address : 192.168.221.212  (Windows test machine)

Verify time and date synchronization from proxy server (192.168.221.222) .Run below command

Command:

root@sabproxy:~# ntpdate 192.168.221.1                   

25 Jan 16:44:14 ntpdate[22275]: the NTP socket is in use, exiting

Time synchronization between Proxy server and Act

Same way verify Time synchronization between Proxy server and Client machine as well as Active Directory and Client machine

All the three machines are with same time and date