post-auth { update reply { Uplogix-User-Groups := " %{reply:Uplogix-JUNK[0]} , %{reply:Uplogix-JUNK[1]} , %{reply:Uplogix-JUNK[2]} , %{reply:Uplogix-JUNK[3]} , %{reply:Uplogix-JUNK[4]} , %{reply:Uplogix-JUNK[5]}" Uplogix-JUNK !* ANY } } [8<] At first I thought I could use the !~ and =~, but it looks like those can only be used to evaluate, not to change the contents of the reply.
You use exactly those like this (MileageMayVaryTM): if ("%{Uplogix-JUNK[0]}" =~ /(.*),DC=doc,DC=uplogix,DC=com$/) { if ("%{1}" =~ /(.*),DC(.*)$/) { update reply { Uplogix-JUNK[0] := "%{1}" } } } : : : FR3 has a lovely 'foreach' operator where you can loop through the entire array of Uplogix-JUNK and do this instead of a series of if statements... With Regards Stefan Paetow Moonshot Industry & Research Liaison Coordinator t: +44 (0)1235 822 125 gpg: 0x3FCE5142 xmpp: stefanp@jabber.dev.ja.net skype: stefan.paetow.janet jisc.ac.uk Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc¹s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.