changing proftpd password without lampp security

Problems with the Linux version of XAMPP, questions, comments, and anything related.

changing proftpd password without lampp security

Postby jza » 02. June 2007 00:54

Hi I want to change the password of proftpd without the use of lampp security script. Can anyone give me any insight about proftpd.
jza
 
Posts: 4
Joined: 01. June 2007 18:52
Location: Villahermosa, Tabasco

Re: changing proftpd password without lampp security

Postby SlisheR » 06. July 2007 19:49

jza wrote:Hi I want to change the password of proftpd without the use of lampp security script. Can anyone give me any insight about proftpd.


/opt/lampp/etc/proftpd.conf
here you can set up everything
SlisheR
 
Posts: 18
Joined: 06. July 2007 19:27
Location: The Netherlands

Postby jza » 06. July 2007 20:07

Right except the password is hashed and I don't really know how to hash a string with the same encription algorithm which I think is md5 limited to 8 characters.
jza
 
Posts: 4
Joined: 01. June 2007 18:52
Location: Villahermosa, Tabasco

Postby SlisheR » 06. July 2007 20:11

Here's a script that might help you.
With this you can generate your own MD5 pw:
Code: Select all
<html>
<head>
<title>Md5 encryption - PHPhulp.nl</title>
</head>
<style type="text/css">
p, body {
font-family: Verdana, Arial, Helvetica;
font-size: 11px;
color: #000000;
}
.error {
color: #ff0000;
}
h1 {
font-size: 14px;
}
h6 {
font-size: 9px;
}
#main {
width: 450px;
border: 1px dashed;
border-color: #cccccc;
background-color: #fcfcfc;
padding: 10px;
}
</style>
<body>
<?
    echo "<div id=\"main\">";
    echo "<h1>MD5 encryption</h1>";

    if ($_POST["submit"] && $_POST["password"])
    {
        echo "<p>Het opgegeven wachtwoord: <b>" . $_POST['password'] . "</b> wordt met <a href=\"http://www.php.net/md5\" title=\"md5 encryption\">md5 encryption</a>:</p>";
       
        echo "<p><b>" . md5($_POST['password']) . "</b></p>";
       
        echo "<p>Encrypt <a href=\"" . $_SERVER['PHP_SELF'] . "\">een ander wachtwoord</a>.</p>";
    }
    else
    {
        if ($_POST['submit'])
            echo "<p class=\"error\">Er is geen wachtwoord opgegeven.</p>";
       
        echo "<p>Voer in onderstaand veld een wachtwoord in. Klik op de 'Voer MD5 encryption uit' knop ";
        echo "en je wachtwoord zal omgezet worden in MD5 encryption. <b>Onthoud dat MD5 encryption niet ";
        echo "terug kan worden gezet.</b></p>";
   
        echo "<form method=\"post\" action=\"" . $_SERVER['PHP_SELF'] . "\">";
        echo "<p>";
        echo "<b>Wachtwoord</b><br />";
        echo "<input type=\"text\" name=\"password\" value=\"" . $_POST['password'] . "\"><br />";
        echo "<input type=\"submit\" name=\"submit\" value=\"Voer MD5 encryption uit\"><br />";
        echo "</p>";
        echo "</form>";
    }
    echo "</div>";
?>
</body>
</html>
Correct me if I'm wrong!
SlisheR
 
Posts: 18
Joined: 06. July 2007 19:27
Location: The Netherlands

Postby jza » 06. July 2007 21:57

ok I ran the script and it works, except that the maximus number of character is 8 for the proftp specification.
jza
 
Posts: 4
Joined: 01. June 2007 18:52
Location: Villahermosa, Tabasco


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 16 guests