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

Encode delegate/impersonate user name string as utf8 unicode, not latin1 #418

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

a-urth
Copy link

@a-urth a-urth commented Sep 14, 2024

Since its possible (and completely fine) for user name to be non ascii string, encoding it to bytes with latin1 (which six does) produces UnicodeEncodeError.

I'm not using six here at all, since project has python3.8 requirement.

@NeffIsBack
Copy link
Contributor

Hi, thanks for the PR!
Do you have example creds to reproduce the bug?

@a-urth
Copy link
Author

a-urth commented Sep 16, 2024

I can't share environment I use, although if you have possibility to test delegate feature, then try pretty much any utf8 non ascii string as --delegate. For me cyrrillic was the issue, for example "пользователь" or "администратор"

@NeffIsBack
Copy link
Contributor

Yep, thanks! I have my own lab with which I can test it, just needed an example string

@NeffIsBack NeffIsBack added the bug-fix This Pull Request fixes a bug label Sep 18, 2024
Copy link
Contributor

@NeffIsBack NeffIsBack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
image
image

@NeffIsBack NeffIsBack merged commit bb2f3ec into Pennyw0rth:main Sep 18, 2024
5 checks passed
@mpgn mpgn added this to the v1.3.0 milestone Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix This Pull Request fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants