RADIUS for WiFi with existing users on Debian

0

i'm trying to setup RADIUS for WiFi Authentication, but the tricky here is to use existing users on Debian for authentication. I was able to setup RADIUS and connect with users defined in "/etc/freeradius/3.0/users" but is it possible to use existing users and passwords in "/etc/passwd" for this purpose ? And how ?

Ivan Simeonov

Posted 2019-02-13T15:30:08.523

Reputation: 1

Answers

0

Only if your devices support EAP-TTLS/PAP or EAP-PEAP/GTC. These mechanisms allow the client to send a plain password to the server (TLS-secured).

The more common MSCHAP-based mechanisms, however, do not allow this: they are challenge/response mechanisms which require the server to already know either the plain passwords or specific format hashes (NTLM / MD4), and you have neither of those in /etc/passwd.

(There is also an EAP-pwd mechanism which specifically allows usage of crypt()-format hashes that /etc/passwd (actually /etc/shadow) stores – but its support is quite rare.)

To implement this, activate either the 'pam' module (which asks the OS to verify passwords) or the 'unix' module (which directly reads hashes from /etc/shadow).

user1686

Posted 2019-02-13T15:30:08.523

Reputation: 283 655