#!/usr/bin/perl # opensrs client conf file use vars qw($ADMIN_EMAIL $PATH_SOURCE $PATH_LIB $PATH_TEMPLATES %OPENSRS %REG_SYSTEM %REGISTER %MANAGE $OPENSRS_TLDS_REGEX %RENEW $TEST_SERVER %CANT_SUPPORT %CA_LEGAL_TYPES @CA_LEGAL_TYPES_ORDER %CA_LANGUAGE_TYPES %CA_NATIONALITIES @CA_EXTRA_FIELDS $UNIVERSAL_ENCODING_TYPE %RACESETTINGS $USE_RACE @CA_LEGAL_TYPES_ORDER $RENEW_EMAIL %MAIL_SETTINGS $F_QUEUE_SUPPLIER_UNAVAILABLE); my $USERNAME = "recycle"; # XXX insert username here my $PRIVATE_KEY = "60b23b440fade1d936edb669f60be60a303d58706a9b7ea6fc93b075d03b34ebb3fc1fae03e847700bd60df50290aedf60d32f283a7cc8ed"; # XXX insert DES key here $ADMIN_EMAIL = 'george@recycle.net'; $RENEW_EMAIL = 'sales@recycle.net'; # This is used by the cgi's to qualify the name of the browser # cookie to avoid conflicts between the live and rite environments. # Set it to 1 if this installation goes to the horizon/rite environment. $TEST_SERVER = 1; $UNIVERSAL_ENCODING_TYPE = "utf-8"; # To enable RACE set $USE_RACE to 1. You MUST be running # Perl 5.6.0 or higher, or ActivePerl build 618 or higher $USE_RACE = 0; $PATH_SOURCE = "/usr/home/recycle/output/opensrsv258"; # e.g., "/home/username/opensrs" $PATH_LIB = "$PATH_SOURCE/lib"; $PATH_TEMPLATES = "$PATH_SOURCE/templates"; %RACESETTINGS = ( DATAFILE => "$PATH_LIB/RACE/CharlintK.storage", MAPFILE => "$PATH_LIB/RACE/MapData-03.txt", PROHIBFILE=> "$PATH_LIB/RACE/ProhibitedCharacters-03.txt", UNASSFILE => "$PATH_LIB/RACE/UnassignedCharacters-03.txt"); # put TLDs in here that you do not wish to support through this interface # formate is a hash like ( '.name' => 1 ). %CANT_SUPPORT = (); %OPENSRS = ( username => $USERNAME, private_key => $PRIVATE_KEY, REMOTE_PORT => 55000, REMOTE_HOST => "horizon.opensrs.net", crypt_type => 'Blowfish', # Blowfish, DES, or Blowfish_PP (slow!) # regular expression that lists the domains serviced by OpenSRS # this should not include the domains that you are not # authorized to register OPENSRS_TLDS_REGEX => "(\.ca|\.(bc|ab|sk|mb|on|qc|nb|ns|pe|nf|nt|nu|yk)\.ca|\.com|\.net|\.org|\.co\.uk|\.org\.uk|\.tv|\.vc|\.com\.vc|\.net\.vc|\.org\.vc|\.cc|\.info|\.biz|\.name|\.us)", # Regex of TLDs that support domain locking. TLDS_SUPPORTING_LOCKING => '\.(com|net|org|info|biz|us|name|cc|vc)$', # regular expression that lists the domains which OpenSRS is authoritative for. OPENSRS_AUTHORITY => "(\.com|\.net|\.org|\.tv|\.cc)", # flag for lookup_all_tlds and # array ref of array refs of related TLDs: see the lookup_domain() # and getRelatedTlds() methods in XML_Client. # a TLD must not be repeated in more than one array. # RELATED_TLDS really only comes into play when "lookup_all_tlds" # is set to 1 (ie. true). # # ps. be careful when registering a mix of domains when # the different TLDs have different period years restrictions lookup_all_tlds => 1, # lookup related available domains RELATED_TLDS => [ [ ".ca" ], [ ".com", ".net", ".org" ], [ ".co.uk", ".org.uk" ], [ ".cc" ], # with this array, you can provide suggestions # for catchy suffixes to domain names. # [ ".com", ".net", ".org", # "online.com", "wired.com", "plugged.com", # "online.net", "wired.net", "plugged.net", # "online.org", "wired.org", "plugged.org" ], ], # if the following is set, all data to/from OpenSRS will be logged # to this file. Note that the logfile will grow quickly under # even moderate activity, so this should not be set, other than #for debugging purposes xml_logfile => '', ); # flags affecting cgi's behavior %REG_SYSTEM = ( debug => 0, # boolean: 1 is true, 0 is false # allow clients to provide their own custom data custom_tech_contact => 0, custom_nameservers => 0, # # ********ATTENTION******** # A payment system must be implemented before # giving your customers access to turn auto renew # on for a new domain. # allow_auto_renew => 1, # ************************ F_VERIFY_CC => 1, # verify credit card number F_SEND_ORDERS => 1, # send orders to $ADMIN_EMAIL F_SEND_THANKYOU => 1, # send thank you note to customer post_lookup => { '.tv' => { sub => 'info_tv', # Use horizon for the test environment # Must change to rr-n1-tor.opensrs.net when you go LIVE url => "https://horizon.opensrs.net/redirect/index.cgi?type=tv_highprice&reseller=$USERNAME", template => "$PATH_TEMPLATES/reg_system/info_tv.html", }, }, ); %REGISTER = ( debug => 0, ); %MANAGE = ( debug => 0, notice_days => 60, # show expire notice when <=60 days before expiry # the following will allow domains to be placed on registrar-lock, # which will prevent them from being transferrable. allow_domain_locking => 0, # # ********ATTENTION******** # A payment system must be implemented before # giving your customers access to on turn auto renew # or to renew their active domains allow_renewals => 0, allow_auto_renewal_message => 0, # ************************ # # setting this will allow your customers to request their username # and password be sent to them when they get an authentication # error. allow_password_requests => 0, ); @CA_LEGAL_TYPES_ORDER=qw (CCO CCT RES GOV EDU ASS HOP PRT TDM TRD PLT LAM TRS ABO INB LGR OMK MAJ); %CA_LEGAL_TYPES = ( 'ABO' => 'Aboriginal Peoples (individuals or groups) indigenous to Canada', 'ASS' => 'Canadian Unincorporated Association', 'CCO' => 'Corporation (Canada or Canadian province or territory)', 'CCT' => 'Canadian citizen', 'EDU' => 'Canadian Educational Institution', 'GOV' => 'Government or government entity in Canada', 'HOP' => 'Canadian Hospital', 'INB' => 'Indian Band recognized by the Indian Act of Canada', 'LAM' => 'Canadian Library, Archive or Museum', 'LGR' => 'Legal Representative of a Canadian Citizen or Permanent Resident', 'MAJ' => 'Her Majesty the Queen', 'OMK' => 'Official mark registered in Canada', 'PLT' => 'Canadian Political Party', 'PRT' => 'Partnership Registered in Canada', 'RES' => 'Permanent Resident of Canada', 'TDM' => 'Trade-mark registered in Canada (by a non-Canadian owner)', 'TRD' => 'Canadian Trade Union', 'TRS' => 'Trust established in Canada', ); %CA_LANGUAGE_TYPES = ("EN" => "English", "FR" => "French"); %CA_NATIONALITIES = ("CND" => "Canadian citizen", "OTH" => "Foreign citizenship", "RES" => "Canadian permanent resident"); @CA_EXTRA_FIELDS = qw (job_title nationality midle_name language legal_type cira_member trademark description addr_corporative addr_street_name addr_street_cat addr_office title addr_address_number addr_orientation description legal_type member); %RENEW = ( F_SEND_EMAIL => 1, # send renewal info to $RENEW_EMAIL F_SEND_EU_EMAIL=> 1, # email thank-you to end user on renewal PROCESS_LIST_IF_QUEUED => 1, #continue or stop processing renew #for list of domains when one of the renewal request has #been queued at OpenSRS server side debug => 0, capability => { '.com' => 1, '.net' => 1, '.org' => 1, '.uk' => 0, '.ca' => 1, '.vc' => 0, '.cc' => 1, '.tv' => 1, '.info' => 1, '.biz' => 1,'.us' => 1, '.name' => 0, } ); ################################################################ #### select type of mail delivery and adjust any necessary variables #### 'sendmail' option is recommended for servers on UNIX based systems #### if you do not have sendmail on your system, set $MAIL_TYPE to 'smtp' %MAIL_SETTINGS = ( MAIL_TYPE => "sendmail", # valid options: sendmail, smtp # MAIL_TYPE => "smtp", #### define this if you set $MAIL_TYPE = 'sendmail' #MAILPROG => '/usr/sbin/sendmail -t -oi -oem', # path and args for sendmail MAILPROG => "cat >>mail.log",#for test system #### recommended option for servers on win32 platform #### define these values if you set $MAIL_TYPE = 'smtp' LOCALHOST => '', SMTP_SERVER => '', SMTP_PORT => 25, ); ################################################################# #Flag to change behaviour on a client side only # lookup - treat 'noservice' as available # if sw_register/renew has been queued - show nice message # otherwise # no changes on a client side for lookup # for sw_register/renew - error message from server # even if request has been queued $F_QUEUE_SUPPLIER_UNAVAILABLE = 1; # to queue or not to queue on a OpenSRS server side # can be changed via RWI per registry, not TLD. # it is better to have F_QUEUE_SUPPLIER_UNAVAILABLE as 1 even # if your OpenSRS settings do not allow queueing. # because client # won't say anything about queueing, if server doesn't # queue the request 1;