Open main menu

CDOT Wiki β

Changes

Fedora-ARM,Dogfood - koji Hub

1,208 bytes added, 05:25, 17 December 2010
no edit summary
local koji apache trust
local koji koji trust
'''TO enable auth changes live:'''
root@localhost$ su - postgres
postgres@localhost$ pg_ctl reload
postgres@localhost$ exit
Bootstrapping the initial koji admin user into the PostgreSQL database: The initial admin user must be manually added to the user database using sql commands. Once they are added and given admin privilege, they may add additional users and change privileges of those users via the koji command line tool's administrative commands. However, if you choose to use the simple user/pass method of authentication, then any password setting/changing must be done manually via sql commands as there is no password manipulation support exposed through the koji tools.
The sql commands you need to use vary by authentication mechanism.
SSL Certificate authentication: there is no need for either a password or a Kerberos principal, so this will suffice:
 
koji=> insert into users (name, status, usertype) values ('admin-user-name', 0, 0);
 
Give yourself admin permissions
 
<pre>koji=> insert into user_perms (user_id, perm_id, creator_id) values (<id of user inserted above>, 1, <id of user inserted above>);
 
you can get the ID of the new user by running the query: <pre>koji=> select * from users;
== Project Plan ==
To setup PostgreSQL for use with Koji
* 0.3 - '''Koji Web'''
Build software to Create koji hubweb
== Project News ==
1
edit