Azure / go-ntlmssp

NTLM/Negotiate authentication over HTTP
MIT License
189 stars 67 forks source link

Support for UPN #32

Closed tirupatibg closed 2 years ago

tirupatibg commented 2 years ago

Support for UPN

  1. If the user name contains upn (user@domain.com) or SAM (domain\sam), NOT prepending the domain name or netbios name while sending the response to challenge. (TYPE 3 token).

  2. If the username doesn't fall under category either UPN or SAM, prepending the domain name coming from (type 2 token) in the username while sending the response to server challenge.

  3. upn (user@domain.com) -- \user@domain.com

  4. SAM (domain\user) -- domain\user

  5. username (user) -- DOMAIN\user.

ghost commented 2 years ago

CLA assistant check
All CLA requirements met.

tirupatibg commented 2 years ago

Hi @paulmey @Catbuttes if you get a chance, could you guys please review this PR?

paulmey commented 2 years ago

LGTM