Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-932

Error in GSSAPI / Kerberos

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0.3
    • Component/s: None
    • Labels:
      None

      Description

      I broke _authenticate_gssapi() when I changed SocketInfo's "host" to "address" in this commit.

      ======================================================================
      ERROR: test_gssapi_simple (test.test_auth.TestGSSAPI)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/Users/emptysquare/.virtualenvs/official/mongo-python-driver/test/test_auth.py", line 101, in test_gssapi_simple
          mechanism='GSSAPI'))
        File "/Users/emptysquare/.virtualenvs/official/mongo-python-driver/pymongo/database.py", line 988, in authenticate
          connect=True)
        File "/Users/emptysquare/.virtualenvs/official/mongo-python-driver/pymongo/mongo_client.py", line 397, in _cache_credentials
          sock_info.authenticate(credentials)
        File "/Users/emptysquare/.virtualenvs/official/mongo-python-driver/pymongo/pool.py", line 287, in authenticate
          auth.authenticate(credentials, self)
        File "/Users/emptysquare/.virtualenvs/official/mongo-python-driver/pymongo/auth.py", line 406, in authenticate
          auth_func(credentials, sock_info)
        File "/Users/emptysquare/.virtualenvs/official/mongo-python-driver/pymongo/auth.py", line 245, in _authenticate_gssapi
          gsn + '@' + sock_info.host, gssflags=kerberos.GSS_C_MUTUAL_FLAG)
      AttributeError: 'SocketInfo' object has no attribute 'host'
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: