Questo contenuto non è disponibile nella lingua selezionata.

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

  1. Create a Test Page

    Create a test page named auth_kerb_page.html in the $EWS_HOME/httpd/www/html/kerberostest/.
  2. 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>
    Copy to Clipboard Toggle word wrap
  3. Optional: Set Log Level

    Optionally, set the log level for debugging in the $EWS_HOME/httpd/conf/httpd.conf file.
  4. Start httpd

    As the root user, start the JBoss Enterprise Web Server httpd as follows:
    # $EWS_HOME/httpd/sbin/apachectl start
    Copy to Clipboard Toggle word wrap
  5. Test Authentication

    Test the authentication as follows:
    1. Initiate Kerberos authentication for the test user hnelson:
      $ kinit hnelson
      Copy to Clipboard Toggle word wrap
    2. View the details for the test user hnelson:
      $ klist
      Copy to Clipboard Toggle word wrap
      A result similar to the following appears:
      Ticket cache: FILE:/tmp/krb5cc_18602
      Default principal: hnelson@EXAMPLE.COM
      
      Valid starting     Expires            Service principal
      06/03/13 14:21:13  06/04/13 14:21:13  krbtgt/EXAMPLE.COM@EXAMPLE.COM
              renew until 06/10/13 14:21:13
      Copy to Clipboard Toggle word wrap
    3. Testing httpd Kerberos Authentication

      Test httpd Kerberos authentication as follows:
      $ curl --negotiate -u : http://localhost/kerberostest/auth_kerb_page.html
      Copy to Clipboard Toggle word wrap
      If working correctly, the following result appears:
      <html>
        <body>
          <h1>mod_auth_kerb successfully authenticated!</h1>
      </body>
      </html>
      Copy to Clipboard Toggle word wrap
See http://modauthkerb.sourceforge.net/ for more information about mod_auth_kerb.
Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2025 Red Hat