text_combined: benoit sigoure lwzbplrdeepitafr news mention change buildbotstatuswebauthenticationpy htpasswdauth new class docsbuildbottexinfo webstatus configuration parameters document new feature signedoffby benoit sigoure news 3 buildbotstatuswebauthenticationpy 39 docsbuildbottexinfo 6 3 files changed 47 insertions 1 deletions diff git anews bnews index 4f3b4999ef04a4 100644 anews bnews 107 108 user visible changes buildbot outline webstatus constructor take instance iauth statuswebauthentication class basicauth accepts userpass keyword argument pretty much way try_userpass argument pretty much way try_userpass class htpasswdauth authenticate users htpasswdstyle file users valid loginpassword forcestop builds webstatus diff git abuildbotstatuswebauthenticationpy bbuildbotstatuswebauthenticationpy index f6e1b75a7e8527 100644 abuildbotstatuswebauthenticationpy bbuildbotstatuswebauthenticationpy 13 14 import os zopeinterface import interface implements class iauthinterface 493 5041 class basicauthauthbase return true selferr invalid login password return false class htpasswdauthauthbase implementsiauth implement authentication htpasswdstyle file file path htpasswdstyle file use def __init__self file cfile path htpasswdstyle file assert ospathexistsfile selffile file def authenticateself login password authenticate clogin cpassword htpasswdstyle file ospathexistsselffile selferr file selffile return false fetch lines htpasswd file split login password array lines lrstripsplit 1 l fileselffilereadlines keep line login lines l l lines l0 login lines selferr invalid login return false deshash password first two characters salt used introduce disorder des algorithm hash lines01 crypt import crypt res hash cryptpassword hash02 res selferr else selferr invalid password return res diff git adocsbuildbottexinfo bdocsbuildbottexinfo index 8d8e0ef098ab63 100644 adocsbuildbottexinfo bdocsbuildbottexinfo 607012 607018 current builds case pass instance codestatuswebauthenticationiauth codeauth keyword argument class codebasicauth implements basic authentication mechanism using list loginpassword pairs provided configuration file class codehtpasswdauth implements authentication filehtpasswdstyle file example buildbotstatushtml import webstatus buildbotstatuswebauthentication import basicauth users login password bob secretpass cstatusappendwebstatushttp_port8080 authbasicauthusers buildbotstatuswebauthentication import htpasswdauth file pathtofile cstatusappendwebstatushttp_port8080 authhtpasswdauthfile end example 1535756gc887a fri 08 aug 2008 131647 0100 buildbotdevel patch v2 1112 allow authentication work htpasswdstyle files