Este contenido no está disponible en el idioma seleccionado.
12.2.5. Test the Kerberos Authentication
Use the following instructions to test the Kerberos authentication. As a prerequisite for this procedure, ensure that the Kerberos Client is configured (see Section 12.2.3, “Configure the Kerberos Client”).
Procedure 12.3. Test the Kerberos Authentication
Create a Test Page
Create a test page namedauth_kerb_page.htmlin the$EWS_HOME/httpd/www/html/kerberostest/.Add the Contents of the Test Page
Add the following contents to the test page (auth_kerb_page.html:<html> <body> <h1>mod_auth_kerb successfully authenticated!</h1> </body> </html><html> <body> <h1>mod_auth_kerb successfully authenticated!</h1> </body> </html>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: Set Log Level
Optionally, set the log level for debugging in the$EWS_HOME/httpd/conf/httpd.conffile.Start httpd
As the root user, start the JBoss Enterprise Web Server httpd as follows:$EWS_HOME/httpd/sbin/apachectl start
# $EWS_HOME/httpd/sbin/apachectl startCopy to Clipboard Copied! Toggle word wrap Toggle overflow Test Authentication
Test the authentication as follows:- Initiate Kerberos authentication for the test user
hnelson:kinit hnelson
$ kinit hnelsonCopy to Clipboard Copied! Toggle word wrap Toggle overflow - View the details for the test user
hnelson:klist
$ klistCopy to Clipboard Copied! Toggle word wrap Toggle overflow A result similar to the following appears:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Testing httpd Kerberos Authentication
Test httpd Kerberos authentication as follows:curl --negotiate -u : http://localhost/kerberostest/auth_kerb_page.html
$ curl --negotiate -u : http://localhost/kerberostest/auth_kerb_page.htmlCopy to Clipboard Copied! Toggle word wrap Toggle overflow If working correctly, the following result appears:<html> <body> <h1>mod_auth_kerb successfully authenticated!</h1> </body> </html><html> <body> <h1>mod_auth_kerb successfully authenticated!</h1> </body> </html>Copy to Clipboard Copied! Toggle word wrap Toggle overflow
See http://modauthkerb.sourceforge.net/ for more information about mod_auth_kerb.