I’m trying to create a policy that policy with a templated path that uses the User’s LDAP username. The token appears to have metadata: username, but the entity’s metadata is nil.
I have tried the following:
These map to entity_xxxxxxxx or the entity UUID, neither of which are helpful
I wrote two quick articles last year on this, how to use templates and how to provision entities first, to control the name. Here is the link to the first.
It uses the userpass auth, but the pattern is the same for ldap. Also, the endpoint sys/internal/ui/resultant-acl will render the actual paths based on the identity values.