-
Type: Bug
-
Resolution: Done
-
Priority: Critical - P2
-
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'