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

Error in GSSAPI / Kerberos

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 3.0.3
    • Affects Version/s: 3.0
    • Component/s: None
    • None

      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'
      

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: