sgerrand / alpine-pkg-glibc

A glibc compatibility layer package for Alpine Linux
2.05k stars 280 forks source link

libnss_ldap.so is not be available as part of glibc-alpine-package #143

Closed vara424 closed 3 years ago

vara424 commented 4 years ago

Retrieve ldap user info using alpine system call <getent passwd > with below nsswitch.conf.

musl-nscd process needs ibnss_ldap.so object to connect to ldap database. During musl-nscd process starts, facing below issue. writev(2, [{iov_base="libnss_ldap.so: ", iov_len=16}, {iov_base="Error loading shared library lib"..., iov_len=70}], 2libnss_ldap.so: Error loading shared library libnss_ldap.so: No such file or directory) = 86

Usually in linux distributions, we see both pam_ldap.so and libnss_ldap.so objects..but unfortunately on alpine couldn't find libnss_ldap.so object...Could you please let us know on which package we do find this object. libnss_ldap.so is required during "getent passwd "..below are /etc/nsswitch.conf content passwd: files ldap shadow: files ldap group: files ldap

Do we need to include libnss_ldap.so as part of glibc-alpine-package?..

vara424 commented 4 years ago

bash-5.0# nscd -d -p /var/run/nscd/nscd.pid nscd: libnss_files.so: Error relocating /usr/glibc-compat/lib/libnss_files.so: __libc_alloc_buffer_alloc_array: symbol not found

Above issue is related musl libc and glibc comapatible...Is there any way tto solve above issue?..

sgerrand commented 3 years ago

Hi there. The ncsd executable which you're trying to run isn't part of the glibc package. You'll need to find all of the library files, like libnss_ldap.so, which it expects to be present at runtime. I am unable to help you with this debugging process.

Sorry that I can't be of more help, but this package was created as a convenience method. It's still provided as such. The caveat is that you will need advanced knowledge of the program you're trying to run in order to do so.