Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

LDAP Authentication Examples

 

This topic provides examples of LDAP authentication configuration file syntax. The examples illustrate how you might:

  • Authenticate passwords (Bind or BindName).

  • Specify check list and return list attributes (list the attributes or name a profile entry in the Steel-Belted Radius Carrier database).

Bind Authentication with Default Profile

Bind Authentication with Default Profile

The following example is a simple LDAP authentication configuration file. Every user is authenticated using a Bind request to the LDAP database. The same Steel-Belted Radius Carrier attribute profile is applied to every Access-Request.

If the [Response] section is empty, Steel-Belted Radius Carrier passes the Bind results (accept or reject) directly to its client; no additional RADIUS attributes are returned in the Access-Response.

BindName Authentication with Callback Number Returned

BindName Authentication with Callback Number Returned

In the following example, requests are authenticated using Search. BindName and BindPassword values are supplied to permit a connection to the LDAP database. Return list attributes for authentication are listed in the [Response] section. In this example, the network access server needs a callback number to complete the connection. The value of the incoming DNIS attribute Calling-Station-ID is used to ensure that the callback number is the number from which the user's request originated.

Note

This example is incomplete; it omits the [Bootstrap] and [Settings] sections to save space.

LDAP Bind with Profile Based on Network Access Server

LDAP Bind with Profile Based on Network Access Server

In the following example, requests are authenticated using Bind. Check list and return list attributes for authentication are provided by referencing a profile entry in the Steel-Belted Radius Carrier database. The profile to be used depends on the specific network access server from which the user’s request originates. Steel-Belted Radius Carrier retrieves the profile name by the LDAP database for an IP address that matches the address of the requesting NAS. If this search fails, a profile called limited is used. If a profile name is successfully retrieved from the LDAP database, but no profile by that name can be found in the Steel-Belted Radius Carrier database, authentication fails due to lack of resources and the user is rejected.

Note

This example is incomplete; it omits the [Bootstrap] section and many [Settings] entries to save space.