<html><body><div style="font-family: Courier New; font-size: 12pt; color: #000000"><div>Hi All,</div><div><br data-mce-bogus="1"></div><div>I was wondering if there is a way (a <em>workaround</em> really) to configure a try build scheduler using an external authentication class, similar to what you can do with the buildbot web view where you can configure an external authentication class that inherits from <strong>util.CustomAuth</strong></div><div>The current <strong>Try_UserPass</strong> method has the disadvantage or requesting to manage user's credentials in the buildbot configuration itself, that is a solution that does not scale very well.</div><div>On the other side: is there a reason (technical I mean) why the same CustomAuth mechanics has not been implemented in the try scheduler? Could it be possible to extend the try scheduler to support such type of authentication?</div><div><br data-mce-bogus="1"></div><div>Just out of curiosity, here how I integrated the buildbot web view authentication with our Domain Server:</div><div><br data-mce-bogus="1"></div><div> 95 import ldap<br> 96 class TestLdapAuth(util.CustomAuth):<br> 97 def check_credentials(self, user, password):<br> 98 conn = ldap.initialize('ldap://<my_domain_server_ip_address>')<br> 99 conn.protocol_version=3<br>100 conn.set_option(ldap.OPT_REFERRALS, 0)<br>101 try:<br>102 conn.simple_bind_s(user, password)<br>103 conn.unbind_s()<br>104 return True<br>105 except ldap.LDAPError:<br>106 print 'ldap bind failed'<br>107 return False<br>108 <br>109 # minimalistic config to activate new web UI<br>110 c['www'] = dict(port=8088,<br>111 plugins=dict(waterfall_view={}, console_view={}, grid_view={}), <br>112 auth=TestLdapAuth())<br>113 </div><div><br data-mce-bogus="1"></div><div>now all the developers (that have their user/passwd recorded on the company domain server) can authenticate to the buildbot nine webpage without the need for a separate set of credentials.</div><div><br data-mce-bogus="1"></div><div>Best Regards</div><div>Sergio</div><div><br></div><div data-marker="__SIG_PRE__">-- <br>Sergio Borghese<br>Senior Software Engineer<br>NetResults S.r.l. <br>Via Agostino Bassi 5, 56121 Ospedaletto (Pi), Italy<br>Tel.: +39.050.316.3658<br>web: www.netresults.it</div></div></body></html>