Skip to content

Instantly share code, notes, and snippets.

@snipsnipsnip
Created June 8, 2017 13:13
Show Gist options
  • Save snipsnipsnip/6b4e34133a619d1e4dcc336d910e80ee to your computer and use it in GitHub Desktop.
Save snipsnipsnip/6b4e34133a619d1e4dcc336d910e80ee to your computer and use it in GitHub Desktop.
htpasswd/htdigestファイルのままJenkinsのBasic認証をやめる ref: http://qiita.com/snipsnipsnip/items/6ee0d8cf8219fad2e696
/usr/bin/ruby -rwebrick/httpauth/htdigest -e 'D = WEBrick::HTTPAuth::Htdigest.new(ARGV[0]); D.get_passwd(ARGV[1], ENV["U"], false) == D.make_passwd(ARGV[1], ENV["U"], ENV["P"]) or abort' /var/www/.htdigest realm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment