[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]


Accepting Login Names with Different Formats

You can configure the SAE to accept login names of different formats. For example, the format subscriberName@domainName is a common format for the login name of subscribers who connect through PPP; however, other subscribers may use other formats, such as domainName/userName.

To configure the SAE to accept these different formats, you specify a set of properties that parse the login name to obtain the userName and domainName objects for the subscriber. Each property contains a regular expression that includes one or two subexpressions—independent expressions in the complete regular expression—each of which is enclosed in parentheses.

The property for login name parsing has the form:

LoginName.parser.<number>.<userGroup>[.<domainGroup>] = \ 

<regular expression>

number

userGroup

domainGroup

regular expression

This example parses the login name isp1\jane as:

domain name: isp1
username: jane 

Default Login Parser Properties

Table 10 shows default properties that the SAE uses to parse login names. Table 11 shows some examples of subscriber and domain names obtained through the default parsing properties.




Table 10: Default SAE Properties That Parse Login Names  
Property
Function
Values

LoginName.parser.1.1.2 = ([^@]*)@(.*)

Parses login names of the format userName@domainName

LoginName.parser.1.1.2—First parser applied by the SAE to login names; first backreference identifies the username, and second backreference identifies the domain name.

([^@]*)—First backreference: username is a string of characters other than the at-sign (@).

@—An at-sign precedes the domain name.

(.*)—Second backreference: domain name is a string of characters.

LoginName.parser.2.2.1 = ([^/]*)/(.*)

Parses login names of the format domainName/userName

LoginName.parser.2.2.1—Second parser applied by the SAE to login names; second backreference identifies the subscriber name, and first backreference identifies the domain name.

([^/]*)—First backreference: domain name is a string of characters other than the forward slash (/).

/—A forward slash precedes the username.

(.*)—Second backreference: username is a string of characters.

LoginName.parser.3.1= (.*)

Parses login names that contain no domain name

LoginName.parser.3.1—Third parser applied by the SAE to login names; first backreference identifies the username, no domain name.

(.*)—First backreference: username is a string of characters.




Table 11: Examples of Subscriber and Domain Names Obtained from Default Properties  
Login Name
Output from Default Parsing Properties

joeUser@isp1.com

  • The username is joeUser.
  • The domain name is isp1.com.

isp1/joe

  • The username is joe.
  • The domain name is isp1.

isp1/joe@isp2

  • The username is isp1/joe.
  • The domain name is isp2.


[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]