patch from Toshio adding support to use passwd auth for database connection.

This commit is contained in:
Dennis Gilmore 2008-08-18 01:05:22 -05:00
parent c7d868b4b6
commit 1a362b7916
2 changed files with 2 additions and 0 deletions

View file

@ -10,6 +10,7 @@ Alias /kojihub "/usr/share/koji-hub/XMLRPC"
PythonOption DBName koji
PythonOption DBUser koji
PythonOption DBHost db.example.com
PythonOption DBPass example_password
PythonOption KojiDir /mnt/koji
# Kerberos auth configuration

View file

@ -288,6 +288,7 @@ def handler(req, profiling=False):
context.req = req
koji.db.provideDBopts(database = opts["DBName"],
user = opts["DBUser"],
password = opts.get("DBPass",None),
host = opts.get("DBhost",None))
try:
context.cnx = koji.db.connect(opts.get("KojiDebug",False))