Generating the user password file for .htaccess usage...

Discussion in 'Install/Configuration' started by dnebing, Mar 14, 2004.

  1. dnebing

    dnebing Member

    Maybe I'm just dumb, but I can't find any documentation regarding the setup of the user password file. Only thing I found was a short blurb indicating the file contains "name:password" pairs with a brief statement that password is encoded using crypt(). Is there supposed to be some tool to create this file? Will the htpasswd program from apache generate the correctly formatted files?

    If I need to roll my own tool (I am a developer, so this is not an issue), what value do I need to pass in to crypt() as the salt so LS will be able to handle it?

    IMHO the security stuff is probably worthy of being added to the FAQ. I'd guess that a lot of servers would have at least one secured area and would need to know how to create this file...
  2. dnebing

    dnebing Member

    htpasswd will work...

    It appears that the file generated using apache's htpasswd will work when generating the htpasswd file.
  3. mistwang

    mistwang LiteSpeed Staff

    Yes, just Apache's htpasswd to generate the password file for now.
    You will be able to manage htpasswd file from our web admin interface pretty soon. :)


Share This Page