Hello. Seems that the variables (Tmp-String-0) do not work at all. Even without sql. See the below configuration. Does anyone have a clue what i am missing?
[root@aut-proxy sites-available]# more all-servers listen { ipaddr = 192.168.199.5 port = 21000 type=auth virtual_server = SERVER-21000 } server SERVER-21000 { authorize { preprocess pap update request { Tmp-String-0 = "testrealm" User-Name := "%{User-Name}@%{Tmp-String-0}" } update control { Proxy-To-Realm := "AUT-OTP02" } } } -------------- radiusd -X Listening on authentication address 192.168.199.5 port 21000 as server SERVER-21000 Listening on proxy address * port 1814 Ready to process requests. rad_recv: Access-Request packet from host 192.168.199.9 port 34238, id=107, length=60 User-Name = "testuser" User-Password = "testpass" NAS-IP-Address = 127.0.0.1 NAS-Port = 0 server SERVER-21000 { # Executing section authorize from file /etc/raddb/sites-enabled/all-servers +- entering group authorize {...} ++[preprocess] returns ok [pap] WARNING! No "known good" password found for the user. Authentication may fail because of this. ++[pap] returns noop expand: %{User-Name}@%{Tmp-String-0} -> testuser@ ++[request] returns noop ++[control] returns noop } # server SERVER-21000 WARNING: Empty pre-proxy section. Using default return values. Sending Access-Request of id 152 to x.x.x.x port 1812 User-Name = "testuser@" User-Password = "testpass" NAS-IP-Address = 127.0.0.1 NAS-Port = 0 Proxy-State = 0x313037 Proxying request 0 to home server x.x.x.x port 1812 Going to the next request -- View this message in context: http://freeradius.1045715.n5.nabble.com/FR-2-1-6-add-realm-to-User-Name-before-Proxy-by-listening-port-tp3303117p3389499.html Sent from the FreeRadius - User mailing list archive at Nabble.com. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html