Small fixes

This commit is contained in:
Pinga 2023-08-21 11:53:01 +03:00
parent 9bdc8fecdd
commit bf1de16332
3 changed files with 14 additions and 13 deletions

View file

@ -17,7 +17,7 @@ We're on a mission to make **Namingo** the best it can be, and we need your expe
- **WHOIS and DAS Servers**: These servers are almost ready to go! They are functional but require additional testing and security hardening to ensure reliability and safety. - **WHOIS and DAS Servers**: These servers are almost ready to go! They are functional but require additional testing and security hardening to ensure reliability and safety.
- **EPP Server**: Our work is ongoing here. Basic commands like domain/contact check and info are operational. However, it's in need of further testing, security measures, and the addition of more commands. - **EPP Server**: Our EPP Server is progressing steadily. Currently, the Check, Create, Info, Poll, Delete, and Renew commands are fully operational. We're actively developing the Update and Transfer commands. Extensions like RGP, SecDNS, and others are also on our development roadmap. As always, we're committed to ensuring security and thorough testing as we continue to enhance our server capabilities.
- **RDAP Server**: Nearing completion. The primary focus is on formatting more data for the output. Like the others, it also requires further testing and security hardening. - **RDAP Server**: Nearing completion. The primary focus is on formatting more data for the output. Like the others, it also requires further testing and security hardening.

View file

@ -31,6 +31,7 @@ class EppWriter {
'info_funds' => '_info_funds', 'info_funds' => '_info_funds',
'update_host' => '_common', 'update_host' => '_common',
'poll' => '_poll', 'poll' => '_poll',
'error' => '_common',
'unknown' => '_common', 'unknown' => '_common',
]; ];

View file

@ -24,7 +24,7 @@ function sendGreeting($conn) {
'urn:ietf:params:xml:ns:host-1.0' 'urn:ietf:params:xml:ns:host-1.0'
], ],
'extensions' => [ 'extensions' => [
'http://www.namingo.org/epp/nBalance-1.0', 'https://namingo.org/epp/funds-1.0',
'http://www.namingo.org/epp/nIdent-1.0', 'http://www.namingo.org/epp/nIdent-1.0',
'urn:ietf:params:xml:ns:secDNS-1.1', 'urn:ietf:params:xml:ns:secDNS-1.1',
'urn:ietf:params:xml:ns:rgp-1.0', 'urn:ietf:params:xml:ns:rgp-1.0',
@ -49,17 +49,17 @@ function sendGreeting($conn) {
} }
function sendEppError($conn, $code, $msg) { function sendEppError($conn, $code, $msg) {
$errorResponse = <<<XML $response = [
<?xml version="1.0" encoding="UTF-8" standalone="no"?> 'command' => 'error',
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> 'resultCode' => $code,
<response> 'msg' => $msg,
<result code="$code"> 'clTRID' => '1',
<msg>$msg</msg> 'svTRID' => generateSvTRID(),
</result> ];
</response>
</epp> $epp = new EPP\EppWriter();
XML; $xml = $epp->epp_writer($response);
sendEppResponse($conn, $errorResponse); sendEppResponse($conn, $xml);
} }
function sendEppResponse($conn, $response) { function sendEppResponse($conn, $response) {