Dear Maintainer,
I'm installed freedombox in a systemd container. Networking is managed by systemd.network
with NetworkManager configured to ignore all the interfaces. I needed to install btrfs-progs.
I was then able to access the https://cass.6site0/freedombox URL and paste in my secret.
I entered an account called owner and gave it a password. I performed an upgrade.
I then tried to add some SSH keys and add a user. I received
some failure messages from the plinth logs.
Sep 01 18:18:13 cass freedombox[171]: » ssh..set_keys("owner", "", "owner", ****)
Sep 01 18:18:13 cass freedombox[171]: Error running action ssh..set_keys("owner", "", "owner", ****): Permissi
onError("Invalid credentials")
Action traceback:
╞ File "/usr/lib/python3/dist-packages/plinth/actions.py", line 501, i
n _privileged_call
╞ return_values = func(*arguments['args'], **arguments['kwargs'])
╞ File "/usr/lib/python3/dist-packages/plinth/modules/ssh/privileged.p
y", line 98, in set_keys
╞ _validate_user(auth_user, auth_password, must_be_admin=must_be_adm
in)
╞ ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^
╞ File "/usr/lib/python3/dist-packages/plinth/modules/ssh/privileged.py", line 32, in _validate_user
╞ raise PermissionError('Invalid credentials')
Sep 01 18:18:14 cass freedombox[171]: GET /sys/users/owner/edit/
I may have incorrectly entered the owner password in that one, but later
Sep 01 18:18:14 cass freedombox[171]: GET /sys/users/owner/edit/
Sep 01 18:18:14 cass freedombox[171]: » ssh..get_keys("owner")
Sep 01 18:18:14 cass freedombox[171]: » users..get_group_users("admin")
Sep 01 18:20:25 cass freedombox[171]: POST /sys/users/owner/edit/
Sep 01 18:20:25 cass freedombox[171]: » ssh..get_keys("owner")
Sep 01 18:20:25 cass freedombox[171]: » users..get_group_users("admin")
Sep 01 18:20:25 cass freedombox[171]: » users..get_user_groups("owner")
Sep 01 18:20:25 cass freedombox[171]: » ssh..set_keys("owner", "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJY8q6TDObPW524Vna/2UT6PBgV05nD5n77D+mbyVAnW weaves-elliptic", "owner", ****)
Sep 01 18:20:25 cass freedombox[171]: Error running action ssh..set_keys("owner", "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJY8q6TDObPW524Vna/2UT6PBgV05nD5n77D+mbyVAnW weaves-elliptic", "owner", ****): PermissionError("Invalid credentials")
Action traceback:
╞ File "/usr/lib/python3/dist-packages/plinth/actions.py", line 501, in _privileged_call
╞ return_values = func(*arguments['args'], **arguments['kwargs'])
╞ File "/usr/lib/python3/dist-packages/plinth/modules/ssh/privileged.py", line 98, in set_keys
╞ _validate_user(auth_user, auth_password, must_be_admin=must_be_admin)
╞ ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╞ File "/usr/lib/python3/dist-packages/plinth/modules/ssh/privileged.py", line 32, in _validate_user
╞ raise PermissionError('Invalid credentials')
Sep 01 18:20:25 cass freedombox[171]: GET /sys/users/owner/edit/
In that one, I may have gotten further. I did manage to get the notification that the Authorization Password
worked, but something else failed.
I suspected that the LDAP password wasn't working because most of the error were invalid credentials after an
LDAP operation.
I went out to the OS command line and tried to change the password of the only account in LDAP the owner
account. And the LDAP password I entered during the LDAP/nslcd installation didn't work.
The /etc/nslcd.conf file looks incomplete:
# The DN to bind with for normal lookups.
#binddn cn=annonymous,dc=example,dc=net
#bindpw secret
# The DN used for password modifications by root.
#rootpwmoddn cn=admin,dc=example,dc=com
Despite trying to create two users - neither appeared on the file system.
So I think it is a broken distribution. There's something wrong with the linkage between plinth and
the LDAP.