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.
If the radiusname string contains
an equals sign (=), then it must be prefixed with a double backslash
(\\) in the LDIF file entry. For example:
dn: radiusname="C\\=SE,O\\=GOOGLE",radiusclass=Native-User,o=radius
Adding RADIUS Clients with LDIF
Adding RADIUS Clients with LDIF
The sample LDIF entry shown in Figure 207 adds a RADIUS client named ANNEX105 to the Steel-Belted Radius Carrier database.

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

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

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

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

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 212. The radiusname and radiusclass values for all of the transactions that apply to the same User entry must be the same.

Adding Proxy Targets with LDIF
Adding Proxy Targets with LDIF
The sample LDIF entry shown in Figure 213 adds the proxy RADIUS target BIGCO.COM to the Steel-Belted Radius Carrier database.

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

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

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

Adding IP Address Pools with LDIF
Adding IP Address Pools with LDIF
The sample LDIF entry shown in Figure 217 adds an IP address pool named POOL1 to the Steel-Belted Radius Carrier database.

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

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

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