Skip to content

Commit 2c0242a

Browse files
committed
fix prop name
1 parent 5518090 commit 2c0242a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pymongo/asynchronous/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ async def _authenticate_gssapi(credentials: MongoCredential, conn: AsyncConnecti
212212
props = credentials.mechanism_properties
213213
# Starting here and continuing through the while loop below - establish
214214
# the security context. See RFC 4752, Section 3.1, first paragraph.
215-
host = props.host_name or conn.address[0]
215+
host = props.service_host or conn.address[0]
216216
host = _canonicalize_hostname(host, props.canonicalize_host_name)
217217
service = props.service_name + "@" + host
218218
if props.service_realm is not None:

pymongo/synchronous/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def _authenticate_gssapi(credentials: MongoCredential, conn: Connection) -> None
209209
props = credentials.mechanism_properties
210210
# Starting here and continuing through the while loop below - establish
211211
# the security context. See RFC 4752, Section 3.1, first paragraph.
212-
host = props.host_name or conn.address[0]
212+
host = props.service_host or conn.address[0]
213213
host = _canonicalize_hostname(host, props.canonicalize_host_name)
214214
service = props.service_name + "@" + host
215215
if props.service_realm is not None:

0 commit comments

Comments
 (0)