-
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
ldap.managed Errors #52022
Comments
@Sakorah Thanks for the report. This line seems like it might be the problematic line and resulting in the tuple in question, https://github.com/saltstack/salt/blob/2018.3/salt/modules/ldap3.py#L412 |
Hi! I just did some re-test and tried 2018.3.3 and it worked. Switched forward to 2018.3.4 and it failed. Switched back again and it worked. So something changed from 2018.3.3 to 2018.3.4. |
@Sakorah that's super helpful 😁 we'll hopefully be able to track down the problematic commit. |
Hi, I have some troubles here using ldap.manage module regarding some "tuple" stuff. This was described here #48258, fixed and backported by @rallytime on June 2018 as described there. But later, @angeloudy remove the fix on commits 05e55bd and 0d749e6 as described here. So with salt version 2018.3.4 I still have some trouble managing LDAP users with tuple error. Apply the fix authored by @nullify005 correct the issue but I have to patch all my minions instead of using package to upgrade. Could you explain me why the fix was removed please ? |
In order to successfully use 2018.3.4 I've had to apply the following patch:
It's subtle but there's a comma present there which appears to be causing the reported issue (for me at least). |
Regression from 05e55bd (saltstack#48666): - AttributeError: 'tuple' object has no attribute 'encode' - ValueError: too many values to unpack Fixes: saltstack#52022.
I've proposed a PR for this as #54342. |
Regression from 05e55bd (saltstack#48666): - AttributeError: 'tuple' object has no attribute 'encode' - ValueError: too many values to unpack Fixes: saltstack#52022.
Description of Issue/Question
I have a lot of states to manage users/groups in LDAP via saltstack.
ldap.managed state fails with two error different error messages.
It started failing in the last couple of weeks, did work for the last years fine :)
Running Ubuntu 18.04 or Debian 9 with latest patches.
Setup
I have an LDAP docker container running and saltstack connects to this LDAP server. Authentication to the LDAP server is working find.
Steps to Reproduce Issue
Run and apply sls from above.
Output I get for those two states:
Versions Report
The text was updated successfully, but these errors were encountered: