majewsky / portunus

Self-contained user/group management and authentication service
GNU General Public License v3.0
77 stars 5 forks source link

Configurable username regex #16

Closed tanneberger closed 9 months ago

tanneberger commented 1 year ago

Changes

This pull request makes the Username Regex configurable over an environment variable.

Motivation

Our organization wants to enforce some username schema with firstname.secondname and currently . are not allowed by the posix user regex. With those changes, we can configure portunus to our username schema

Tested

majewsky commented 9 months ago

Implemented differently and more thoroughly on top of the new validation code in 210726b7a7816ca28ab8180f0307e0939b38f0cc.