Hi everyone,
I use an ldap server to authent my users to kibana.
The thing is ALL users can access to kibana, not only the members of my 'restict_group_kibana' ldap group.
In the elasticsearch.yml I have:
shield:
authc:
realms:
ldap1:
type: ldap
order: 0
url: "ldap://ldap_server:ldap_port"
bind_dn: "uid=kibana-server,ou=Profils,ou=Logs,ou=Applications,dc=exemple,dc=com"
bind_password: "Apassword"
user_dn_templates:
- "uid={0},ou=city1,ou=users exemple,ou=technical,ou=people,dc=exemple,dc=com"
- "uid={0},ou=city2,ou=users exemple,ou=technical,ou=people,dc=exemple,dc=com"
- "uid={0},ou=city3,ou=users exemple,ou=technical,ou=people,dc=exemple,dc=com"
- "uid={0},ou=Profils,ou=Logs,ou=Applications,dc=exemple,dc=com"
group_search:
base_dn: "cn=restict_group_kibana,ou=Profils,ou=Logs,ou=Applications,dc=exemple,dc=com"
In fact all users that are in city1, city2 and city3 can access to kibana !
when I try an ldapsearch with a user, I don't have any memberOf or memberGroup entry.
# base <,ou=city1,ou=users exemple,ou=technical,ou=people,dc=exemple,dc=com> with scope subtree
# filter: uid=x156223
# requesting: ALL
# user1, city1,users exemple,technical,people,exemple,dc=com
dn: uid=user1,ou=city1,ou=users exemple,ou=technical,ou=people,dc=exemple,dc=com
ntUserLastLogon: 131243605008307064
ntUserLastLogoff: 0
mail: user1@exemple.com
objectClass: top
objectClass: person
objectClass: organizationalperson
objectClass: inetOrgPerson
objectClass: ntUser
ntUserDeleteAccount: true
uid: user1
sn:
l: city1
title: Administrateur WEB
description: Administrateur WEB
postalCode:
givenName:
street:
cn:
ntUserCodePage: 0
ntUserParms::
ntUserAcctExpires:
ntUserDomainId: user1
ntUniqueId:
# search result
search: 2
result: 0 Success
# numResponses: 2
when I try ldapsearch with my group restict_group_kibana I can see the following
# restict_group_kibana, Profils, Logs, Applications, exemple.com
dn: cn=restict_group_kibana,ou=Profils,ou=Logs,ou=Applications,dc=exemple,dc=com
objectClass: top
objectClass: groupofuniquenames
cn: restict_group_kibana
uniqueMember: uid=user1,ou=city1,ou=users exemple,ou=technical,ou=people,dc=exemple,dc=com
uniqueMember: uid=user2,ou=city1,ou=users exemple,ou=technical,ou=people,dc=exemple,dc=com
uniqueMember: uid=user3,ou=city2,ou=users exemple,ou=technical,ou=people,dc=exemple,dc=com
uniqueMember: uid=user4,ou=city3,ou=users exemple,ou=technical,ou=people,dc=exemple,dc=com
I'm a bit lost on what happens and how to solve it. It is like elasticsearch don't parse the group_search configuration
Thanks a lot for any help, and don't hesitate to ask if more infos are relevant.
Best Regards,
Del