[SERVER-47262] Server dumps core if started with GSSAPI auth mechanism and there is a configuration problem Created: 01/Apr/20  Updated: 29/Oct/23  Resolved: 05/May/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.3.5
Fix Version/s: 4.4.0-rc6, 4.7.0

Type: Bug Priority: Minor - P4
Reporter: Oleg Pudeyev (Inactive) Assignee: Shreyas Kalyan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Security 2020-04-20, Security 2020-05-04, Security 2020-05-18
Participants:

 Description   

When I try to run mongod with GSSAPI authentication mechanism, it seems that there are multiple configuration problems that cause the server to dump core.

Test case #1: no kerberos configuration present on the system at all.

To reproduce, build a docker image from this dockerfile: https://github.com/p-mongo/tests/blob/master/server-gssapi-crash-1/Dockerfile

Actual result: https://gist.github.com/p-mongo/0d32544a51ed7c31fbb557a287609193

Test case #2: kerberos is configured but there aren't any keytabs defined.

To reproduce, build a docker image from this dockerfile: https://github.com/p-mongo/tests/blob/master/server-gssapi-crash-2/Dockerfile

Actual result: https://gist.github.com/p-mongo/a6867c5634a618a20f6eab4d4961762a

Expected result: server produces an error message and exits but does not dump core.



 Comments   
Comment by Githook User [ 11/May/20 ]

Author:

{'name': 'Shreyas Kalyan', 'email': 'shreyas.kalyan@10gen.com', 'username': 'shreyaskalyan'}

Message: SERVER-47262 Server dumps core if started with GSSAPI auth mechanism and there is a configuration problem
Branch: v4.4
https://github.com/10gen/mongo-enterprise-modules/commit/d814dbc3d07ffa53a5e0dbbbc98194ef48d37332

Comment by Githook User [ 04/May/20 ]

Author:

{'name': 'Shreyas Kalyan', 'email': 'shreyas.kalyan@10gen.com', 'username': 'shreyaskalyan'}

Message: SERVER-47262 Server dumps core if started with GSSAPI auth mechanism and there is a configuration problem
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/21d7f7817dd83600d975c6b25a1f3fc08447c716

Generated at Thu Feb 08 05:13:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.