On 03/21/2013 12:59 PM, Michael Cronenworth wrote: > I still can't start kojid: > Mar 21 12:55:36 miracle systemd[1]: Starting SYSV: kojid server... > Mar 21 12:55:37 miracle kojid[21275]: Starting kojid: Error: Unable to > log in: cannot call sslLogin() via a non-https connection > > Still looking...
Google provided the answer: http://stackoverflow.com/questions/15049503/how-do-i-determine-if-my-mod-wsgi-application-is-running-on-https A WSGI 3.4 change that affects koji: https://code.google.com/p/modwsgi/wiki/ChangesInVersion0304 The attached patch fixes the problem and kojid starts. It should be portable across F17+.
--- auth.py.orig 2012-11-19 22:36:03.000000000 -0600 +++ auth.py 2013-03-21 15:54:56.351674388 -0500 @@ -372,8 +372,8 @@ if self.logged_in: raise koji.AuthError, "Already logged in" - if context.environ.get('HTTPS') not in ['on', '1']: - raise koji.AuthError, 'cannot call sslLogin() via a non-https connection' + if context.environ['wsgi.url_scheme'] != 'https': + raise koji.AuthError, 'cannot call sslLogin() via a non-https connection: %s' % context.environ['wsgi.url_scheme'] if context.environ.get('SSL_CLIENT_VERIFY') != 'SUCCESS': raise koji.AuthError, 'could not verify client: %s' % context.environ.get('SSL_CLIENT_VERIFY')
-- buildsys mailing list buildsys@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/buildsys