From 0fd508f695b4f19a447eba7663f59dc7fb4033d3 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 20 Aug 2001 09:38:28 +0000 Subject: [PATCH] documentation updates --- httemplate/docs/config.html | 6 ++-- httemplate/docs/export.html | 17 ++++++++---- httemplate/docs/schema.html | 68 +++++++++++++++++++++------------------------ 3 files changed, 46 insertions(+), 45 deletions(-) diff --git a/httemplate/docs/config.html b/httemplate/docs/config.html index 0807ac7c7..64dbcfe3f 100644 --- a/httemplate/docs/config.html +++ b/httemplate/docs/config.html @@ -57,7 +57,7 @@ All further configuration files and directories are located in
  • invoice_from - Return address on email invoices.
  • invoice_template - Required template file for invoices. See the section on billing for details.
  • lpr - Print command for paper invoices, for example `lpr -h'. -
  • maildisablecatchall - The existance of this file will disable the requirement that each virtual domain have a catch-all mailbox. +
  • maildisablecatchall - DEPRECIATED, now the default. The existance of this file used to disable the requirement that each virtual domain have a catch-all mailbox.
  • money_char - Currency symbol - defaults to `$'.
  • mxmachines - MX entries for new domains, weight and machine, one per line, with trailing `.'
  • nsmachines - NS nameservers for new domains, one per line, with trailing `.' @@ -97,13 +97,13 @@ All further configuration files and directories are located in
  • soarefresh - SOA refresh for new domains
  • soaretry - SOA retry for new domains
  • statedefault - Default state or province (if not supplied, the default is `CA') -
  • textradiusprepend - depriciated, use RADIUS check attributes instead. The contents of this file will be prepended to the first line of a user's RADIUS entry in text exports. +
  • textradiusprepend - DEPRECIATED, use RADIUS check attributes instead. This option will be removed soon. The contents of this file will be prepended to the first line of a user's RADIUS entry in text exports.
  • usernamemin - Minimum username length (default 2);
  • usernamemax - Maximum username length (default is the size of the SQL column, probably specified when fs-setup was run)
  • username-letter - The existance of this file will turn on the requirement that usernames contain at least one letter.
  • username-letterfirst - The existance of this file will turn on the requirement that usernames start with a letter.
  • username_policy - This file controls the mechanism for preventing duplicate usernames in passwd/radius files exported from svc_accts. This should be one of 'prepend domsvc' 'append domsvc' or 'append domain' -
  • vpopmailmachines - Your vpopmail pop toasters, one per line. Each line is of the form "machinename vpopdir vpopuid vpopgid". Eg: poptoaster.domain.tld /home/vpopmail 508 508 Note: vpopuid and vpopgid are values taken from the vpopmail machine's /etc/passwd +
  • vpopmailmachines - Your vpopmail pop toasters, one per line. Each line is of the form "machinename vpopdir vpopuid vpopgid". For example: poptoaster.domain.tld /home/vpopmail 508 508 Note: vpopuid and vpopgid are values taken from the vpopmail machine's /etc/passwd diff --git a/httemplate/docs/export.html b/httemplate/docs/export.html index d92eec346..7f3a07118 100755 --- a/httemplate/docs/export.html +++ b/httemplate/docs/export.html @@ -14,7 +14,7 @@ it is reccommended that you replicate the data to an external RADIUS machine rat
  • radiusmachines - users is copied to the /etc/raddb directory on the remote machine. If no errors occur, the command ( builddbm ) is executed on the remote machine.
  • icradiusmachines - Local radcheck and radreply tables will be created. If any machines are specified, the remote MySQL database will be locked and the radcheck table will be copied to the those machines. You may also need to set the icradius_mysqlsource and/or icradius_mysqldest configuration files. Currently you need to be running MySQL for your Freeside database to use this feature. -
  • site_perl/svc_acct.pm - If a shellmachine is defined, users can be created, modified and deleted remotely; see below. +
  • svc_acct.pm - If a shellmachine is defined, users can be created, modified and deleted remotely; see below.
    • Account creation - If the username, uid and dir fields are defined for a new user, the command(s) specified in the shellmachine-useradd configuration file are executed on shellmachine via ssh. If this file does not exist, useradd -d $dir -m -s $shell -u $uid $username is the default. If the file exists but is empty, cp -pr /etc/skel $dir; chown -R $uid.$gid $dir is the default instead. Otherwise the contents of the file are treated as a double-quoted perl string, with the following variables available: $username, $uid, $gid, $dir, and $shell.
    • Account deletion - The command(s) specified in the shellmachine-userdel configuration file are executed on shellmachine via ssh. If this file does not exist, userdel $username is the default. If the file exists but is empty, rm -rf $dir is the default instead. Otherwise the contents of the file are treated as a double-quoted perl string, with the following variables available: $username and $dir. @@ -26,15 +26,22 @@ it is reccommended that you replicate the data to an external RADIUS machine rat
    • shellmachine - The command [ -e homedir/.qmail-default ] || { touch homedir/.qmail-default; chown uid.gid homedir/.qmail-default; } will be run on this machine for users in the virtualdomains file.
    • sendmailmachines - sendmail.cw and virtusertable are copied to the remote machine as /etc/sendmail.cw.new and /etc/virtusertable.new. If no errors occur, they are moved to /etc/sendmail.cw and /etc/virtusertable and the command specified in the sendmailrestart configuration file is executed. (The path can be changed from the default /etc with the sendmailconfigpath configuration file.)
    -
  • site_perl/svc_acct_sm.pm - If the qmailmachines configuration file exists and a shellmachine is defined, user .qmail- files can be updated. +
  • svc_domain.pm - If the qmailmachines configuration file exists and a shellmachine is defined, user .qmail- files can be updated for catchall mailboxes.
      -
    • The command [ -e homedir/.qmail-domain-default ] || { touch homedir/.qmail-domain-default; chown uid.gid homedir/.qmail-domain-default; } is run. +
    • The command
      [ -e homedir/.qmail-domain-default ] || {
      +    touch homedir/.qmail-domain-default;
      +    chown uid.gid homedir/.qmail-domain-default;
      +}
      is run.
    +
  • svc_forward.pm - Not yet documented; see manpage. +
  • svc_www.pm - Not yet documented; see manpage.
    Unattended remote login - Freeside can login to remote machines unattended using SSH. This can pose a security risk if not configured correctly, and will allow an intruder who breaks into your freeside machine full access to your remote machines. Do not use this feature unless you understand what you are doing!
      -
    • As the freeside user (on your freeside machine), generate an authentication key using ssh-keygen. Since this is for unattended operation, you need to use a blank passphrase. -
    • Append the newly-created identity.pub file to root's authorized_keys on the remote machine(s). +
    • As the freeside user (on your freeside machine), generate an authentication key using ssh-keygen. Since this is for unattended operation, use a blank passphrase. +
    • Append the newly-created identity.pub file to ~root/.ssh/authorized_keys on the remote machine(s). +
    • Some new SSH v2 implementation accept v2 style keys only. Use the -t option to ssh-keygen, and append the created id_dsa.pub or id_rsa.pub to ~root/.ssh/authorized_keys2 on the remote machine(s). +
    • You may need to set PermitRootLogin without-password (meaning with keys only) in your sshd_config file on the remote machine(s).
    diff --git a/httemplate/docs/schema.html b/httemplate/docs/schema.html index 61bc17b03..0da33a5c2 100644 --- a/httemplate/docs/schema.html +++ b/httemplate/docs/schema.html @@ -4,7 +4,7 @@

    Schema reference

      -
    • agent - Agents are resellers of your service. Agents may be limited to a subset of your full offerings (via their agent type). +
    • agent - Agents are resellers of your service. Agents may be limited to a subset of your full offerings (via their agent type).
      • agentnum - primary key
      • agent - name of this agent @@ -12,12 +12,12 @@
      • prog - (unimplemented)
      • freq - (unimplemented)
      -
    • agent_type - Agent types define groups of packages that you can then assign to particular agents. +
    • agent_type - Agent types define groups of packages that you can then assign to particular agents.
      • typenum - primary key
      • atype - name of this agent type
      -
    • cust_bill - Invoices. Declarations that a customer owes you money. The specific charges are itemized in cust_bill_pkg. +
    • cust_bill - Invoices. Declarations that a customer owes you money. The specific charges are itemized in cust_bill_pkg.
      • invnum - primary key
      • custnum - customer @@ -25,7 +25,7 @@
      • charged - amount of this invoice
      • printed - how many times this invoice has been printed automatically
      -
    • cust_bill_pkg - Invoice line items +
    • cust_bill_pkg - Invoice line items
      • invnum - (multiple) key
      • pkgnum - package or 0 for the special virtual sales tax package @@ -34,7 +34,7 @@
      • sdate - starting date
      • edate - ending date
      -
    • cust_credit - Credits. The equivalent of a negative cust_bill record. +
    • cust_credit - Credits. The equivalent of a negative cust_bill record.
      • crednum - primary key
      • custnum - customer @@ -43,12 +43,11 @@
      • otaker - order taker
      • reason
      -
    • cust_main - Customers +
    • cust_main - Customers
      • custnum - primary key
      • agentnum - agent
      • refnum - referral -
      • titlenum - title
      • first - name
      • last - name
      • ss - social security number @@ -84,13 +83,13 @@
      • otaker - order taker
      (columns in italics are optional) -
    • cust_main_invoice - Invoice destinations for email invoices. Note that a customer can have many email destinations for their invoice (either literal or via svcnum), but only one postal destination. +
    • cust_main_invoice - Invoice destinations for email invoices. Note that a customer can have many email destinations for their invoice (either literal or via svcnum), but only one postal destination.
      • destnum - primary key
      • custnum - customer
      • dest - Invoice destination. Freeside supports three types of invoice delivery: send directly to a service defined in Freeside, send to an arbitrary email address, or print the invoice to a printer and have someone send it out via snail mail. Freeside determines which method to use based on the contents of the dest field. If the contents are numeric, a svcnum pointing to a valid service is expected in the field. If the contents are a string, a literal email address is expected to be in the field. If the special keyword `POST' is present, the snail mail method is used (which is the default if no cust_main_invoice records exist). Snail mail invoices get their address information from cust_main and are printed with the printer defined in the configuration files.
      -
    • cust_main_county - Tax rates +
    • cust_main_county - Tax rates
      • taxnum - primary key
      • state @@ -98,7 +97,7 @@
      • country
      • tax - % rate
      -
    • cust_pay - Payments. Money being transferred from a customer. +
    • cust_pay - Payments. Money being transferred from a customer.
      • paynum - primary key
      • invnum - invoice @@ -108,7 +107,7 @@
      • payinfo - card number, P.O.#, or comp issuer
      • paybatch - text field for tracking card processor batches
      -
    • cust_pay_batch - Pending batch +
    • cust_pay_batch - Pending batch
      • trancode - 77 for charges
      • cardnum @@ -126,7 +125,7 @@
      • zip
      • country
      -
    • cust_pkg - Customer billing items +
    • cust_pkg - Customer billing items
      • pkgnum - primary key
      • custnum - customer @@ -138,7 +137,7 @@
      • cancel - (past) cancellation date
      • otaker - order taker
      -
    • cust_refund - Refunds. The transfer of money to a customer; equivalent to a negative cust_pay record. +
    • cust_refund - Refunds. The transfer of money to a customer; equivalent to a negative cust_pay record.
      • refundnum - primary key
      • crednum - credit @@ -148,13 +147,13 @@
      • payinfo - card number, P.O.#, or comp issuer
      • otaker - order taker
      -
    • cust_svc - Customer services +
    • cust_svc - Customer services -
    • nas - Network Access Server (terminal server) +
    • nas - Network Access Server (terminal server)
      • nasnum - primary key
      • nas - NAS name @@ -162,7 +161,7 @@
      • nasfqdn - NAS fully-qualified domain name
      • last - timestamp indicating the last instant the NAS was in a known state (used by the session monitoring).
      -
    • part_pkg - Package definitions +
    • part_pkg - Package definitions
      • pkgpart - primary key
      • pkg - package name @@ -171,12 +170,12 @@
      • freq - recurring frequency (months)
      • recur - recurring fee
      -
    • part_referral - Referral listing +
    • part_referral - Referral listing
      • refnum - primary key
      • referral - referral
      -
    • part_svc - Service definitions +
    • part_svc - Service definitions
      • svcpart - primary key
      • svc - name of this service @@ -184,31 +183,26 @@
      • table__field - Default or fixed value for field in table
      • table__field_flag - null, D or F
      -
    • part_title - Personal titles -
        -
      • titlenum - primary key -
      • title - personal title (`Dr.' or `Mr.') -
      -
    • pkg_svc +
    • pkg_svc -
    • port - individual port on a nas +
    • port - individual port on a nas
      • portnum - primary key
      • ip - IP address of this port
      • nasport - port number on the NAS
      • nasnum - NAS
      -
    • prepay_credit +
    • prepay_credit
      • prepaynum - primary key
      • identifier - text or numeric string used to receive this credit
      • amount - amount of credit
      -
    • session +
    • session
      • sessionnum - primary key
      • portnum - Port @@ -217,7 +211,7 @@
      • logout - timestamp indicating the end of this user session. May be null, which indicates a currently open session.
      -
    • svc_acct - Accounts +
    • svc_acct - Accounts
      • svcnum - primary key
      • username @@ -232,7 +226,7 @@
      • slipip - IP address
      • radius_Radius_Attribute - Radius-Attribute
      -
    • svc_acct_pop - Points of Presence +
    • svc_acct_pop - Points of Presence
      • popnum - primary key
      • city @@ -241,26 +235,26 @@
      • exch - exchange
      • loc - rest of number
      -
    • svc_acct_sm - DEPRICIATED Domain mail aliases +
    • svc_acct_sm - DEPRECIATED Domain mail aliases -
    • svc_domain - Domains +
    • svc_domain - Domains -
    • svc_forward - Mail forwarding aliases -
    • domain_record - Domain zone detail +
    • domain_record - Domain zone detail
      • recnum - primary key
      • svcnum - Domain (by svcnum) @@ -269,13 +263,13 @@
      • rectype - type for this record (A, MX, etc.)
      • recdata - data for this record
      -
    • svc_www +
    • svc_www -
    • type_pkgs +
    • type_pkgs