chsh.ldap crashes when I change my password
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nss-pam-ldapd (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I try to change my shell on a university-provided computer.
Basic `chsh` does not work.
Google told me that I need to install nslcd-utils package and use `chsh.ldap` command.
However, when I do `chsh.ldap -s /usr/bin/zsh` to switch from bash to zsh, I get the following error:
Traceback (most recent call last):
File "/usr/bin/
constants.
File "/usr/share/
assert con.get_response() == constants.
File "/usr/share/
return self.read_int32()
File "/usr/share/
return _int32.
struct.error: unpack requires a string argument of length 4
Funny side note: In the field above "In what package did you find this bug?" I write `nslcd-utils` (this is what I installed to get chsh.ldap command) but I get an error that such package does not exist, although it DOES exist, at least in Ubuntu 16.04:
$ apt search nslcd-util
Sorting... Done
Full Text Search... Done
nslcd-utils/
utilities for querying LDAP via nslcd
Can you post the output from nslcd in debug mode? The easiest way to do this is run in a separate window:
% sudo -s
# service nslcd stop
# nslcd -d
It is important to run sudo -s first because if you stop the nslcd service the LDAP users will not be able to authenticate until you start nslcd again. You can terminate the above with <Control>+<C> and run service nslcd start.