-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
hi,
i have an error when starting the container :
/usr/lib/python3.12/site-packages/starlette/config.py:60: UserWarning: Config file '.env' not found.
warnings.warn(f"Config file '{env_file}' not found.")
Traceback (most recent call last):
File "/usr/lib/python3.12/site-packages/ldap_ui/app.py", line 62, in <module>
with ldap_connect() as connection:
^^^^^^^^^^^^^^
File "/usr/lib/python3.12/contextlib.py", line 137, in __enter__
return next(self.gen)
^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/ldap_ui/ldap_helpers.py", line 51, in ldap_connect
connection = initialize(url)
^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/ldap/functions.py", line 91, in initialize
return LDAPObject(
^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/ldap/ldapobject.py", line 88, in __init__
self._l = ldap.functions._ldap_function_call(ldap._ldap_module_lock,_ldap.initialize,uri)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/ldap/functions.py", line 52, in _ldap_function_call
result = func(*args,**kwargs)
^^^^^^^^^^^^^^^^^^^^
ldap.LDAPError: (0, 'Error')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/ldap-ui", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/lib/python3.12/site-packages/click/core.py", line 1161, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/click/core.py", line 1082, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/ldap_ui/__main__.py", line 79, in main
uvicorn.run(
File "/usr/lib/python3.12/site-packages/uvicorn/main.py", line 579, in run
server.run()
File "/usr/lib/python3.12/site-packages/uvicorn/server.py", line 66, in run
return asyncio.run(self.serve(sockets=sockets))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 195, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/base_events.py", line 691, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/uvicorn/server.py", line 70, in serve
await self._serve(sockets)
File "/usr/lib/python3.12/site-packages/uvicorn/server.py", line 77, in _serve
config.load()
File "/usr/lib/python3.12/site-packages/uvicorn/config.py", line 435, in load
self.loaded_app = import_from_string(self.app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/uvicorn/importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 999, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/usr/lib/python3.12/site-packages/ldap_ui/app.py", line 74, in <module>
LOG.error(ldap_exception_message(err), exc_info=err)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/ldap_ui/app.py", line 54, in ldap_exception_message
if "info" in args:
^^^^^^^^^^^^^^
TypeError: argument of type 'int' is not iterable
here is my docker-compose file :
networks:
proxy:
external: true
ldap:
name: ldap
driver: bridge
attachable: true
internal: true
services:
azuread-ldap:
image: ahaen/azuread-ldap-wrapper:latest
restart: always
container_name: azuread-ldap
hostname: azuread-ldap
environment:
TZ: "Europe/Paris"
AZURE_TENANTID: "*********"
AZURE_APP_ID: "******"
AZURE_APP_SECRET: "****"
LDAP_DOMAIN: "domain.fr"
LDAP_BINDUSER: "ldapsearch|ldapsearch123"
LDAP_DEBUG: "false"
GRAPH_IGNORE_MFA_ERRORS: "true"
LDAP_ANONYMOUSBIND: "all"
# - PUID: 1000
# - PGID: 1000
ports:
- 389:13389
volumes:
- /docker/azuread-ldap/data:/app/.cache
networks:
ldap:
labels:
- traefik.enable=true
ldap-ui:
image: dnknth/ldap-ui:latest
restart: always
container_name: ldap-ui
hostname: ldap-ui
environment:
- BASE_DN="DC=value-info,DC=fr"
- LDAP_URL="ldap://azuread-ldap"
networks:
ldap:
proxy:
labels:
- traefik.enable=true
- traefik.http.routers.ldap-ui.rule=Host(`lldap.domaine.fr`)
- traefik.http.routers.ldap-ui.entrypoints=websecure
- traefik.http.routers.ldap-ui.service=ldap-ui
- traefik.http.routers.ldap-ui.middlewares=ip-limited@file
- traefik.http.routers.ldap-ui.tls=true
- traefik.http.routers.ldap-ui.tls.certresolver=letsencrypt
- traefik.http.services.ldap-ui.loadbalancer.healthcheck.path=/
- traefik.http.services.ldap-ui.loadbalancer.healthcheck.interval=30s
- traefik.http.services.ldap-ui.loadbalancer.healthcheck.timeout=10s
- traefik.http.services.ldap-ui.loadbalancer.server.port=5000
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels