rharmonson / richtech

Creative Commons Zero v1.0 Universal
264 stars 58 forks source link

User without Domain #18

Closed fpieressa closed 5 years ago

fpieressa commented 5 years ago

Hi, good job!! One question, following your example, you are using "richard@2factor.net" as the user domain username, is there any way to configure freeradius to don't need the add of the domain to the username (so use "richard" as the username)?

Thanks!

rharmonson commented 5 years ago

FreeRADIUS can be configured to do pretty much anything if you dig deep enough or can stomach the trolls on FreeRADIUS forums. I suspect you could locate a "default" value in its configuration. However, if you are using a directory service and SSSD (Kerberos), there will be additional challenges.

Sorry if not terribly helpful, but if you develop a solution that will improve the "how to" feel free to fork and provide a revision for review and merge.

fpieressa commented 5 years ago

Hi Richard, we have solved it adding in the /etc/raddb/hints the following entries:

DEFAULT User-Name !~ ".*@" User-Name := "%{User-Name}@2factor.net"

Thanks for your time!

rharmonson commented 5 years ago

Nice and well done! On next revision, I will add your example as a note.