working BIND import
[freeside.git] / httemplate / docs / legacy.html
1 <head>
2   <title>Importing legacy data</title>
3 </head>
4 <body>
5   <h1>Importing legacy data</h1>
6 <font size="+2">In most cases, legacy data import all cases will require writing custom code to deal with your particular legacy data.  The example scripts here will not work "out-of-the-box".  Importing your legacy data will most probably involve some hacking on the example scripts noted below.  Contributions to the import process are welcome.</font>
7 <ul>
8   <li><a name="svc_domain">bin/svc_domain.import</a> - Import domain information from BIND named
9   <li><a name="svc_acct">bin/passwd.import</a> - Just import `passwd' and `shadow' or `master.passwd', no RADIUS import.
10   <li><a name="svc_acct">bin/svc_acct.import</a> - Import `passwd', ( `shadow' or `master.passwd' ) and RADIUS `users'.  Before running bin/svc_acct.import, you need <a href="../browse/part_svc.cgi">services</a> (with table svc_acct) as follows:
11     <ul>
12       <li>Most accounts probably have entries in passwd and users (with Port-Limit nonexistant or 1)
13       <li>Some accounts have entries in passwd and users, but with Port-Limit 2 (or more)
14       <li>Some accounts might have entries in users only (Port-Limit 1)
15       <li>Some accounts might have entries in users only (Port-Limit >= 2)
16       <li>POP mail accounts have entries in passwd only, and have a particular shell.
17       <li>Everything else in passwd is a shell account.
18     </ul>
19   <li><a name="svc_acct_sm">bin/svc_acct_sm.import</a> - Import qmail ( `virtualdomains' and `rcpthosts' ), or sendmail ( `virtusertable' and `sendmail.cw' ) files.  Before running bin/svc_acct_sm.import, you need <a href="../browse/part_svc.cgi">services</a> as follows:
20     <ul>
21       <li>Domain (table svc_acct)
22       <li>Mail alias (table svc_acct_sm)
23     </ul>
24   <li><a name="cust_main">Importing customer data</a>
25     <ul>
26       <li>Manually
27         <ul>
28           <li>Add a <a href="../edit/cust_main.cgi">new customer</a>
29           <li>Add one or more packages for this customer
30           <li>Enter a package by clicking on the package number
31           <li>Pick the `Link to existing' option
32         </ul>
33       <li>Batch - You will need to write a script to import your particular legacy data.  You can use eg/TEMPLATE_cust_main.import as a starting point.
34     </ul>
35 </ul>
36 </body>
37