Now, this is still not working:
having it as User-Name := '%{reply:User-Name}' still gives me an Access-Accept with text instead of variable value. Also, using double quotes yields the exact same result.
Sending Access-Accept of id 127 to xx.xx.xx.xx port 32785 User-Name = "%{reply:User-Name}" University-LDAP-organizationUnit = "cc " University-LDAP-affiliation = "staff" University-LDAP-departmentNumber = "20.5.2.4.0.0.0" MS-MPPE-Recv-Key = 0xecf20a153c749b7fa673b83360456fc9d5eb3080eaacdce7034dc6a69fe3ec3a MS-MPPE-Send-Key = 0x19632e43f61546fc38a26e0e71ef134ecd45dae99873af6040606bc2772bbd75 EAP-Message = 0x03190004 Message-Authenticator = 0x00000000000000000000000000000000
Sorry, it's "%{reply:User-Name}". From man unlang about strings: "Double-quoted strings are expanded by inserting the value of any variables (see VARIABLES, below) before being evaluated. If the result is a number it is evaluated in a numerical context. .. Single-quoted strings are evaluated as-is. Their values are not expanded as with double-quoted strings above, and they are not interpreted as attribute references." Ivan Kalik Kalik Informatika ISP Ivan Kalik Kalik Informatika ISP