I am running PERL on VMS operating system. I have created a .htaccess and .htpasswd file in the directory that contains pages on my intranet site which i would like to be password protected. So when i try to access one of these pages i am propmpted for a password.
The .htpasswd file stores usernames and passwords in the form of USERNAME:CRYPTED_PASSWORD. I have written a script in PERL to add a username and password to the .htpasswd file. The script itself works fine and does add a user and password but the crypted password it returns is in BINARY rather than ASCII.
I believe the reason for this is that because i am running PERL on VMS the script uses VMS's way of crypting rather than PERL's CRYPT() function.
Is there anyway of forcing it to use PERL's CRYPT() function as opposed to VMS's way of crypting?
I have no idea how i can correct this problem, please help, any help would be greatly appreciated.
Thank you.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|