chsh.ldap crashes in ask_shell

Bug #1892482 reported by Daniel Danger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nss-pam-ldapd (Ubuntu)
New
Undecided
Unassigned

Bug Description

When calling chsh.ldap as a normal user (user info is stored in ldap) I get promted for my password an then chsh.ldap crashes with the following output:

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

I believe, this was fixed upstream with this commit: https://github.com/arthurdejong/nss-pam-ldapd/commit/1025d5de336d8c9585b79df3154b5649da344281

$ lsb_release -rd
Description: Ubuntu 20.04.1 LTS
Release: 20.04

$ apt-cache policy nslcd-utils
nslcd-utils:
  Installiert: 0.9.11-1
  Installationskandidat: 0.9.11-1
  Versionstabelle:
 *** 0.9.11-1 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu focal/universe i386 Packages
        100 /var/lib/dpkg/status

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.