Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libpwquality no working on musl #40104

Closed
szorfein opened this issue Oct 22, 2022 · 1 comment
Closed

libpwquality no working on musl #40104

szorfein opened this issue Oct 22, 2022 · 1 comment
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed

Comments

@szorfein
Copy link

szorfein commented Oct 22, 2022

Is this a new report?

Yes

System Info

Void 5.19.13_1 x86_64-musl GenuineIntel/KVM notuptodate rFF

Package(s) Affected

libpwquality-1.4.4_1

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

passwd username
New password:
BAD password: the password fails the dictionary check
Retype new password:

Actual behaviour

passwd user
passwd: Module is unknown
passwd: password unchanged

The lib exist:

ls /usr/lib/security | grep pwquality
pam_pwquality.so

Steps to reproduce

  1. xbps-install -S libpwquality
  2. vim /etc/pam.d/passwd
password required pam_pwquality.so retry=2 
password required pam_unix.so sha512 shadow nullok rounds=20000
  1. passwd user
@szorfein szorfein added bug Something isn't working needs-testing Testing a PR or reproducing an issue needed labels Oct 22, 2022
@sgn
Copy link
Member

sgn commented Oct 22, 2022

Confirmed:

#include <dlfcn.h>
#include <stddef.h>
#include <stdio.h>

int main(int argc, char **argv) {
        if (argc != 2) return 255;
        void *h = dlopen(argv[1], RTLD_NOW);
        if (h == NULL) {
                printf("dlopen: %s\n", dlerror());
                return 1;
        }
        return 0;
}
$ ./a.out /usr/lib/security/pam_pwquality.so
dlopen: Error relocating /usr/lib/security/pam_pwquality.so: fgetpwent_r: symbol not found

@sgn sgn closed this as completed in 701a7b1 Oct 22, 2022
pfpulux pushed a commit to pfpulux/void-packages that referenced this issue Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed
Projects
None yet
Development

No branches or pull requests

2 participants