Kerberos and SAP NetWeaver AS for Java
SAP NetWeaver Application Server for Java (SAP NetWeaver AS for Java) supports Kerberos authentication for Web-based access with the Simple and Protected GSS API Negotiation Mechanism (SPNego). SAP NetWeaver AS for Java uses SPNego to identify itself as a member of a Kerberos realm, determine a shared authentication mechanism, and negotiate its use for establishing a security context for further communication with the client.
SPNego enables you to use Kerberos authentication without an intermediary web server and independently of the underlying operating system (OS) of the SAP NetWeaver host.
Process
For an overview of the communication flow and the systems involved in Kerberos authentication with SAP NetWeaver, see the following figure.
-
The Web client accesses a resource of SAP NetWeaver AS for Java with a GET request.
-
SAP NetWeaver AS for Java returns a 401 response code (unauthorized) with a request to initiate SPNego authentication.
-
The Web client recognizes that the host of SAP NetWeaver AS for Java is a member of the Kerberos realm and procures a ticket from the KDC.
-
The Web client then sends the ticket to SAP NetWeaver AS for Java wrapped as a SPNego token.
-
The SPNegoLoginModule reads the token and authenticates the user.