Skip to content

Commit

Permalink
GODRIVER-1213 Allow SERVICE_HOST auth property in connection string.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewdale committed Nov 2, 2022
1 parent 3065e11 commit 7dde5e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/mongo/driver/connstring/connstring.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ func (p *parser) validateAuth() error {
return fmt.Errorf("username required for GSSAPI")
}
for k := range p.AuthMechanismProperties {
if k != "SERVICE_NAME" && k != "CANONICALIZE_HOST_NAME" && k != "SERVICE_REALM" {
if k != "SERVICE_NAME" && k != "CANONICALIZE_HOST_NAME" && k != "SERVICE_REALM" && k != "SERVICE_HOST" {
return fmt.Errorf("invalid auth property for GSSAPI")
}
}
Expand Down

0 comments on commit 7dde5e3

Please sign in to comment.