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

Missing libsasl2 in 2.6-7.6.8 #72

Open
luqmanrizal opened this issue May 23, 2024 · 8 comments
Open

Missing libsasl2 in 2.6-7.6.8 #72

luqmanrizal opened this issue May 23, 2024 · 8 comments
Labels

Comments

@luqmanrizal
Copy link

Summary

The container failed to run the latest commit 9b99554 with the default out-of-the-box configuration.

Steps to reproduce

  1. Pull the 2.6-7.6.8 image tag
docker pull tiredofit/openldap:2.6-7.6.8
  1. Run the docker image
docker run -it tiredofit/openldap:2.6-7.6.8

What is the expected correct behavior?

Expected the container to run normally with no additional configuration.

Relevant logs and/or screenshots

                                                                       ,---.
,--------.,--.                 ,--.            ,---.    ,--. ,--------.|   |
'--.  .--'`--',--.--. ,---.  ,-|  |     ,---. /  .-'    |  | '--.  .--'|  .'
   |  |   ,--.|  .--'| .-. :' .-. |    | .-. ||  `-,    |  |    |  |   |  |
   |  |   |  ||  |   \   --.\ `-' |    ' '-' '|  .-'    |  |.--.|  |   `--'
   `--'   `--'`--'    `----' `---'      `---' `--'      `--''--'`--'   .--.
                                                                       '--'
Image:  tiredofit/openldap | Version  2.6-7.6.8 Type 'image_changelog' for details
Repository/Documentation: https://github.com/tiredofit/docker-openldap/

If this image provides you value  - Consider sponsoring my work for continued
development, timely updates, and feature requests. Commercial support available.

                    More Info:  https://www.tiredofit.ca

2024-05-23.04:51:40 [NOTICE] ** [monitoring] Container configured for monitoring with 'zabbix modern'
2024-05-23.04:51:40 [NOTICE] ** [scheduling] Container configured for scheduled tasks with 'cron'
2024-05-23.04:51:40 [NOTICE] ** [messaging] Container configured to route mail via SMTP to 'postfix-relay'
2024-05-23.04:51:40 [NOTICE] ** [openldap] Setting up directories
2024-05-23.04:51:40 [NOTICE] ** [openldap] Configuring OpenLDAP server
ls: unrecognized option: I
BusyBox v1.36.1 (2024-05-21 13:38:37 UTC) multi-call binary.

Usage: ls [-1AaCxdLHRFplinshrSXvctu] [-w WIDTH] [FILE]...

List directory contents

        -1      One column output
        -a      Include names starting with .
        -A      Like -a, but exclude . and ..
        -x      List by lines
        -d      List directory names, not contents
        -L      Follow symlinks
        -H      Follow symlinks on command line
        -R      Recurse
        -p      Append / to directory names
        -F      Append indicator (one of */=@|) to names
        -l      Long format
        -i      List inode numbers
        -n      List numeric UIDs and GIDs instead of names
        -s      List allocated blocks
        -lc     List ctime
        -lu     List atime
        --full-time     List full date/time
        -h      Human readable sizes (1K 243M 2G)
        --group-directories-first
        -S      Sort by size
        -X      Sort by extension
        -v      Sort by version
        -t      Sort by mtime
        -tc     Sort by ctime
        -tu     Sort by atime
        -r      Reverse sort order
        -w N    Format N columns wide
        --color[={always,never,auto}]
ls: unrecognized option: I
BusyBox v1.36.1 (2024-05-21 13:38:37 UTC) multi-call binary.

Usage: ls [-1AaCxdLHRFplinshrSXvctu] [-w WIDTH] [FILE]...

List directory contents

        -1      One column output
        -a      Include names starting with .
        -A      Like -a, but exclude . and ..
        -x      List by lines
        -d      List directory names, not contents
        -L      Follow symlinks
        -H      Follow symlinks on command line
        -R      Recurse
        -p      Append / to directory names
        -F      Append indicator (one of */=@|) to names
        -l      Long format
        -i      List inode numbers
        -n      List numeric UIDs and GIDs instead of names
        -s      List allocated blocks
        -lc     List ctime
        -lu     List atime
        --full-time     List full date/time
        -h      Human readable sizes (1K 243M 2G)
        --group-directories-first
        -S      Sort by size
        -X      Sort by extension
        -v      Sort by version
        -t      Sort by mtime
        -tc     Sort by ctime
        -tu     Sort by atime
        -r      Reverse sort order
        -w N    Format N columns wide
        --color[={always,never,auto}]
2024-05-23.04:51:40 [WARN] ** [openldap] First time install detected
2024-05-23.04:51:40 [NOTICE] ** [openldap] Using NIS schema type
Error loading shared library libltdl.so.7: No such file or directory (needed by /usr/sbin/slappasswd)
Error loading shared library libsasl2.so.3: No such file or directory (needed by /usr/sbin/slappasswd)
Error loading shared library libuuid.so.1: No such file or directory (needed by /usr/sbin/slappasswd)
Error loading shared library libsasl2.so.3: No such file or directory (needed by /usr/lib/libldap.so.2)
Error relocating /usr/lib/libldap.so.2: sasl_set_mutex: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_client_step: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_version: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_decode: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_client_init: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_dispose: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_errstring: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_encode: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_errdetail: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_getprop: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_global_listmech: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_setprop: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_client_start: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_client_new: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_server_start: symbol not found
Error relocating /usr/sbin/slappasswd: prop_request: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_listmech: symbol not found
Error relocating /usr/sbin/slappasswd: uuid_generate: symbol not found
Error relocating /usr/sbin/slappasswd: uuid_unparse_lower: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_set_mutex: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_auxprop_getctx: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlopenext: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlexit: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_version: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_dispose: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_setpass: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_seterror: symbol not found
Error relocating /usr/sbin/slappasswd: prop_set: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_checkpass: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_done: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_errdetail: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlclose: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_getprop: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlerror: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_auxprop_add_plugin: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_server_new: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_server_step: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_setprop: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_server_init: symbol not found
Error relocating /usr/sbin/slappasswd: prop_getnames: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlsym: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlinit: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlsetsearchpath: symbol not found

Environment

  • Image version / tag: 2.6-7.6.8
  • Host OS: ubuntu/linux/amd64

Possible fixes

Possible bash script failure in tiredofit/alpine:3.20. Reverting base image to tiredofit/alpine:3.19 as a temporary fix.

@tiredofit
Copy link
Owner

Thanks for the headsup! 7.6.9 should resolve this with also adding libevent and libuuid as runtime dependencies..

@itsnanrabban
Copy link

still got same error at 7.6.9
image

@tiredofit
Copy link
Owner

That's a different issue. Can you open another one and provide some snippets of DEBUG_MODE=TRUE which can tell where things are breaking

@itsnanrabban
Copy link

i got this error when enable debug


2024-06-11.13:13:19 [NOTICE] /etc/cont-init.d/10-openldap ** [openldap] Configuring OpenLDAP server
+ set -e
+ set -o pipefail
+ '[' -z dc=qiscus,dc=com ']'
+ '[' '!' -e /assets/state/slapd-first-start-done ']'
+ new_install=false
+ transform_file_var ADMIN_PASS CONFIG_PASS
+ local variables
++ echo ADMIN_PASS CONFIG_PASS
++ tr ' ' '\n'
+ variables='ADMIN_PASS
CONFIG_PASS'
+ for variable in $variables
+ '[' -v ADMIN_PASS_FILE ']'
+ for variable in $variables
+ '[' -v CONFIG_PASS_FILE ']'
+ unset file_variable
+ unset variables
+ var_true FALSE
+ '[' false = true ']'
+ '[' false = yes ']'
++ ls -A -I lost+found /var/lib/openldap
ls: unrecognized option: I
BusyBox v1.36.1 (2024-05-21 13:38:37 UTC) multi-call binary.

Usage: ls [-1AaCxdLHRFplinshrSXvctu] [-w WIDTH] [FILE]...

List directory contents

        -1      One column output
        -a      Include names starting with .
        -A      Like -a, but exclude . and ..
        -x      List by lines
        -d      List directory names, not contents
        -L      Follow symlinks
        -H      Follow symlinks on command line
        -R      Recurse
        -p      Append / to directory names
        -F      Append indicator (one of */=@|) to names
        -l      Long format
        -i      List inode numbers
        -n      List numeric UIDs and GIDs instead of names
        -s      List allocated blocks
        -lc     List ctime
        -lu     List atime
        --full-time     List full date/time
        -h      Human readable sizes (1K 243M 2G)
        --group-directories-first
        -S      Sort by size
        -X      Sort by extension
        -v      Sort by version
        -t      Sort by mtime
        -tc     Sort by ctime
        -tu     Sort by atime
        -r      Reverse sort order
        -w N    Format N columns wide
        --color[={always,never,auto}]
+ '[' -z '' ']'
++ ls -A -I lost+found /etc/openldap//slapd.d
ls: unrecognized option: I
BusyBox v1.36.1 (2024-05-21 13:38:37 UTC) multi-call binary.

Usage: ls [-1AaCxdLHRFplinshrSXvctu] [-w WIDTH] [FILE]...

List directory contents

        -1      One column output
        -a      Include names starting with .
        -A      Like -a, but exclude . and ..
        -x      List by lines
        -d      List directory names, not contents
        -L      Follow symlinks
        -H      Follow symlinks on command line
        -R      Recurse
        -p      Append / to directory names
        -F      Append indicator (one of */=@|) to names
        -l      Long format
        -i      List inode numbers
        -n      List numeric UIDs and GIDs instead of names
        -s      List allocated blocks
        -lc     List ctime
        -lu     List atime
        --full-time     List full date/time
        -h      Human readable sizes (1K 243M 2G)
        --group-directories-first
        -S      Sort by size
        -X      Sort by extension
        -v      Sort by version
        -t      Sort by mtime
        -tc     Sort by ctime
        -tu     Sort by atime
        -r      Reverse sort order
        -w N    Format N columns wide
        --color[={always,never,auto}]
+ '[' -z '' ']'
+ new_install=true
+ print_warn 'First time install detected'
+ output_off
+ '[' true = true ']'
+ set +x
2024-06-11.13:13:19 [WARN] /etc/cont-init.d/10-openldap ** [openldap] First time install detected
+ '[' nis = rfc2307bis ']'
+ print_notice 'Using NIS schema type'
+ output_off
+ '[' true = true ']'
+ set +x
2024-06-11.13:13:19 [NOTICE] /etc/cont-init.d/10-openldap ** [openldap] Using NIS schema type
+ SCHEMA_TYPE=nis
+ get_ldap_base_dn
+ '[' -z dc=qiscus,dc=com ']'
+ print_debug 'Create core openldap configuration'
+ output_off
+ '[' true = true ']'
+ set +x
2024-06-11.13:13:19 [DEBUG] /etc/cont-init.d/10-openldap ** [openldap] Create core openldap configuration
+ cat
++ slappasswd -s P@ssw0rd123
Error loading shared library libltdl.so.7: No such file or directory (needed by /usr/sbin/slappasswd)
Error loading shared library libsasl2.so.3: No such file or directory (needed by /usr/sbin/slappasswd)
Error loading shared library libuuid.so.1: No such file or directory (needed by /usr/sbin/slappasswd)
Error loading shared library libsasl2.so.3: No such file or directory (needed by /usr/lib/libldap.so.2)
Error relocating /usr/lib/libldap.so.2: sasl_set_mutex: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_client_step: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_version: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_decode: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_client_init: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_dispose: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_errstring: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_encode: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_errdetail: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_getprop: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_global_listmech: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_setprop: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_client_start: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_client_new: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_server_start: symbol not found
Error relocating /usr/sbin/slappasswd: prop_request: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_listmech: symbol not found
Error relocating /usr/sbin/slappasswd: uuid_generate: symbol not found
Error relocating /usr/sbin/slappasswd: uuid_unparse_lower: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_set_mutex: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_auxprop_getctx: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlopenext: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlexit: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_version: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_dispose: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_setpass: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_seterror: symbol not found
Error relocating /usr/sbin/slappasswd: prop_set: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_checkpass: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_done: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_errdetail: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlclose: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_getprop: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlerror: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_auxprop_add_plugin: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_server_new: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_server_step: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_setprop: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_server_init: symbol not found
Error relocating /usr/sbin/slappasswd: prop_getnames: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlsym: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlinit: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlsetsearchpath: symbol not found
++ slappasswd -s P@ssw0rd123
Error loading shared library libltdl.so.7: No such file or directory (needed by /usr/sbin/slappasswd)
Error loading shared library libsasl2.so.3: No such file or directory (needed by /usr/sbin/slappasswd)
Error loading shared library libuuid.so.1: No such file or directory (needed by /usr/sbin/slappasswd)
Error loading shared library libsasl2.so.3: No such file or directory (needed by /usr/lib/libldap.so.2)
Error relocating /usr/lib/libldap.so.2: sasl_set_mutex: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_client_step: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_version: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_decode: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_client_init: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_dispose: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_errstring: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_encode: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_errdetail: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_getprop: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_global_listmech: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_setprop: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_client_start: symbol not found
Error relocating /usr/lib/libldap.so.2: sasl_client_new: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_server_start: symbol not found
Error relocating /usr/sbin/slappasswd: prop_request: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_listmech: symbol not found
Error relocating /usr/sbin/slappasswd: uuid_generate: symbol not found
Error relocating /usr/sbin/slappasswd: uuid_unparse_lower: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_set_mutex: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_auxprop_getctx: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlopenext: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlexit: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_version: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_dispose: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_setpass: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_seterror: symbol not found
Error relocating /usr/sbin/slappasswd: prop_set: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_checkpass: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_done: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_errdetail: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlclose: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_getprop: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlerror: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_auxprop_add_plugin: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_server_new: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_server_step: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_setprop: symbol not found
Error relocating /usr/sbin/slappasswd: sasl_server_init: symbol not found
Error relocating /usr/sbin/slappasswd: prop_getnames: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlsym: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlinit: symbol not found
Error relocating /usr/sbin/slappasswd: lt_dlsetsearchpath: symbol not found
+ set +e
+ /usr/bin/schema2ldif /etc/openldap//schema/core.schema
/assets/functions/10-openldap: line 313: /usr/bin/schema2ldif: cannot execute: required file not found
+ /usr/bin/schema2ldif /etc/openldap//schema/cosine.schema
/assets/functions/10-openldap: line 314: /usr/bin/schema2ldif: cannot execute: required file not found
+ /usr/bin/schema2ldif /etc/openldap//schema/inetorgperson.schema
/assets/functions/10-openldap: line 315: /usr/bin/schema2ldif: cannot execute: required file not found
+ /usr/bin/schema2ldif /etc/openldap//schema/nis.schema
/assets/functions/10-openldap: line 316: /usr/bin/schema2ldif: cannot execute: required file not found
+ silent slapadd -n 0 -F /etc/openldap//slapd.d -l /tmp/slapd.ldif
+ '[' TRUE = true ']'
+ '[' '' = true ']'
+ '[' debug = debug ']'
+ slapadd -n 0 -F /etc/openldap//slapd.d -l /tmp/slapd.ldif
Error loading shared library libltdl.so.7: No such file or directory (needed by /usr/sbin/slapadd)
Error loading shared library libsasl2.so.3: No such file or directory (needed by /usr/sbin/slapadd)
Error loading shared library libuuid.so.1: No such file or directory (needed by /usr/sbin/slapadd)
Error loading shared library libsasl2.so.3: No such file or directory (needed by /usr/lib/libldap.so.2)

@tiredofit
Copy link
Owner

Interesting. That doesn't seem right to me - I've just built a local copy on my system and fixed the issue that was happening with ls - it was an old and dirty way of detecting if there were files in directories and I've long built functions to support that. Wondering if this resolves everything else.

Best to start off with fresh data/config directories (eg empty)

docker.io/tiredofit/openldap:2.6-develop

@joergmschulz
Copy link

by building a new image including
package install libsasl &&
package install libuuid &&
in the dockerfile, I avoid these messages

@tiredofit
Copy link
Owner

Try 2.6-7.6.10 to see if this is solved once and for all..

@joergmschulz
Copy link

joergmschulz commented Jun 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants