Subscriber Classification Targets
The target of the subscriber classification script is an LDAP search string. The search string uses a syntax similar to an LDAP URL (see RFC 2255—The LDAP URL Format (December 1997).
The syntax is:
- “ baseDN [ ? [ attributes ] [ ? [ scope ] [ ? [ filter
] ] ] ]”
- baseDN—Distinguished name of object where the LDAP search starts
- attributes—Can be used to override attributes in
the loaded LDAP object. For example, for static IP subscribers the
SAE must learn the IP address assigned to a particular subscriber.
This address is defined in the ipAddress attribute of the subscriber
profile. A target of the form baseDN?ipAddress=<-function(interfaceName)->
invokes function after the subscriber profile is loaded from LDAP
and sets the IP address to the return value of function. The function
is defined in the subscriber classification script, and can be used
for a variety of things; for example, to query an external database.

Note: You can use subscriber classification to override only the ipAddress, loginName, or accountingId attributes. If you configure values to override other attributes, the value is lost when the SAE recovers from a network or server failure.
- scope—Scope of search
- base—Is the default, searches the base DN only.
- one—Searches the direct children of the base DN.
- sub—Searches the complete subtree below the base DN.
- filter—Is an RFC 2254–style LDAP search filter expression; for example, (uniqueId=<-userName->). See RFC 2254—The String Representation of LDAP Search Filters (December 1997).
With the exception of baseDN all the fields are optional.
The result of the LDAP search must be exactly one directory object. If no object or more than one object is found, the subscriber session is terminated.
