-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jarkko Torppa wrote:
What would be good way to cleanup attributes that are generated by cisco's dhcp snooping/inserting ?
User-Name = "\001\026harjuniitty-ftth-sw1_6" ADSL-Agent-Circuit-Id = "\001\026harjuniitty-ftth-sw1_6" ADSL-Agent-Remote-Id = "\001\024harjuniitty-ftth-sw1"
Id like to strip that type 0x01 and length from data so that I would have "harjuniitty-ftth-sw1_6" for user-name.
I did'nt see anything obivous in unlang that could do this, and created hack in rlm_preprocess.c Erm regular expressions in unlang ?! Gives you 8 capture groups %{1}-%{8} use them !
Arran -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkngvJsACgkQcaklux5oVKJkbACfUW1emvgG2B2XY6CtFrjgmu7e FhcAnRAxrii8Ogzv3LdJYzPobQyh36YI =to1i -----END PGP SIGNATURE-----