Find the answer to your Linux question:
Results 1 to 4 of 4
Hi everyone i have a question: can i use unencrypted password in apache Authentication userfile? i'm using basic authentication in my one of visual host but i need to place ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2012
    Posts
    32

    use unencrypted password for apache Authentication userfile


    Hi everyone
    i have a question:
    can i use unencrypted password in apache Authentication userfile?
    i'm using basic authentication in my one of visual host but i need to place unencrypted password in authentication user file.

    by uncrypted i mean place username and password with this format :
    user:Password
    for user : nimait70
    and password : nimait :
    nimait70:nima
    not encrypted like :
    nimait70:PEj4m4jCVWrh2
    nimait70:$apr1$SsxGLWb3$FzVvv4fipaezcBZd8aSiG0
    thanks

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,307
    Hi,

    Do you mean like using the "-p" (plaintext) option when using htpasswd to create your password file?

  3. #3
    Just Joined!
    Join Date
    Jul 2012
    Posts
    32
    look, i have a authentication user file that the users are stored in it.
    users list is some thing like this :
    tom:akbar
    john:hjdjdjd
    nima:kdfndjkfj
    but the apache will not authorize them unless they have encrypted password, somethings like this:
    tom:$apr1$Fwdpm9Bs$5JaEIPfnMrmdMwZ7REbKk1
    john:$apr1$OXEdyeQ5$9JCYTxZhczAkmSOGKQ3gQ1
    nima:$apr1$ZI0kmfrX$EwQLy19RGv5/xBOxywt7o0
    but i want apache to use first way authentication...how can i do that?

  4. #4
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,307
    I am guessing that, if you created the password file using the "-p" option (or did it by hand), then, according to the htpasswd man page:

    Code:
     -p     Use plaintext passwords. Though htpasswd will support creation on all platforms, the httpd daemon will only accept plain text passwords on Windows, Netware and TPF.
    Last edited by atreyu; 12-18-2012 at 02:34 AM. Reason: fixed code tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •