Applies To:Show Versions
About basic authentication and Kerberos end-user logon
Access Policy Manager® provides an alternative to the current form-based login authentication method. This alternative method uses a browser login box, which is triggered by an HTTP 401 response to collect credentials. The HTTP 401 response is generated by either SPNEGO/Kerberos or basic authentication challenges. This option is useful in situations where your user has already logged into the local domain, and you would like to avoid having to submit an APM HTTP form for collecting user credentials. The browser will automatically submit credentials to the server and bypasses the login box to collect the credentials again.
The benefits of this feature include:
- Provides flexible login mechanism instead of restricting you to use only the form-based login method.
- Eliminates the need for domain users to explicitly type login information again to log in to the Access Policy Manager.
- Eliminates the need for user password transmission with Kerberos method.
How does end-user login work?
To retrieve user credentials for end-user login, you may use basic authentication or SPEGNO/Kerberos methods or both.
- Basic authentication
- Use this method to retrieve user credentials (user name and password) from a browser. You can think of this method as a replacement for form-based authentication used by the standard login screen. If you use basic authentication, the system populates the user name and password session variables, which can then be used by any other authentication actions, such as Active Directory or RADIUS.
- Use this method to retrieve user credentials through SPNEGO/Kerberos authentication header. With the Kerberos method, the client system must first join a domain and a Kerberos action must follow. The Kerberos action does not run immediately; it runs only when clients request SPNEGO/Kerberos authentication. The Kerberos authentication runs not only on the first request, but also on subsequent requests where authentication is needed, such as for new connections. Access Policy Manager® validates the request by confirming that a valid ticket is present.
Both methods require that an HTTP 401 Response action item be configured in the access policy and that the authentication method be specified in the action item. In cases where both methods are selected, the browser determines which method is performed based upon whether the system has joined a domain. The HTTP 401 Response action has two default branches to indicate whether basic authentication or Kerberos method is performed.
The end-user logon works with events happening in this order:
- The client becomes a member and connects to the domain.
- The client then connects to a virtual server on the BIG-IP® system.
- The access policy runs and issues a 401 HTTP request action.< action.
- If Kerberos is present, the browser forwards the Kerberos ticket along with the request when it receives the 401 HTTP request.
- Access Policy Manager validates the Kerberos ticket after the request is received and determines whether or not to permit the request.
Task summary for configuring end-user login support
To set up this configuration, perform the procedures in the task list. You can choose to configure with either Basic authentication or Kerberos method.
Joining a domain
- From the System Properties on a client machine, check to make sure the following parameters are set: domain controller, client machine, and APM vip.
- Ensure that there is a user account in the domain.
- Create a keytab file on the domain controller. You can use the ktpass utility to map the user account to the service account and generate a keytab file for the service, for example: c:>ktpass -princ HTTP/john.testbed.lab.fp.companynet.com@TESTBED.LAB.FP.COMPANYNET.COM -mapuser john -crypto rc4-hmac-nt -ptype KRB5_NT_SRV_HST -pass password -out c:\temp\john.keytab
Configuring for Kerberos authentication
- On the Main tab, click The AAA server list screen opens. .
- From the AAA Servers by Type menu, choose the server type you want to create. A screen listing existing servers of that type opens.
- Type a name for the authentication server you are creating.
- In the Auth Realm field, type in a Kerberos authentication realm name (administrative name), such as email@example.com.
- In the Service Name field, type in a service name, such as service name/hostname@kerberosrealm. This is used to verify incoming Kerberos token requests.
- In the Keytab File field, click Browse to locate your Keytab file. A keytab file contains Kerberos encrypted keys (these are derived from the Kerberos password). You can use this file to log into Kerberos without being prompted for a password.
- Click Finished to add the new server to the configuration, and return to the main screen.
Completing the configuration for the end-user logon support
- On the Main tab, click The Access Profiles List screen opens. .
- Click Create. The New Profile screen opens.
- Type a name for the access profile.
- In the Language Settings area, add and remove accepted languages, and set the default language. A browser uses the highest priority accepted language. If no browser language matches the accepted languages list, the browser uses the default language.
- Click Finished.
- In the Access Policy column, click the Edit link for the profile you want to configure to launch the visual policy editor. The visual policy editor opens the access profile in a separate window or tab.
- Click the [+] sign anywhere in your access profile to add your new policy action item. An Add Item window opens, listing Predefined Actions that are grouped by General Purpose, Authentication, and so on.
Under General Purpose, select HTTP 401 Response, and click
Attention: To get the client browser to respond to a WWW-Authenticate Negotiate header with a Kerberos ticket, the host/domain needs to be added to the Intranet Site List in Internet Explorer. Also, the host name must be added as a A-Record for DNS, or added to a local host file.
- In the 401 Response setting window, from the HTTP Auth level list, select basic+negotiate, and click Save. The HTTP 401 Response agent is added to the access policy.
- If you are performing basic authentication, add an authentication server agent after the basic branch.
- If you are performing Kerberos authentication method, add the Kerberos Auth agent after the negotiate branch, and specify the Kerberos AAA server.
- Click Apply Access Policy.
Access policy example for end-user logon
This is an example of an access policy with all the associated elements needed to successfully support the end-user login feature. Notice that separate branches were created to support using either basic authentication or Kerberos method to retrieve user credentials.