Escape colons in User Custom Attribute

Is there a way to escape colons in the User Custom Attribute?

In a scenario of PI integration with Radius, in case of a successful authentication I would like send back to Radius a string. For that I created User Custom Attribute with key “Cisco-AVPair” and a the value should be “shell:priv-lvl=15” (something like “:Cisco-AVPair: shell:priv-lvl=15” In PI).

Because the value shell:priv-lvl=15 has colons after the word shell, the assumed value is only shell.

Thanks

Nobody knows that one?
I’ve tried backslash, double backslash, double colons, but no luck. I don’t even know if it is possible to do the escape, if somebody knows, let me know.

I think it does not work. You can not use a colon.

You could however set the attribute “priv-lvl=15” and then do a regexp match in rlm_perl.ini to return “shell:priv-lvl=15” in the RADIUS response.

Good idea, works like a charm.
Tks

1 Like