I’m configuring my first boundary and vault servers. I was able to configure Boundary, add Azure for authenticating users, add targets to it etc.
Now I’m trying to connect Vault to it.
I was able to connect Vault successfully but when I try to add the ldap secrets engine to it (connected to an AD server), it doesn’t seem to be able to retrieve the username and password when I attach it to a target. If I do it directly via cli Vault does give me the info so I know the connection from Vault to my AD Server is working.
I used the Service Account Check-Out option with LDAP.
When I try to connect a target I get this error message :
targets.(Service).AuthorizeSession: vault.(Repository).Issue: vault.(client).post: vault: https://mydomain.com:8200: external system issue: error #3014: Error making API request. URL: PUT https://mydomain.com:8200/v1/ldap/library/dis/check-out Code: 400. Errors: * error parsing JSON
I tried a Get and a Post in the Credentials Library in Boundary but I don’t get same error message so I presume I need to use a POST to get the credentials?
This is the POST I have in Boundary right now :
curl
–header “X-Vault-Token: …”
–request POST
–data @payload.json
https://mydomain.com:8200/v1/ldap/library/dis/check-out