diff options
author | Rob Crittenden <rcritten@redhat.com> | 2008-01-18 16:20:36 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2008-01-18 16:20:36 -0500 |
commit | 042fb11fa107718a831d468d16188e02f6ae3712 (patch) | |
tree | e0e8ee6701800b8f03702cb338f8efa211b18046 /ipa-python/krbtransport.py | |
parent | aaa3cfd58ca0c62325d7637b67c6711660624f5d (diff) | |
download | freeipa-042fb11fa107718a831d468d16188e02f6ae3712.tar.gz freeipa-042fb11fa107718a831d468d16188e02f6ae3712.tar.xz freeipa-042fb11fa107718a831d468d16188e02f6ae3712.zip |
Fix issues reported by rpmlint.
- Removing shebangs (#!) from a bunch of python libraries
- Don't use a variable name in init scripts for the lock file
- Keep the init script name consistent with the binary name, so renamed
ipa-kpasswd.init to ipa_kpasswd.init
- Add status option to the init scripts
- Move most python scripts out of /usr/share/ipa and into the python
site-packages directories (ipaserver and ipaclient)
- Remove unnecessary sys.path.append("/usr/share/ipa")
- Fix the license string in the spec files
- Rename ipa-webgui to ipa_webgui everywhere
- Fix a couple of issues reported by pychecker in ipa-python
Diffstat (limited to 'ipa-python/krbtransport.py')
-rw-r--r-- | ipa-python/krbtransport.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ipa-python/krbtransport.py b/ipa-python/krbtransport.py index 95d3bc64f..c3bbe8860 100644 --- a/ipa-python/krbtransport.py +++ b/ipa-python/krbtransport.py @@ -17,12 +17,9 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -#!/usr/bin/python - import httplib import xmlrpclib import kerberos -from kerberos import GSSError class KerbTransport(xmlrpclib.SafeTransport): """Handles Kerberos Negotiation authentication to an XML-RPC server.""" @@ -39,12 +36,12 @@ class KerbTransport(xmlrpclib.SafeTransport): try: rc, vc = kerberos.authGSSClientInit(service); except kerberos.GSSError, e: - raise GSSError(e) + raise kerberos.GSSError(e) try: kerberos.authGSSClientStep(vc, ""); except kerberos.GSSError, e: - raise GSSError(e) + raise kerberos.GSSError(e) extra_headers = [ ("Authorization", "negotiate %s" % kerberos.authGSSClientResponse(vc) ) |