Describe the issue:
LDAP is configured to match a user when logins.
primary-userbase:
base: ‘OU=my-users-groups,OU=my-ou,DC=my-dc,DC=net’
search: ‘(sAMAccountName={0})’
Is it possible to apply filters to match user and also the memberof he belongs to
eg:
primary-userbase:
base: ‘OU=KC_Users_Groups,OU=KC_Admins,DC=danskenet,DC=net’
search: ‘(&(objectClass=user)(sAMAccountName={0})(memberOf=CN=my-role-group,OU=my-group,OU=admin,DC=my-dc,DC=net))’
Configuration:
config like
primary-userbase:
base: ‘OU=KC_Users_Groups,OU=KC_Admins,DC=danskenet,DC=net’
search: ‘(&(objectClass=user)(sAMAccountName={0})(memberOf=CN=my-role-group,OU=my-group,OU=admin,DC=my-dc,DC=net))’
i modified the config file like this but dont think it is working. I checked that config file is moved from docker-compose volume to opensearch-security/security-config folder inside container.
however I could not view the config file inside the container. It gives me permission denied error. not even cat config.yml to confirm that changes are appearing.
Other thing is that do we need to run security-admin.sh script?