PR#1992: deprecation of krb_login

Merges #1992
https://pagure.io/koji/pull-request/1992

Fixes: #1906
https://pagure.io/koji/issue/1906
Deprecate/drop non-gssapi code
This commit is contained in:
Tomas Kopecek 2020-02-19 14:15:25 +01:00
commit 98a86c87be

View file

@ -2305,6 +2305,7 @@ class ClientSession(object):
the server side. ctx is the Kerberos context to use, and should be unique
per thread. If ctx is not specified, the default context is used."""
util.deprecated("Please use gssapi_login instead, krb_login will be removed in koji 1.22")
try:
# Silently try GSSAPI first
if self.gssapi_login(principal, keytab, ccache, proxyuser=proxyuser):