Search code examples
active-directoryldaphashicorp-vaultspring-vault

How to group membership search in Hashicorp Vault


I'm trying to set up a demonstration of the Vault as a solution to my company's security concerns about very sensitive user data. I've added the ldap authentication and I'm able to login with any ldap user credentials and the entities are created correctly with username as alias.

But I can't seem to make it import/ assign groups.

When configured like this it does not throw any error but is not assigning the user to the group.

enter image description here

When I change the Group DN to ou=ldap_groups,dc=company,dc=pl it just gives me an error when logging in that no groups were found.

I wanted to create a policy template so a normal user has access to his own data, and users with a special group like accountancy would be able to access everyone's data.


Solution

  • Vault will not automatically create the LDAP groups, you have to manually create the groups.

    Look here for a good explanation about this matter.