Open nazarewk opened 8 months ago
Azure AD external users are in format: user.name_external.domain.com#EXT#@internaltenant.onmicrosoft.com for user user.name@external.domain.com and internaltenant , which does not pass the internal check due to presence of #: https://github.com/gravitl/netmaker/blob/630c95c48b43ac8b0cdff1c3de13339c8b322889/models/structs.go#L274-L282
user.name_external.domain.com#EXT#@internaltenant.onmicrosoft.com
user.name@external.domain.com
internaltenant
#
v0.22.0
Linux
[netmaker] 2024-01-18 09:45:56 error creating user, krzysztof.nazarewski_[REDACTED].com#EXT#@[REDACTED].onmicrosoft.com ; user not added
actually it is a lot more than just a # present in the SSO username, validation should be skipped completely as per #2776 it fails:
max=40
in_charset|email
username
required
min=5
password
What happened?
Azure AD external users are in format:
user.name_external.domain.com#EXT#@internaltenant.onmicrosoft.com
for useruser.name@external.domain.com
andinternaltenant
, which does not pass the internal check due to presence of#
: https://github.com/gravitl/netmaker/blob/630c95c48b43ac8b0cdff1c3de13339c8b322889/models/structs.go#L274-L282Version
v0.22.0
What OS are you using?
Linux
Relevant log output
Contributing guidelines