Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible, on a linux machine configured for AD or LDAP logon, when the user logs on, to use that username and password to connect to a WPA enterprise wifi connection, which would then allow the AD/LDAP logon to go ahead?

share|improve this question

Sort of, though it depends how your Linux machine is configured. If it allows cached credentials, then the intial login while the machine is not connected to the network (I am assuming this is the scenario) should be sucessful. Then the wireless can connect. After this you are logged into the PC, and the credentials are used to access domain resources. Not exactly what you asked, but effectively the same. If the AD credentials had expired, after logging on you would likely need to re-authenticate when accessing a domain resource.

share|improve this answer
In particular, I would like to hook into the username and password that the user enters on logon, and pass this to the wpa supplicant to use for the wireless logon. – askvictor Oct 20 '10 at 23:22
So you need to make sure that your access points are authenticating against Active Directory, most likely using 802.11x. I am sure there is a way of having WPA supplicant use this with the logged in users credentials, but that is where my knowledge runs out unfortunately. Hope this is at least getting you somewhere closer to a solution. – dunxd Oct 21 '10 at 7:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.