B
B
Bekkazy2019-08-02 13:07:04
linux
Bekkazy, 2019-08-02 13:07:04

How to set a password when installing python-ldap?

When raising the docker container, it hangs at the moment the password is set.

Get:40 http://deb.debian.org/debian stretch/main amd64 valgrind-dbg amd64 1:3.12.0~svn20160714-1+b1 [32.2 MB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 128 MB in 15s (8082 kB/s)
Selecting previously unselected package libodbc1:amd64.
(Reading database ... 30576 files and directories currently installed.)
Preparing to unpack .../00-libodbc1_2.3.4-1_amd64.deb ...
Unpacking libodbc1:amd64 (2.3.4-1) ...
Selecting previously unselected package libwrap0:amd64.
Preparing to unpack .../01-libwrap0_7.6.q-26_amd64.deb ...
Unpacking libwrap0:amd64 (7.6.q-26) ...
Selecting previously unselected package psmisc.
Preparing to unpack .../02-psmisc_22.21-2.1+b2_amd64.deb ...
Unpacking psmisc (22.21-2.1+b2) ...
Selecting previously unselected package slapd.
Preparing to unpack .../03-slapd_2.4.44+dfsg-5+deb9u2_amd64.deb ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Configuring slapd
-----------------

Please enter the password for the admin entry in your LDAP directory.

Administrator password:

After entering the password, it does not react in any way.
Dockerfile
# Base image
FROM python:3
# We create an /app directory within our
# image that will hold our application source
# files
RUN mkdir /hdsgui
# We copy everything in the root directory
# into our /app directory
ADD . /hdsgui
# We specify that we now wish to execute
# any further commands inside our /app
# directory
WORKDIR /hdsgui
# Install dependecies
RUN apt-get update
RUN apt-get install -y build-essential python3-dev python2.7-dev libldap2-dev libsasl2-dev slapd ldap-utils python-tox lcov valgrind
# Upgrade pip version
# RUN pip install --upgrade pip
# Install all dependencies
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 8282
# Start command
CMD [ "python", "manage.py", "runserver", "0.0 .0.0:8282"]
How can I solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TyzhSysAdmin, 2019-08-02
@POS_troi

Smoke out the docks on ldap lib and find out which env supports, if it doesn't support then add lib and add env.
Debage

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question