User-Password NOT clear text?
-
I have a "standard" setup:
WiFi users coming from LAN going through pfSense to the WAN interface with a freeradius/MySQL backend.
The problem is when I tried the authentication diagnostic, for the user "foo" with password "foo".
freeradius show that the User-Password attribute is NOT the cleartext "foo"!rad_recv: Access-Request packet from host 10.10.120.100 port 23084, id=195, length=66
NAS-IP-Address = 10.10.120.100
NAS-Identifier = "pfsense.pi1m.my"
User-Name = "foo"
User-Password = ""\365\304a8\277\266\324\374(&\030\005߁\271\243""Executing section authorize from file /etc/raddb/sites-enabled/default
+- entering group authorize {…}
++[preprocess] returns okI have another test-bed with AFAIK EXACTLY the same freeradius setup (the /etc/raddb is just copied over) with the following:
rad_recv: Access-Request packet from host 10.25.1.10 port 9947, id=54, length=69
NAS-IP-Address = 10.25.1.10
NAS-Identifier = "pfsense.pi1m.my"
User-Name = "foobar"
User-Password = ""foo!bar!123""Executing section authorize from file /etc/raddb/sites-enabled/default
+- entering group authorize {…}
++[preprocess] returns okWhy the heck 1 setup returns true cleartext password and the other one returns a garbled password?
Note that the passwords are stored as MD5 hashes..mysql> select * from radcheck;
+–--+----------+--------------+----+----------------------------------+
| id | username | attribute | op | value |
+----+----------+--------------+----+----------------------------------+
| 1 | da_admin | MD5-Password | := | 274264553b3807300ab3155d2f66d839 |
| 2 | foobar | MD5-Password | := | 8694477cb58e460c81d7a1922bc74068 |
| 5 | wsx | MD5-Password | := | af83f787e8911dea9b3bf677746ebac9 |
+----+----------+--------------+----+----------------------------------+ -
Not enough of the exchange to really tell from that, but probably a difference such as PAP vs CHAP or other settings in the RADIUS server that govern what it claims to support.
It could also be a difference in the compile-time options given to freeradius and not in the config file.