Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for wpaeap and radius profiles #27

Merged
merged 1 commit into from
May 21, 2020
Merged

Add support for wpaeap and radius profiles #27

merged 1 commit into from
May 21, 2020

Conversation

paultyng
Copy link
Owner

@paultyng paultyng commented May 17, 2020

Fixes #26, this also requires paultyng/go-unifi#4

@mjohnson9
Copy link
Contributor

I'll test this later today.

@mjohnson9
Copy link
Contributor

This works correctly for me with:

data "unifi_radius_profile" "USG" {
  name = "USG"
}

resource "unifi_wlan" "main" {
  name          = "main"
  wlan_group_id = data.unifi_wlan_group.default.id
  user_group_id = unifi_user_group.default.id

  vlan_id = unifi_network.wlan.vlan_id

  security          = "wpaeap"
  radius_profile_id = data.unifi_radius_profile.USG.id
}

In order to get the package to build, I had to run go mod edit -require github.com/paultyng/go-unifi@radius. After that, I ran go build -o ~/.terraform.d/plugins/darwin_amd64/terraform-provider-unifi_v0.7.1 and changed the provider version in my config to 0.7.1. I changed my WLAN config to the above (some details renamed) and ran terraform plan. The plan was correct. Then, I ran terraform apply and RADIUS now works as expected.

Now if only I could get the USG to use a proper certificate for RADIUS... but, we can't fix that through the UniFi Controller.

@paultyng
Copy link
Owner Author

Great, I can merge this later today hopefully and cut an actual release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make unifi_wlan.security = wpaeap usable
2 participants