escaping erb parameters
Hi,
when passing a parameter (an LDAP serach filter) to ERB template this does not translate as expected.
My parameter (from hiera yaml) I expect to be literally translated:
appregaaa::radldapprops: filter: '(&(uid=%{User-Name})(o:dn:=%{Realm}))'
The erb template section:
filter = "<%= @radldap_props['filter'] %>"
The result:
filter = "(&(uid=)(o:dn:=))"
I guess both %{User-Name} and %{Realm} get reinterpreted, but I can't seem to figure out how to prevent this and apply the correct escaping. Any help greatly appreciated.
Tx