1 | # ipdb/cgi-bin/MyIPDB.pm
|
---|
2 | # Contains site-specific functions for IPDB
|
---|
3 | # May override some functions from IPDB.pm, wraps others
|
---|
4 | ###
|
---|
5 | # SVN revision info
|
---|
6 | # $Date: 2013-05-17 03:30:49 +0000 (Fri, 17 May 2013) $
|
---|
7 | # SVN revision $Rev: 600 $
|
---|
8 | # Last update by $Author: kdeugau $
|
---|
9 | ###
|
---|
10 | # Copyright (C) 2004-2011 - Kris Deugau
|
---|
11 |
|
---|
12 | # don't remove! required for GNU/FHS-ish install from tarball
|
---|
13 | ##uselib##
|
---|
14 |
|
---|
15 | use IPDB 2.0 qw(:ALL);
|
---|
16 |
|
---|
17 |
|
---|
18 | # DSN, user, and password for database. These **MUST** be set.
|
---|
19 | my $dbname = 'ipdb';
|
---|
20 | my $dbuser = 'ipdb';
|
---|
21 | my $dbpass = 'ipdbpwd';
|
---|
22 | # DB host is optional.
|
---|
23 | my $dbhost = 'ipdb-db';
|
---|
24 |
|
---|
25 | # ACL for RPC shim. A hash of arrays; the hash keys are the remote system
|
---|
26 | # names, the array contents are the IPs allowed to claim that system name.
|
---|
27 | #%IPDB::rpcacl = (
|
---|
28 | # cli_test => ['192.168.99.115','209.91.179.62'],
|
---|
29 | # devel => ['10.0.10.5'],
|
---|
30 | # );
|
---|
31 |
|
---|
32 | # Quick workaround for fixed web path. Set this to the absolute web path to
|
---|
33 | # your IPDB install, or leave blank for installation at the webroot.
|
---|
34 | $IPDB::webpath = '';
|
---|
35 |
|
---|
36 | # Set some globals declared in IPDB.pm. Most of these only affect mailNotify().
|
---|
37 | # Note that while you *can* leave these at defaults, it's probably a Really Bad Idea.
|
---|
38 | # Also note that mail will silently not happen if at least smtphost and domain are not set.
|
---|
39 | #$IPDB::org_name = "Example Corp";
|
---|
40 | #$IPDB::smtphost = '127.0.0.1';
|
---|
41 | #$IPDB::domain = 'example.com';
|
---|
42 | #$IPDB::defcustid = '5554242';
|
---|
43 | # Globals for db2rwhois.pl
|
---|
44 | #$IPDB::rwhoisDataPath = '/usr/local/rwhoisd/etc/rwhoisd';
|
---|
45 | #$IPDB::org_street = '123 4th Street';
|
---|
46 | #$IPDB::org_city = 'Anytown';
|
---|
47 | #$IPDB::org_prov_state = 'ON';
|
---|
48 | #$IPDB::org_pocode = 'H0H 0H0';
|
---|
49 | #$IPDB::org_country = 'CA';
|
---|
50 | #$IPDB::org_phone = '000-555-1234';
|
---|
51 | # note: following may also just be a bare email address
|
---|
52 | #$IPDB::org_techhandle = 'ISP-ARIN-HANDLE';
|
---|
53 | #$IPDB::org_email = 'noc@example.com';
|
---|
54 | #$IPDB::hostmaster = 'dns@example.com';
|
---|
55 |
|
---|
56 | # Logging destination. Defaults to local2. See your local syslog docs for valid facilities.
|
---|
57 | # Note that the value here should have the LOG_ prefix removed, and convert to lower-case.
|
---|
58 | # local0 through local7 and user make the most sense.
|
---|
59 | #$IPDB::syslog_facility = 'daemon';
|
---|
60 |
|
---|
61 | # Allow allocations to come from private IP ranges by default?
|
---|
62 | # Set to 'y' or 'on' to enable.
|
---|
63 | #$IPDB::allowprivrange = '';
|
---|
64 |
|
---|
65 | ## connectDB_My()
|
---|
66 | # Wrapper for IPDB::connectDB
|
---|
67 | # Takes no arguments, returns whatever IPDB::connectDB returns.
|
---|
68 | sub connectDB_My {
|
---|
69 | return connectDB($dbname, $dbuser, $dbpass, $dbhost);
|
---|
70 | } # end connectDB_My()
|
---|
71 |
|
---|
72 | # Keep Perl from complaining.
|
---|
73 | 1;
|
---|