# @(#)x29-auth 1.6 93/06/29
#
# This is a sample X.29 configuration file.  This illustrates how you
# can use the various configuration parameters to advantage in providing
# X.29 services to different users.  First, a brief explanation of the
# parameters is given, which is then followed by examples of usage.
#
# Parameters are specified using the "keyword=value" paradigm.  Keywords
# in uppercase are global, and those in lowercase apply to specifc sets
# of users.  Global parameters should be specified at the beginning.  For
# particular users, these may be overridden by lowercase entries placed in
# the lines that apply to them.  If a line has more than one parameter,
# they should be separated by a colon (':').  Empty fields are ignored.
# NOTE: There should not be any space or tab characters except in the
# banner specification (see BN, bn below).
#
# The keywords and their meanings are:
#
# BN, bn - used to specify an identifying banner that is printed out when
# users dial in.  By default, there is no banner.
#
# EX, ex - used to specify the program executed for a user.  By default, the
# program is /bin/login.
#
# MODE, mode - The only value accepted for this parameter currently is 80.
# If specified, X.29 will not set pad parameters 1, 13, 14, 15, 16, 17, and 18.
# By default, it will set those parameters.
#
# PTY - used to specify alternate/additional ptys.  Syntax is
# :PTY=qrst:, where `q', `r', `s', `t', etc., correspond to /dev/ptyq0 through
# /dev/ptytf.  The default is p, q, r, and s.  If the PTY parameter is
# specified, only the specified ptys are used (not the defaults).
#
# N, n - Values are 'on' and 'off'.  If value is 'on', native mode is used.
# In native mode, the host echoes the characters typed in at the terminal.
# In non-native mode, the PAD does the local echoing.  The default mode is
# non-native (PAD does the echoing).
#
# PC, pc - used to specify parameter values to be used in non-native (ie,
# 'cooked') mode.  For example, PC3=126 will set the forwarding character
# set to that corresponding to 126 in non-native mode - if you run an
# application that puts the terminal in native mode (say vi), parameter 3
# will be set to value specified for native mode, or the default value for
# native mode if not specified for native mode.  Note that this parameter
# will not be used if the terminal always operates in native mode.
#
# PN, pn - used to specify parameter values to be used in native mode (ie,
# 'raw' mode).  For example, PN4=4 will set the idle timer delay to 0.2
# second when host does echoing.  Specifying this will not affect the
# value of the parameter in non-native mode, which can be controlled
# independently using the PC parameter.
#
# NOTE: certain parameters are always obtained from the tty driver
# configuration, and may not be set using PC (pc) or PN (pn).  These are
# 2 in non-native mode, 9, 10, 12, and 14-18 in non-native mode.  The
# parameters 5, 6, and 11 are never set.
#
# sa - used to specify the template for source address for a set of users.
# Wildcard characters '?' (match any 1 character) and '*' (match a sub-string)
# may be used in the template.
#
# da - used to specify the template for destination address in the incoming
# call.  For example, X.29 may start up different applications based on the
# subaddress component of the destination address in the incoming call.
# Wildcard characters '?' (match any 1 character) and '*' (match a sub-string)
# may be used in the template.
#
# saef - used to specify the template for the source (calling) address
# extension for a set of users.  Wildcard characters '?' (match any 1
# character) and '*' (match a sub-string) may be used in the template.
#
# daef - used to specify the template for the destination (called) address
# extension for a set of users.  Wildcard characters '?' (match any 1
# character) and '*' (match a sub-string) may be used in the template.


# Set global parameters.  The following global parameters specify a
# banner and executable.  Non-native mode is used.  In 'cooked' mode,
# forwarding character set specified by 126 is used.  In 'raw' mode
# a forwarding timeout of 3/20 (0.15) sec is used.  Ptys ptyp0 through
# ptytf are used.

BN=This is our latest and greatest X.29 service
EX=/bin/login:N=off:PN4=3:PC3=126
PTY=pqrstuvwxyzPQRST

# Now specify parameter values for specifc users.

# The following line is for an old pad that cannot handle parameters
# 1 and 13-18.  This one is only interested in login.
# NOTE: in general, all special cases must appear before the general
# cases that match the special cases.

sa=567843256*:mode=80:bn=You weirdo!

# The following specifies that for any source address, if the destination
# address ends with 01 (the subaddress), execute /bin/database instead of
# /bin/login, and use native mode.

da=*01:ex=/bin/database:n=on

# The following specifes that for an incoming call whose source address
# has DNIC 4042 and subaddress 01, and whose destination address has at
# least three digits followed by a subaddress of 02, /bin/special is
# started up.  Also, it has a special banner.  Note the use of the '\'
# character for continuation.  In cooked mode, pad recall is on, while in
# raw mode, pad recall is off.

sa=4042*01:da=???*02:pc1=1:pn1=0:ex=/bin/special:bn=This is a special\
application just for you!

# The following is a catch-all that handles all the users that don't
# match the above specifications.  Although both sa and da are specified,
# it is necessary only to specify one of either sa or da.  The default
# parameter values specified with global parameters are used.

sa=*:da=*
