patch from Toshio adding support to use passwd auth for database connection.
This commit is contained in:
parent
c7d868b4b6
commit
1a362b7916
2 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue