How to get aditional information from ldap with Kerberos authentication in the Apache httpd?

Solution Unverified - Updated -

Issue

Apache httpd is configured to use Kerberos login. How to get the mail from the ldap user?

<Location /examples>
                AuthName "Kerberos Login"
                AuthType Kerberos
                KrbMethodNegotiate on
                KrbAuthRealms EXAMPLE.COM
                KrbVerifyKDC on
                KrbServiceName HTTP/localhost@EXAMPLE.COM
                Krb5Keytab /etc/httpd/local.keytab
                KrbSaveCredentials off
                AuthBasicProvider ldap
                Require valid-user
                AuthLDAPURL "ldap://localhost:10368/ou=People,dc=example,dc=org?uid"

Environment

  • Red Hat Enterprise Linux (RHEL) 7
  • Apache httpd 2.4
  • mod_auth_kerb
  • mod_authnz_ldap

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In