doc: change user creating sql for kerberos auth

a follow-up of PR #1648
This commit is contained in:
Yu Ming Zhu 2019-10-10 13:57:12 +00:00 committed by Tomas Kopecek
parent 1a31a18e28
commit 353fe2c510

View file

@ -549,8 +549,14 @@ insert above with this:
::
root@localhost$ su - koji
koji@localhost$ psql
koji=> insert into users (name, krb_principal, status, usertype) values ('admin-user-name', 'admin@EXAMPLE.COM', 0, 0);
koji@localhost$ psql <<EOF
with user_id as (
insert into users (name, status, usertype) values ('admin-user-name', 0, 0) returning id
)
insert into user_krb_principals (user_id, krb_principal) values (
(select id from user_id),
'admin@EXAMPLE');
EOF
SSL Certificate authentication
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^