[SERVER-1677] A shell function should be implemented to see if the server is running with authentication Created: 25/Aug/10 Updated: 06/Dec/22 Resolved: 17/Aug/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 1.6.1 |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Minor - P4 |
| Reporter: | Justin Dearing | Assignee: | Backlog - Security Team |
| Resolution: | Done | Votes: | 2 |
| Labels: | platforms-re-triaged | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
All |
||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Server Security
|
||||||||
| Participants: | |||||||||
| Description |
|
A function, whose name I propose to be authEnabled() should return true if the mongo server has authentication enabled, false otherwise. |
| Comments |
| Comment by Matt Lord (Inactive) [ 17/Aug/18 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
Hi halfdan, Since the original stated problem "use getCmdLineOpts() to determine if MongoDB runs in auth-Mode, but this does not work if authentication has been enabled in mongodb.conf" is now addressed in MongoDB 4.0 I'm going to close this ticket for now.
Please let me know if you'd still like something more in this regard and I will re-open the ticket and adjust it as needed.
Thank you for using MongoDB! | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Asya Kamsky [ 16/Aug/18 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
This can be done with `getCmdLineOpts` as since that comment was made, it displays options whether they were specified on the command line or in the config file.
| ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Eliot Horowitz (Inactive) [ 13/Jul/11 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
I think it was meant as a related link, not depends. | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Fabian Becker [ 13/Jul/11 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
@Kristina: I don't see why this is a duplicate of my other ticket. | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Fabian Becker [ 25/Aug/10 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
http://groups.google.com/group/mongodb-dev/browse_thread/thread/bb8a7fea2fdb8cec?hl=en C&P from my Post in the Group: Kristina suggested to use "getCmdLineOpts" to determine if MongoDB runs in auth-Mode, but this does not work if authentication has been enabled in mongodb.conf. This function would be much appreciated if implemented!t |