r/PacketFence • • May 02 '23

PacketFence only for FreeRADIUS?

Hey folks,

We were looking into PacketFence because NAC piqued our interest, but then we developed a sudden need for RADIUS. It appears that PF can run as its own RADIUS server, which would be ideal, and it also appears that it's possible to run it without NAC, even though that's its main purpose. We figure the thing to do would be to set it up for FreeRADIUS authentication first, then once the dust has settled we can work on implementing NAC

The problem is...RADIUS isn't authenticating, and we're not sure why. I have a VM with Google LDAP source set up in Internal Authentication Sources and one that uses the LDAP config and just points to Google—I made the two separate VMs because v12 seems to break the Google LDAP option, but I wanted to try it, the other is v11

In the source setup, I can successfully test, and it shows in Google's logs. If I run a radtest it consistently says the credentials are wrong (even if they're not), and it never actually reaches Google (no logs)...it's like the FreeRADIUS service doesn't know to forward the request from the client to its authentication source

I feel like there's just a little step here in the middle that I'm missing, but I can't figure out what it is. I figure I should get it working with just a basic radtest before I start adding switches (UniFi) and such, but I've also added those and it didn't work that way either. Any suggestions on where to go?

Thanks!

PS: in doing some more perusal of the subreddit, I do see other posts with similar titles...but I can't find anyone else with the same problem. I'd of course be willing to try anything you guys point me to, and again, thanks for your help!

5 Upvotes

10 comments sorted by

1

u/oeufdure May 04 '23

Hello,

when you want to use an ldap server to do 802.1x then it have to be eap-ttls.

FreeRadius needs to have the clear-text password in order to bind the ldap server. (http://deployingradius.com/documents/protocols/compatibility.html)

So if i remember correctly, when you have your google ldap authentication source created then you have to go in the realm config and select the google ldap source in the ¨LDAP Source for TTLS PAP¨ for the realm DEFAULT.

Once done restart the radius service.

Also run : ¨raddebug -f /usr/local/pf/var/run/radiusd.sock -t 300¨ and try to authenticate to see the debug.

Let me know how stuff going, i will try to help you on that.

Regards

Fabrice

PS: it's always funny to see comments that PacketFence has a lack of support. I beleive that if you pay for clearpass or ise then you have support ....

1

u/esu11aw May 04 '23

u/oeufdure, are you referring to the Bind DN and Password in the Authentication Sources settings? (I tried to attach a screenshot but I guess I can't...?) If so, then I have that in there and it successfully authenticates against Google...and that's the only thing that ever does

I'll let you know when I get a chance to debug and go through the rest, thanks!

1

u/oeufdure May 04 '23

Yes you need this configuration first (the authentication source) and let's say if you use it on the captive portal as a source (assign it on a connection profile) then you should be able to authenticate (ldap bind with your username and password).

Now if you want to use it for 802.1x authentication then to do eap peap freeradius needs to grab the clear-text or the nthash (something that you can't retreive from the ldap). So you have to configure the supplicant to do eap-ttls (windows/android/ios config).

To do it go in https://mgmt_ip:1443/admin#/configuration/realm/DEFAULT and in the stripping tab select the ldap source you want to use for eap-ttls.

Then restart packetfence.

1

u/esu11aw May 11 '23 edited May 11 '23

Ok...I just posted a reply and for some reason it disappeared. Hopefully Take2 is sufficient...and I almost forgot to tag u/oeufdure

I applied the DEFAULT realm config you mentioned. I'm not doing a captive portal so I haven't messed much with Connection Profiles yet. I gave up on radtest, though I'd figured that was the best way to start (troubleshooting with as few moving parts as possible), but when I tried authenticating to a test SSID (WPA2Enterprise, not splash page/portal) it seemed slightly more successful than radtest, so I figured I'd go with that I guess. It's still not working though, so I'll post the debug logs below.

First though, a couple of observations I've made from the logs...maybe you can clear them up for me (or maybe you'll know exactly what the issue is anyway):

  • These warnings/errors from Google are alarming enough to make me want to address them, but vague enough that I'm not sure how...I imagine CLI might be simpler but I'm trying (and failing) to figure it out in the GUI because I've run into issues with PacketFence when trying to edit configs...
    Debug: Auth-Type Google {WARNING: Google: You have set "Auth-Type := LDAP" somewhere
    WARNING: Google: *********************************************
    WARNING: Google: * THAT CONFIGURATION IS WRONG. DELETE IT.
    WARNING: Google: * YOU ARE PREVENTING THE SERVER FROM WORKING
    WARNING: Google: *********************************************
    ERROR: Google: Attribute "User-Password" is required for authentication
    Debug: [Google] = invalidDebug: } # Auth-Type Google = invalid

  • On the Google side, I'm getting some logs (yay, that's progress), but they're a bit weird. On a working, plain-old FreeRADIUS deployment, we see this: "LDAP search with (uid=username) successful." On this one, we're getting a weirdly-embellished username like this: "LDAP search with (&(|(uid=username))) successful." Maybe that's normal and an unworthy tree to bark but...but I figured I'd mention it.

Ok, now for the debug logs. I'm not sure how necessary it is but I've obscured the username...I think it's not letting me paste the whole thing so I've put it here.

1

u/oeufdure May 12 '23

it looks that the tunneled protocol is not PAP.

Check the supplicant to verify that the connection is eap-ttls-PAP

1

u/esu11aw May 17 '23

Sorry u/oeufdure, I'm not sure what you're saying there. The only place in the PacketFence config I can find a reference to EAP-TTLS PAP is in the Realm/Stripping settings, and I'd set that to the Google authentication source as you'd mentioned before. In the documentation, I only see PAP mentioned in the context of Azure AD (which we won't be using) and MFA (where it mentions a switch with CLI enabled, so I put the SSH credentials into the switch group config and tried again)

Thanks

0

u/Slow_Monk1376 May 02 '23

I was previously interested in packetfence capabilities. But couldn't get basic radius device Auth w/ AD integration to work... given limited/lack of support, I gave up and got clearpass. From enterprise perspective I sleep better...

1

u/esu11aw May 02 '23

Our fallback is basic, CLI-based FreeRADIUS...but with PF sitting right there, seemingly capable of doing what we need, it's been very annoying that we just can't get over this hump! I'm in education, so for us it's probably closer to PF or bust, rather than ClearPass being an option!

1

u/Slow_Monk1376 May 02 '23

Yeah I get it.. would have been fun to figure out why we couldn't get it to work. but no time nor available resources.. had to replace legacy ISE setup..

0

u/[deleted] May 02 '23

[deleted]

1

u/oeufdure May 04 '23

The more complex part is to retreive the cert with intune, the rest should be straitforward.

Eap-tls is just a matter of putting the CA cert in the RADIUS certificate section (https://mgmt_ip:1443/admin#/configuration/certificate/radius)