toolbox/src
Debarshi Ray b1b1d459ed cmd/initContainer: Simplify removing the user's password
It's one less invocation of an external command, which is good because
spawning a new process is generally expensive.

One positive side-effect of this is that on some Active Directory
set-ups, the entry point no longer fails with:
  Error: failed to remove password for user login@company.com: failed
      to invoke passwd(1)

... because of:
  # passwd --delete login@company.com
  passwd: Libuser error at line: 210 - name contains invalid char `@'.

This is purely an accident, and isn't meant to be an intential change to
support Active Directory.  Tools like useradd(8) and usermod(8) from
Shadow aren't meant to work with Active Directory users, and, hence, it
can still break in other ways.  For that, one option is to expose $USER
from the host operating system to the Toolbx container through a Varlink
interface that can be used by nss-systemd inside the container.

Based on an idea from Si.

https://github.com/containers/toolbox/issues/585
2023-08-24 21:03:52 +02:00
..
cmd cmd/initContainer: Simplify removing the user's password 2023-08-24 21:03:52 +02:00
pkg pkg/utils: Offer built-in support for Arch Linux 2023-06-12 22:26:46 +02:00
go-build-wrapper build: Wire go-build-wrapper's output to Meson's 2022-09-08 22:01:16 +02:00
go.mod build: Make it build on riscv64 2023-06-13 16:04:47 +02:00
go.sum build: Bump golang.org/x/sys to 0.1.0 for CVE-2022-29526 2023-03-02 10:12:03 +01:00
meson.build build: Make it build on riscv64 2023-06-13 16:04:47 +02:00
meson_generate_completions.py build: Merge 'completion' into 'src' 2023-01-27 01:48:56 +01:00
meson_go_fmt.py build: Fix indentation 2023-01-27 20:09:37 +01:00
toolbox.go Update copyright notices 2022-11-28 21:01:18 +01:00