Details
-
Bug
-
Resolution: Works as Designed
-
Minor - P4
-
None
-
3.6.2
-
None
-
ALL
-
Description
db.getUsers() doesn't output authenticationRestrictions option.
Command
db.getUser("user1")
|
Output:
{
|
"_id" : "test.user1",
|
"user" : "user1",
|
"db" : "test",
|
"roles" : [
|
{
|
"role" : "read",
|
"db" : "test"
|
}
|
]
|
}
|
System table:
{
|
"_id" : "test.user1",
|
"user" : "user1",
|
"db" : "test",
|
"credentials" : {
|
"SCRAM-SHA-1" : {
|
"iterationCount" : 10000,
|
"salt" : "lzMnQfgicY/TfSRwllZTTQ==",
|
"storedKey" : "q6QviU2ZkYO4CVeRX51oNCsrzdU=",
|
"serverKey" : "D7QX56EUW6f/1+Ent6Kv6tglZAQ="
|
}
|
},
|
"authenticationRestrictions" : [
|
{
|
"clientSource" : [
|
"192.0.2.0"
|
],
|
"serverAddress" : [
|
"198.51.100.0"
|
]
|
}
|
],
|
"roles" : [
|
{
|
"role" : "read",
|
"db" : "test"
|
}
|
]
|
}
|
Server version: 3.6.2
Platform: Windows x64
Attachments
Issue Links
- is documented by
-
DOCS-11433 db.getUsers() should mention showAuthenticationRestrictions option
-
- Closed
-