I'm going to take a stab that you have the wrong setup for your password 
encryption. 

Sambar uses sacrypt, crypt, MD5 and plain text but all need to be 
configured. Well sacrypyt is pre-configured out of the box. You will need 
to set the options for crypt in the config.ini

-----Original Message-----
From: "Niels Poulsen" <[EMAIL PROTECTED]>
To: "sambar List Member"  <[EMAIL PROTECTED]>
Date: Sun, 6 Jul 2003 02:18:35 +0200
Subject: [sambar] Htaccess code

> Hellow..
> 
> Im trying to get this snippet of code to work 
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> 
> <html>
> 
> <head>
> <title>base64 cryptering</title>
> </head>
> 
> <body bgcolor="white">
> 
> <?
> 
>   if ($bruger && $pw) { 
>    $krypteret = crypt("$pw",base64_encode("$pw"));
>    echo  "<br><br><b>Username:</b> $bruger"; 
>    echo  "<br><b> password:</b> $krypteret<br><br>\n";  
>     echo  "I din \"httpasswd\"-fil skriver du s�dan: ";
>     echo  "<b>$bruger:$krypteret</b><br><br>\n";
>     echo  "<b>Krypt�r nyt:</b><br><br>"; 
>   } 
> 
>   echo  "<form action=\"$PHP_SELF\" method=\"post\">"; 
>   echo  "Brugernavn: <input name=\"bruger\" value=\"$bruger\"><br>\n"; 
>   echo  "Password: <input name=\"pw\" value=\"$pw\"><br><br>\n"; 
>   echo  "<input type=\"submit\" value=\"Krypt�r\">\n"; 
>   echo  "</form>"; 
>   
> ?>
> 
> </body>
> 
> </html>
> 
> It is woring... but sambar dosent seems to recoqunise the password in a
> htaccess.fil
> 
> 
> -------------------------------------------------------
> To unsubscribe please go to http://www.sambar.ch/list/
> 
> 
-------------------------------------------------------
To unsubscribe please go to http://www.sambar.ch/list/



Reply via email to