[users at bb.net] Authorising users

honas grael honasgraeymael at gmail.com
Wed Apr 6 18:19:18 UTC 2016


Hi guys, I'm trying to get authentication & authorization working,
nothing fancy just the basic stuff, so looking at

the online example I found:


c['status'] = []*
from buildbot.status import html
from buildbot.status.web import authz, auth*
authz_cfg=authz.Authz(
    # change any of these to True to enable; see the manual for more
    # options
    auth=auth.BasicAuth([("pyflakes","pyflakes")]),
    gracefulShutdown = False,
    forceBuild = 'auth',  # use this to test your worker once it is set up
    forceAllBuilds = False,
    pingBuilder = False,
    stopBuild = False,
    stopAllBuilds = False,
    cancelPendingBuild =
False,)c['status'].append(html.WebStatus(http_port=8010,
authz=authz_cfg))

Now when I try this in my master.cfg I get python warnings along the lines of

could not find module web,
could not find module html

I am using buildbot 0.9.06b, So far I've managed to get it running
doing some basic builds and tests, so I am not sure why it
can't find these modules.

Any suggestions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20160406/dbdf32fd/attachment.html>


More information about the users mailing list