source: trunk/cgi-bin/MyIPDB.pm@ 666

Last change on this file since 666 was 661, checked in by Kris Deugau, 10 years ago

/trunk

Backmerge minor RPC fixes from /branches/stable r610

  • Property svn:keywords set to Date Rev Author
File size: 2.4 KB
RevLine 
[142]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: 2014-12-29 22:52:03 +0000 (Mon, 29 Dec 2014) $
7# SVN revision $Rev: 661 $
8# Last update by $Author: kdeugau $
9###
[417]10# Copyright (C) 2004-2010 - Kris Deugau
[142]11
[417]12# don't remove! required for GNU/FHS-ish install from tarball
13##uselib##
14
[142]15use IPDB 2.0 qw(:ALL);
16
17
[432]18# DSN, user, and password for database. These **MUST** be set.
19my $dbname = 'ipdb';
20my $dbuser = 'ipdb';
21my $dbpass = 'ipdbpwd';
22# DB host is optional.
[659]23my $dbhost = 'localhost';
[432]24
[660]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# );
[661]31# Only you can prevent memory leaks!
32#$IPDB::maxfcgi = 100;
[517]33
[660]34# Quick workaround for fixed web path. Set this to the absolute web path to
35# your IPDB install, or leave blank for installation at the webroot.
36$IPDB::webpath = '';
37
[416]38# Set some globals declared in IPDB.pm. Most of these only affect mailNotify().
39# Note that while you *can* leave these at defaults, it's probably a Really Bad Idea.
[437]40#$IPDB::org_name = "Bob's Big Bonaza";
[416]41#$IPDB::smtphost = '127.0.0.1';
42#$IPDB::domain = 'bob.com';
[417]43#$IPDB::defcustid = '5554242';
44# Globals for db2rwhois.pl
[420]45#$IPDB::rwhoisDataPath = '/usr/local/rwhoisd/etc/rwhoisd';
[417]46#$IPDB::org_street = '123 4th Street';
47#$IPDB::org_city = 'Anytown';
48#$IPDB::org_prov_state = 'ON';
49#$IPDB::org_pocode = 'H0H 0H0';
50#$IPDB::org_country = 'CA';
51#$IPDB::org_phone = '000-555-1234';
52# note: following may also just be a bare email address
53#$IPDB::org_techhandle = 'ISP-ARIN-HANDLE';
[434]54#$IPDB::org_email = 'noc@example.com';
[437]55#$IPDB::hostmaster = 'dns@example.com';
[416]56
[417]57# Logging destination. Defaults to local2. See your local syslog docs for valid facilities.
58# Note that the value here should have the LOG_ prefix removed, and convert to lower-case.
59# local0 through local7 and user make the most sense.
60#$IPDB::syslog_facility = 'daemon';
61
[582]62# RPC URL for pushing DNS changes out. Blank by default; disables RPC calls for DNS changes when blank.
63#$IPDB::rpc_url = 'http://dnsadmin.example.com/dns-rpc.cgi';
[432]64
65## connectDB_My()
66# Wrapper for IPDB::connectDB
67# Takes no arguments, returns whatever IPDB::connectDB returns.
68sub connectDB_My {
69 return connectDB($dbname, $dbuser, $dbpass, $dbhost);
70} # end connectDB_My()
71
[142]72# Keep Perl from complaining.
731;
Note: See TracBrowser for help on using the repository browser.