How To

Find the answers to your Go questions, including FAQs, how-tos, tips and tricks

This is a public Discussion Area  publicRSS

How To

    Qiao Liang 乔梁
    How to generate password for users when using password file...
    How To posted August 31, 2009 by Qiao Liang 乔梁, last edited September 2, 2009 , tagged authentication, config, Installer
    2512 Views, 6 Comment
    Title:
    How to generate password for users when using password file for authentication in Cruise
    Problem:

    Cruise did not ship a tool to generate password with SHA1 for users. However, there are lots of tools does.

    Solution Description:

    You can use htpasswd from Apache to generate SHA1 password. The attached file is for Windows users.

    Comment

    • Mike O'Brien
      posted September 1, 2009 by Mike O'Brien

      Looks like the link is still not working. 

    • Qiao Liang 乔梁
      posted September 1, 2009 by Qiao Liang 乔梁

      Hi Mike,

        htpasswd is part of the Apache distribution 'httpd', so you can not get it directly.

        Now I have uploaded htpasswd.exe.

        You can refer to  the manual page which only lists the command line arguments.

      Qiao Liang.

    • Mike O'Brien
      posted September 1, 2009 by Mike O'Brien

      No, I mean the first link in your original post is broken. It points here:

      http://community.thoughtworks.com/posts/authentication

      I did end up using the utility from the apache distro but I'm just letting you know that the link was broken.

    • Qiao Liang 乔梁
      posted September 2, 2009 by Qiao Liang 乔梁

      Correct it by removing.

      :P

      Qiao Liang

    • Jez Humble
      posted October 6, 2009 by Jez Humble

      Thanks Mike - I did see your original post, and I am trying to get the page set up. Unfortunately we have infrastructure problems with the Studios website which is preventing them from fixing it right now. Sorry for the inconvenience and thanks for reminding us.

    • Manoj
      posted March 7, 2010 by Manoj

      The following Ruby snippet should get the  job done:

      require 'digest/sha1'

      require 'base64'

      '{SHA}' + Base64.encode64(Digest::SHA1.digest(password))

      Of course htpasswd provides more options, but nice to know the above when you already have Ruby on your system ;)