Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation  Back up to About Overview 
  
[+] Expand All
[-] Collapse All

LDIF File Examples

This section explains how to construct LDIF files that, when input to the ldapmodify command, add entries to the Steel-Belted Radius Carrier database.

Adding RADIUS Clients with LDIF

The sample LDIF entry shown in Figure 206 adds a RADIUS client named ANNEX105 to the Steel-Belted Radius Carrier database.

Figure 206: Adding RADIUS Clients

Adding RADIUS Clients

The syntax in this LDIF entry is shown in Figure 207.

Figure 207: LDIF Syntax

LDIF Syntax

Adding Users with LDIF

The sample LDIF entry shown in Figure 208 adds a Local (Native) User, named KEVIN to the Steel-Belted Radius Carrier database.

Figure 208: Adding Users

Adding Users

The syntax in this LDIF entry is shown in Figure 209.

Figure 209: LDIF Syntax

LDIF Syntax

The LDIF file shown in Figure 210 add a local (native) user named CHRISTIAN, who has various attribute/value pairs assigned to his check list and return list.

Figure 210: Adding a Native User

Adding a Native User

Check lists and return lists are objects in the LDAP virtual schema, but the individual RADIUS attributes are not. Therefore, you must use a separate LDIF entry for each check list and return list object, but each LDIF entry can name multiple attribute/value pairs.

To indicate that a transaction applies to the user’s check list (rather than to the user entry itself), use the keyword check as the value for radiuslist and objectclass within the transaction. You must assign this value to radiuslist in the distinguished name, and again before the list of attributes. You must also assign the value to objectclass, above the second radiuslist entry.

To indicate the return list, use the keyword reply.

The LDIF syntax to add a user entry, complete with a check list and return list, is shown in Figure 211. The radiusname and radiusclass values for all of the transactions that apply to the same User entry must be the same.

Figure 211: Adding a User with Check List and Return List Attributes

Adding a User with Check List and Return
List Attributes

Adding Proxy Targets with LDIF

The sample LDIF entry shown in Figure 212 adds the proxy RADIUS target BIGCO.COM to the Steel-Belted Radius Carrier database.

Figure 212: Adding Proxy Targets

Adding Proxy Targets

The syntax in this LDIF entry is shown in Figure 213.

Figure 213: LDIF Syntax

LDIF Syntax

Adding Tunnels with LDIF

The sample LDIF entry shown in Figure 214 adds the tunnel ACME.COM to the Steel-Belted Radius Carrier database.

Figure 214: Adding Tunnels

Adding Tunnels

The syntax in this LDIF entry is shown in Figure 215.

Figure 215: LDIF Syntax

LDIF Syntax

Adding IP Address Pools with LDIF

The sample LDIF entry shown in Figure 216 adds an IP address pool named POOL1 to the Steel-Belted Radius Carrier database.

Figure 216: Adding IP Address Pools

Adding IP Address Pools

The syntax in this LDIF entry is shown in Figure 217.

Figure 217: LDIF Syntax

LDIF Syntax

Configuring a RADIUS Server with LDIF

The sample LDIF entry shown in Figure 218 lets you configure your Steel-Belted Radius Carrier server by adding the Native User authentication method and defining conventions for tunnel name parsing.

Figure 218: Adding a RADIUS Server

Adding a RADIUS Server

The syntax in this LDIF entry is shown in Figure 219.

Figure 219: LDIF Syntax

LDIF Syntax

Modified: 2017-03-07