On ma, 28 kesä 2021, Joseph Fry via FreeIPA-users wrote:
%deref() looks for directly referenced entries' content. %deref_r()
chases all links by the attribute until the end. It allows you do
hierarchical group traversal. This is all described in the
format-specifiers.txt documentation.
I think you misunderstand my question.
Both of these lines return the same thing (in my case, I realize that %deref_r would go
deeper if it were necessary):
memberA=%deref("member","fqdn")
memberB=%deref_r("member","fqdn")
However if I try to use them inline like so:
memberA=StringBefore%deref("member","fqdn")StringAfter
memberB=StringBefore%deref_r("member","fqdn")StringAfter
Then I get no memberA attribute at all, while memberB gives me what I expect, which is
memberB=StringBefore<dereferenced fqdn>StringAfter
For each member value in the source.
Nothing in the documentation (that I have seen) explains this difference in behavior. I
spent hours trying to figure it out.