line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
## Domain Registry Interface, AFNIC (.FR/.RE/.TF/.WF/.PM/.YT) EPP extensions |
2
|
|
|
|
|
|
|
## From http://www.afnic.fr/medias/documents/afnic-guide-integration-technique.pdf (v1.55 2011-03-03) |
3
|
|
|
|
|
|
|
## |
4
|
|
|
|
|
|
|
## Copyright (c) 2008,2009,2012,2013 Patrick Mevzek . All rights reserved. |
5
|
|
|
|
|
|
|
## |
6
|
|
|
|
|
|
|
## This file is part of Net::DRI |
7
|
|
|
|
|
|
|
## |
8
|
|
|
|
|
|
|
## Net::DRI is free software; you can redistribute it and/or modify |
9
|
|
|
|
|
|
|
## it under the terms of the GNU General Public License as published by |
10
|
|
|
|
|
|
|
## the Free Software Foundation; either version 2 of the License, or |
11
|
|
|
|
|
|
|
## (at your option) any later version. |
12
|
|
|
|
|
|
|
## |
13
|
|
|
|
|
|
|
## See the LICENSE file that comes with this distribution for more details. |
14
|
|
|
|
|
|
|
#################################################################################################### |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
package Net::DRI::Protocol::EPP::Extensions::AFNIC; |
17
|
|
|
|
|
|
|
|
18
|
2
|
|
|
2
|
|
2058
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
64
|
|
19
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
56
|
|
20
|
|
|
|
|
|
|
|
21
|
2
|
|
|
2
|
|
7
|
use base qw/Net::DRI::Protocol::EPP/; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
755
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
use Net::DRI::Data::Contact::AFNIC; |
24
|
|
|
|
|
|
|
use Net::DRI::Protocol::EPP::Extensions::AFNIC::Status; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=pod |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 NAME |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
Net::DRI::Protocol::EPP::Extensions::AFNIC - AFNIC (.FR/.RE/.TF/.WF/.PM/.YT) EPP extensions for Net::DRI |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 DESCRIPTION |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Please see the README file for details. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 SUPPORT |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
For now, support questions should be sent to: |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Enetdri@dotandco.comE |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Please also see the SUPPORT file in the distribution. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 SEE ALSO |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Ehttp://www.dotandco.com/services/software/Net-DRI/E |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 AUTHOR |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Patrick Mevzek, Enetdri@dotandco.comE |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 COPYRIGHT |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Copyright (c) 2008,2009,2012,2013 Patrick Mevzek . |
55
|
|
|
|
|
|
|
All rights reserved. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify |
58
|
|
|
|
|
|
|
it under the terms of the GNU General Public License as published by |
59
|
|
|
|
|
|
|
the Free Software Foundation; either version 2 of the License, or |
60
|
|
|
|
|
|
|
(at your option) any later version. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
See the LICENSE file that comes with this distribution for more details. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=cut |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
#################################################################################################### |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
sub setup |
69
|
|
|
|
|
|
|
{ |
70
|
|
|
|
|
|
|
my ($self,$rp)=@_; |
71
|
|
|
|
|
|
|
$self->ns({frnic=>['http://www.afnic.fr/xml/epp/frnic-1.2','frnic-1.2.xsd']}); |
72
|
|
|
|
|
|
|
$self->capabilities('domain_update','registrant',undef); ## a trade is required |
73
|
|
|
|
|
|
|
$self->capabilities('contact_update','status',undef); ## No changes in status possible for .FR contacts |
74
|
|
|
|
|
|
|
$self->capabilities('contact_update','disclose',['add','del']); |
75
|
|
|
|
|
|
|
$self->capabilities('contact_update','qualification',['add','del']); |
76
|
|
|
|
|
|
|
$self->capabilities('domain_update','secdns',['add','del']); ## no chg allowed for maxSigLife |
77
|
|
|
|
|
|
|
$self->capabilities('domain_update','secdns_urgent',undef); ## no urgent attribute allowed |
78
|
|
|
|
|
|
|
$self->factories('contact',sub { return Net::DRI::Data::Contact::AFNIC->new(); }); |
79
|
|
|
|
|
|
|
$self->factories('status',sub { return Net::DRI::Protocol::EPP::Extensions::AFNIC::Status->new(); }); |
80
|
|
|
|
|
|
|
$self->default_parameters({domain_create => { ns => undef } }); ## No nameservers allowed during domain create |
81
|
|
|
|
|
|
|
return; |
82
|
|
|
|
|
|
|
} |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
sub core_contact_types { return ('admin','tech'); } ## No billing contact in .FR |
85
|
|
|
|
|
|
|
sub default_extensions { return qw/AFNIC::Session AFNIC::Domain AFNIC::Contact AFNIC::Notifications GracePeriod SecDNS/; } |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
#################################################################################################### |
88
|
|
|
|
|
|
|
1; |