Password & DNS entries issues

Bug #1086867 reported by Dimitrios Metoglou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zpanel cp X
New
Undecided
Unassigned

Bug Description

Password issue:
--------------------------------
According to my thread
http://forums.zpanelcp.com/showthread.php?16668-issues-with-long-password-amp-dns-entries-etc
there is an issue, where long password defined (15 characters) does not let me login anymore.
Pass has to be reset via SSH in oder to roll back to previous (shorter) one.

DNS issue:
--------------------------------
According to my thread
http://forums.zpanelcp.com/showthread.php?16668-issues-with-long-password-amp-dns-entries-etc

i had issues to enter long TXT & CNAME entries, they have not been saved.
The issue was the underscore ( _ ) used.
Fix was hard coded to file /module/dns_manager/code/controler.ext.php in routine function CheckForErrors() at line 1210
(thanks to user 5050 for his support)

   if ($type['new_' . $id] != "SRV") {
                                //if (!self::IsValidDomainName($hostName['new_' . $id])) {
        if (!self::IsValidHostName($hostName['new_' . $id])) {//DIMI custom
                                    return FALSE;
                                }
                            }
                        }

and line 1298, adding additional IsValidHostName check

    static function IsValidDomainName($a) {
        if ($a != "@") {
            $part = explode(".", $a);
            foreach ($part as $check) {
                if (!preg_match('/^[a-z\d][a-z\d-]{0,62}$/i', $check) || preg_match('/-$/', $check)) {
                    return false;
                }
            }
        }
        return true;
    }

     //custom
    static function IsValidHostName($a) {
        if ($a != "@") {
            $part = explode(".", $a);
            foreach ($part as $check) {
                if (!preg_match('/^[a-z\d_][a-z\d-_]{0,62}$/i', $check) || preg_match('/-$/', $check)) {
                    return false;
                }
            }
        }
        return true;
    }

While my TXT entries where accepted by Amazon, the CNAME entries could not be verified.

This is a high priority, as i need the entries to get Amazon DKIM verified.
Amazon sent me notification that CNAME entries are still not indexed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.