I have linked opensearch to our active directory domain.
I also mapped some AD groups to the proper roles…
everything works but i noticed that Dashboards exposes too much information to the users…
specifically when a user clicks on “view roles and identities” the user can see every Active Directory group the user name is linked to (as backend roles) even if that group is never used in OpenSearch…
this is information i would like to hide as it shows details the user shouldn’t know.
does anyone know how to do that?
this is the closest thing i found
pablo
October 5, 2022, 8:31pm
2
@anubisg1 I did some testing and found out that narrowing rolebase
in authz
of config.yml will decrease the number of visible groups.
In my case customer has groups in the Users
and Users2
folders.
My rolebase
is set to the Users
folder and as result, I can only see groups from that folder.
1 Like
This is interesting …
this is the config i am testing right now
{
"enable_ssl": false,
"hosts": [
"192.168.0.20:389",
"192.168.0.21:389"
],
"bind_dn": "CN=binduser,OU=Bind Users,OU=UsersOU,DC=customer,DC=company,DC=com",
"password": "xxxxxx",
"userbase": "OU=UsersOU,DC=customer,DC=company,DC=com",
"usersearch": "(sAMAccountName={0})",
"username_attribute": "sAMAccountName",
"rolebase": "OU=OpenSearch,OU=User Security Groups - Customer,DC=customer,DC=company,DC=com",
"rolesearch": "(uniqueMember={0})"
}
now, i see roles also from
OU=User Security Groups - Customer,DC=customer,DC=company,DC=com
even though i specified a more specific OU
i have also tried to add the following with no success
resolve_nested_roles: true
nested_role_filter:
- '^(?!.*OpenSearch.*$)'
that should match (and therefore filterout) everything except groups which have “OpenSearch” in them
pablo
November 4, 2022, 4:17pm
5
@anubisg1 I did some testing and I still can see only the groups from the rolebase
My repro:
User is located in OU=nested,OU=users2,dc=test,dc=local
Group user2group
is located in users2
OU and nested_group1
in nested
OU
user ldapuser6 has both groups assigned.
rolebase is set to OU=nested,OU=users2,dc=test,dc=local
Running the below command returns only the nested group.
curl --insecure -u ldapuser6 -XGET https://localhost:9200/_plugins/_security/authinfo?pretty
Also OpenSearch Dashboards returns the same.
hm21
October 14, 2023, 7:05pm
6
Have you found a way to hide the unmapped backend roles?
hm21
October 14, 2023, 7:27pm
7
Why isn’t there also the “Domain Users” as backend role shown on the UI?
pablo
November 25, 2023, 12:15am
8
@hm21 Domain Users
are not listed as I’m pointing to a nested security group.
pablo:
rolebase is set to OU=nested,OU=users2,dc=test,dc=local
As per my screenshot only nested_group1
is in that nested security group.