string formatting unlang

Christian Salway christian.salway at
Wed Nov 14 17:42:34 CET 2018

I have the following 'update reply'

        foreach &reply:memberOf {
            update reply {
                Class += "%{Foreach-Variable-0}"

which adds a list of groups from active directory as distinguished names 

eg. CN=pod-admin,OU=Groups,OU=directory,DC=directory,DC=local

but I need it to add to Class as 


Is there anyway to do this?

I was thinking of maybe passing it to a module that would rewrite it

"%{module: Foreach-Variable-0}"

but no idea how to do that.

More information about the Freeradius-Users mailing list