The following will help you troubleshoot common issues with Kerberos authentication.
Common issues with Kerberos authentication:
- Clock skew too great while getting initial credentials error.
Solution: The Active directory and the RiskVision Server must not be more than 5 minutes apart. The clocks on both servers have to be in sync.
- Defective token detected (Mechanism level: GSSHeader did not find the right tag)
Solution: This can happen if the browser cannot negotiate the request with the Kerberos Distribution Center or Active Directory.
For Mozilla Firefox:
Set up the following environment variables:
- NSPR_LOG_FILE = c:/moz.log
- NSPR_LOG_MODULES = negotiateauth:5
Verify the Firefox configurations. Restart Firefox and check logs under C:/moz.log. If Firebug is enabled, check the header details. If the response is ":401 UnAuthorized," most likely, the issue is with the keytab files.
- Cannot load keytab files on RiskVision Server startup
Solution: The keytab files are loaded during startup. If the version number (kvno) is incorrect, the keytab will not be loaded. The best approach to generate the keytab files on the Active Directory is by using the ktpass command. The ktab command is known to cause issues due to the kvno number.
- Server not found in Kerberos database
Solution: This happens if the same SPN is mapped to multiple accounts or hostnames on the Active Directory. Unregister the SPN for other accounts on the Active Directory server by running the following command:
setspn -D service/name hostname
- Error 400 Bad Request
Solution: If user has many groups in Active Directory then request size might be more for Kerberos Authentication which can lead to 400 Bad Request. In order to resolve this issue please perform below changes:
- Go to
<%AGILIANCE_HOME%>\apache2\conf\extra
- Open
httpd-ssl.conf
using text editor and add below directive under<VirtualHost default:443>
- Go to
LimitRequestFieldSize 16380The default value for LimitRequestFieldSize is 8190, as per our requirement the size can be increase.
- Error 413 - Request Entity Too Large
Solution: When users encounters the error 413, then we need to perform below changes in Apache Web Server.
- Go to
<%AGILIANCE_HOME%>\apache2\conf\extra
- Open httpd-ssl.conf using text editor and add below directive under
<VirtualHost default:443>
LimitRequestBody 0
- Go to
<%AGILIANCE_HOME%>\apache2\conf\extra,
in theworkers.properties
file add:worker.agl_tomcat.max_packet_size=65536
- Restart Apache Service
- Go to <
%AGILIANCE_HOME%>\Tomcat\conf
, inserver.xml
file add the packetsizepacketSize="65536"
Example:<Connector address="0.0.0.0" port="8009"
enableLookups="false"
protocol="AJP/1.3"
packetSize="65536"
connectionTimeout="900000"
backlog="200"
maxThreads="300"
debug="0"
URIEncoding="UTF-8"/>
- Restart Tomcat Service
- Go to
If error still exists then we need to increase packet size.