Skip to content

hostapd: SAE passwords from a separate file - #14515

Closed
rany2 wants to merge 2 commits into
openwrt:mainfrom
rany2:sae-pswd
Closed

rany2 wants to merge 2 commits into
openwrt:mainfrom
rany2:sae-pswd

Conversation

@rany2

@rany2 rany2 commented Jan 30, 2024 •

Copy link
Copy Markdown
Contributor

hostapd: SAE passwords from a separate file

[Upstream Backport]

Add a new hostapd configuration parameter sae_password_file to read SAE
passwords (i.e., the entries that use the previously added sae_password
parameter) from a separate file.

sae_password_file uses the following format for storing passphrases:

<password/credential>[|mac=][|vlanid=]
[|pk=<m:ECPrivateKey-base64>][|id=]

Examples:

|id= |mac=02:03:04:05:06:01|vlanid=1 |vlanid=3|id=

hostapd: add UCI option for sae_password_file

This PR adds the ability to set the sae_password_file option.

It functions exactly the same as the sae_password hostapd option except
the entries are loaded from a file. This is useful to have a per-device
SAE password and to assign devices to different VLANs without needing
to spin-up a RADIUS server.

@github-actions github-actions Bot added the core packages pull request/issue for core (in-tree) packages label Jan 30, 2024
@rany2
rany2 force-pushed the sae-pswd branch 4 times, most recently from 7891188 to fb852d2 Compare January 30, 2024 19:18
@rany2

rany2 commented Jan 30, 2024 •

Copy link
Copy Markdown
Contributor Author

Note: I initially tried to send a RELOAD_BSS if the SAE password file changed, however this doesn't work with SAE.

rany2 added 2 commits February 2, 2024 15:04
[Upstream Backport]

Add a new hostapd configuration parameter sae_password_file to read SAE
passwords (i.e., the entries that use the previously added sae_password
parameter) from a separate file.

sae_password_file uses the following format for storing passphrases:

<password/credential>[|mac=<peer mac>][|vlanid=<VLAN ID>]
[|pk=<m:ECPrivateKey-base64>][|id=<identifier>]

Examples:

<password>
<password>|id=<pw identifier>
<password>|mac=02:03:04:05:06:01|vlanid=1
<password>|vlanid=3|id=<pw identifier>

Signed-off-by: Shiva Sankar Gajula <[email protected]>
Signed-off-by: Rany Hany <[email protected]>
This PR adds the ability to set the sae_password_file option.

It functions exactly the same as the sae_password hostapd option except
the entries are loaded from a file. This is useful to have a per-device
SAE password and to assign devices to different VLANs without needing
to spin-up a RADIUS server.

Signed-off-by: Rany Hany <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core packages pull request/issue for core (in-tree) packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants