FS#64966 - [nss-pam-ldapd] not python 3 ready
Attached to Project:
Community Packages
Opened by Laszlo Nagy (rizsotto) - Thursday, 26 December 2019, 12:05 GMT
Last edited by Johannes Löthberg (demize) - Friday, 27 December 2019, 13:48 GMT
Opened by Laszlo Nagy (rizsotto) - Thursday, 26 December 2019, 12:05 GMT
Last edited by Johannes Löthberg (demize) - Friday, 27 December 2019, 13:48 GMT
|
Details
Description:
Was trying to use the `chsh.ldap` command from this package, and it crashes with ... ``` # chsh.ldap laca LDAP administrator password: Enter the new value, or press ENTER for the default Traceback (most recent call last): File "/usr/bin/chsh.ldap", line 80, in <module> main() File "/usr/bin/chsh.ldap", line 69, in main shell = ask_shell(user.shell) File "/usr/bin/chsh.ldap", line 50, in ask_shell shell = input(' Login Shell [%s]: ' % oldshell) UnboundLocalError: local variable 'input' referenced before assignment ``` Checking the upstream repo, found a recent commit which is fixing this command specifically against the "new" Python version. Without much investigation I have the impression that this code is not fully checked against the Python 3. (The build bot is running against Python 2) - Option A: Can we either depend on the Python 2 version for this package for a little? - Option B: Can we release a new version which contains this recent fix for the `chsh.ldap` command? Additional info: * package version(s): 0.9.11-1 * config and/or log files etc. * link to upstream bug report, if any Steps to reproduce: |
This task depends upon
Closed by Johannes Löthberg (demize)
Friday, 27 December 2019, 13:48 GMT
Reason for closing: Fixed
Additional comments about closing: 0.9.11-2
Friday, 27 December 2019, 13:48 GMT
Reason for closing: Fixed
Additional comments about closing: 0.9.11-2
Comment by
Chih-Hsuan Yen (yan12125) - Friday,
27 December 2019, 03:01 GMT
Most likely this commit should be backported:
https://arthurdejong.org/git/nss-pam-ldapd/patch/?id=1025d5de336d8c9585b79df3154b5649da344281