Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not resolve host name as local domain name. #424

Closed
wants to merge 1 commit into from

Conversation

oldium
Copy link

@oldium oldium commented Jan 24, 2020

When user name is same as computer name, the user name looks like oldium\OLDIUM. Prevent calling TranslateNameW when the domain name part is same as computer name - otherwise we run twice into TranslateNameW timeout and it takes more than 30 seconds to login.

Symptoms in logs:

error: lookup_principal_name: User principal name lookup failed for user 'oldium\\oldium' (explicit: 1355, implicit: 1355)

When user name is same as computer name, the user name looks like
oldium\OLDIUM. Prevent calling TranslateNameW when the domain name part
is same as computer name - otherwise we run twice into TranslateNameW
timeouts.

Symptoms in logs:

error: lookup_principal_name: User principal name lookup failed for user
'oldium\\oldium' (explicit: 1355, implicit: 1355)

Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
@oldium
Copy link
Author

oldium commented Jan 28, 2020

It looks like there are failed tests cert-hostkey.sh and cert-userkey.sh, which fail also in pull request #426. Not sure whether the failure is related to the changes.

@oldium oldium changed the title Do not resolve local domain name. Do not resolve host name as local domain name. Feb 19, 2020
@oldium
Copy link
Author

oldium commented Nov 22, 2020

Closing, have already a better fix in #469, which works with mentioned Match Group administrators and AuthorizedKeysFile inside the match block. Verified by logging-in from WSL2 Ubuntu to Windows SSH.

@oldium oldium closed this Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants