-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
values need to be bytes when writing back to ldap #48666
Conversation
Should the encoding/decoding be specific to the ldap server? It looks like this PR is basing the encoding/decoding based on the client's system settings. Have you thought about what happens if the client system is using a non utf-8 encoding? |
@dwoz |
@angeloudy I think it's best to use utf-8 here (it looks like that is what LDAPv3 expects by default). We can make it configurable down the road if needed |
@dwoz and @angeloudy There is also |
Hi @angeloudy. Where are we on this one? |
@cachedout should |
@angeloudy It would try utf8 first, and then try the detected encoding if that raises a |
@angeloudy Are you planning on making the requested changes here? |
@rallytime what requested changes. |
@terminalmage @rallytime |
@terminalmage and @dwoz can you comment/re-review? |
Hi, any plans to merge this pull request so that I don't have to maintain my own patch? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think anyone is worrying about an encoding error. You still haven't made the suggested changes from a few months ago, which is probably why this hasn't been merged.
Regression from 05e55bd (saltstack#48666): - AttributeError: 'tuple' object has no attribute 'encode' - ValueError: too many values to unpack Fixes: saltstack#52022.
Regression from 05e55bd (saltstack#48666): - AttributeError: 'tuple' object has no attribute 'encode' - ValueError: too many values to unpack Fixes: saltstack#52022.
What does this PR do?
What issues does this PR fix or reference?
fix for #48599