Yu Ming Zhu
558f7be2d2
fix newline betwwen koji and relative imports
2019-12-12 11:00:58 +00:00
Yu Ming Zhu
4d29a87e9b
sort imports in koji
2019-12-12 11:00:57 +00:00
Ken Dreyer
68bcc06427
rm old test code
...
Some files in the tree had bits of code that you could run if you
executed the files directly as scripts. Now that we have unit tests and
the "fakehub" tool, we do not need this code.
2019-11-18 10:45:57 +01:00
Yu Ming Zhu
3e124f685a
fix editUser api for multiple kerberos support
2019-10-15 09:16:43 +02:00
Yu Ming Zhu
ea52707f1d
fix typos in auth.py
2019-10-15 09:16:43 +02:00
Yuming Zhu
45ce49a643
fix typo in createUser
2019-10-11 14:21:46 +08:00
Yuming Zhu
7b60e0e7eb
backwards compatibility for ProxyDNs change
2019-10-10 13:04:06 +00:00
Yu Ming Zhu
3b4673879b
fix typo
2019-10-10 13:02:55 +00:00
Yuming Zhu
2408e86ff6
in proxyuser case, do use username rather than principal
2019-10-10 13:02:55 +00:00
Yuming Zhu
d662fb837d
keep on using REMOTE_USER
...
and handover realm translation to auth_to_local rules in /etc/krb5.conf
2019-10-10 13:02:55 +00:00
Yu Ming Zhu
4a3dc40147
use GSS_NAME instead of REMOTE_USER for GSSAPI auth
...
jira: https://projects.engineering.redhat.com/browse/BST-475
2019-10-10 13:01:24 +00:00
Yu Ming Zhu
30ff46f1b0
fix error msg and regex sytax
2019-10-10 16:37:57 +02:00
Yu Ming Zhu
ce8ff9068c
fix table name typo
2019-10-10 16:37:56 +02:00
Yu Ming Zhu
ab37e28d4d
hub: add AllowedKrbRealms option and (add|remove)UserKrbPrincipal API
2019-10-10 16:37:56 +02:00
Yu Ming Zhu
aaeb41e57b
change users and krb_principal operations
2019-10-10 16:37:56 +02:00
Mike McLean
acf5c73ee2
use base64.b64decode
2019-03-04 09:28:39 -05:00
Yu Ming Zhu
7ab1e2901d
urllib fix for python3
2019-01-28 08:45:18 -05:00
Tomas Kopecek
caae1a0a8b
workaround unnecessary list conversions
2018-07-11 17:37:40 -04:00
Tomas Kopecek
bcee24e50c
python-modernize -f libmodernize.fixes.fix_dict_six
2018-07-11 17:37:39 -04:00
Tomas Kopecek
2eaac43473
replace long with int
...
long conversion here results in same python type, in py3 it is no more
supported.
2018-05-03 12:26:21 -04:00
Mike McLean
daf0764ad3
fix host id lookup for anonymous sessions
2018-04-04 09:43:47 -04:00
Yuming Zhu
7f302491f9
use urlparse.parse_qs instead of deprecated cgi.parse_qs
2017-10-11 14:52:48 +00:00
Tomas Kopecek
c86f41ebcf
some tests for koji.auth
2017-10-11 12:14:15 -04:00
Ville Skyttä
10bc242c32
Spelling fixes
2017-07-30 12:49:19 +03:00
Tomas Kopecek
6d5dc301d3
don't use krbV under python3
2017-06-01 09:39:23 +02:00
Tomas Kopecek
68bf19c739
python-modernize -f libmodernize.fixes.fix_dict_six
2017-06-01 09:39:22 +02:00
Tomas Kopecek
1220008f8f
python-modernize -f lib2to3.fixes.fix_except
2017-06-01 09:39:22 +02:00
Tomas Kopecek
73356b50e5
fix relative imports
2017-06-01 09:39:21 +02:00
Tomas Kopecek
0eaf3349c4
python-modernize -f libmodernize.fixes.fix_zip
2017-06-01 09:39:21 +02:00
Tomas Kopecek
7f946b37be
python-modernize -f libmodernize.fixes.fix_xrange_six
2017-06-01 09:39:21 +02:00
Patrick Uiterwijk
7ec0e2c6b0
Make sslLogin use getUserId
...
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-05-04 10:02:58 -04:00
Patrick Uiterwijk
5a23afaeeb
Make proxyuser consistent between ssl and krb
...
Currently, krb would expect a krb principal where ssl expects a username.
This makes krb use the username, but also accept the krb_principal for
backwards compatibility.
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-05-04 10:02:58 -04:00
Tomas Kopecek
cc9fff9840
remove has_key (not working in python3)
2017-03-07 08:15:20 -05:00
Tomas Kopecek
1494301465
use new exception syntax
2017-03-02 10:52:30 -05:00
Tomas Kopecek
c143d0b88f
print statement -> print function
2017-02-28 10:55:56 -05:00
Mike McLean
1088e5f4fb
new hub CheckClientIP option
2017-02-14 11:27:55 -05:00
Patrick Uiterwijk
480cdfb540
Implement GSSAPI login
...
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-11-22 16:45:31 -05:00
Mohan Boddu
dd82e9cea2
Remove all bad-whitespaces
...
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2016-08-29 14:26:32 -04:00
Mike Bonnet
5569c058c1
print the correct authentication method in "koji moshimoshi"
2015-12-01 18:51:53 -05:00
Pavol Babincak
9e89ebb9a4
Ran reindent.py from cpython tools on all python scripts
...
Citing from reindent docs:
Change Python (.py) files to use 4-space indents and no hard tab
characters. Also trim excess spaces and tabs from ends of lines, and
remove empty lines at the end of files. Also ensure the last line
ends with a newline.
Citing from PEP 8:
Use 4 spaces per indentation level.
Python 2 code indented with a mixture of tabs and spaces should be
converted to using spaces exclusively.
Don't write string literals that rely on significant trailing
whitespace. Such trailing whitespace is visually indistinguishable
and some editors (or more recently, reindent.py) will trim them.
Also PyLint recommends not to have trailing whitespace on any line.
2015-05-13 16:39:53 -04:00
Mike Bonnet
ab53d2deb0
update copyright
2014-10-28 23:54:21 -04:00
Mike McLean
3fa9f36bbb
fix typos
2014-03-22 14:41:04 -04:00
Anthony Towns
7454bac53f
If attempting kerberos login for user with no kerberos principal,
...
try updating record rather than creating a user that already exists.
2014-03-17 21:20:35 -04:00
Mike McLean
073c65000c
use wsgi.url_scheme instead of HTTPS
2013-03-25 15:37:09 -04:00
Mike Bonnet
6236ae6d62
support SSL auth in mod_python compatibility mode
2012-05-11 21:29:06 -04:00
Mike McLean
54c0ed8438
Support wsgi in koji-hub and koji-web
...
- mod_python still supported, but deprecated
- mod_wsgi is the default
- koji-web now configured via web.conf
- new wsgi-friendly publisher for koji-web
- koji-web now has logging
2012-05-10 17:27:40 -04:00
Mike McLean
ab1559c5bb
retry whitelist
2011-11-03 11:58:46 -04:00
Mike McLean
a51ad5031f
graceful mass builder restart
2010-12-03 10:41:41 -05:00
Mike McLean
487ccdb2e3
clean up hub logging a bit
2010-03-12 15:34:02 -05:00
Mike McLean
59bde48e43
package list policy
2010-03-09 16:03:59 -05:00