Giter VIP home page Giter VIP logo

conan-ldap-authentication's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

byvictorrr

conan-ldap-authentication's Issues

Is conan-ldap-authentication still alive?

I wanted to enable conan_server ldap authentication through the conan recommended conan-ldap-authentication plugin, but I don't get the plugin to connect with the ldap server at all, I always get from the conan_server output:

conan_server


Using config: /users//.conan_server/server.conf
Storage: /ws//conan
Public URL: https://localhost:9300/v1
PORT: 9300


Bottle v0.12.18 server starting up (using WSGIRefServer())...
Listening on http://0.0.0.0:9300/
Hit Ctrl-C to quit.

127.0.0.1 - - [04/Jun/2020 13:18:36] "GET /v1/ping HTTP/1.0" 200 0
WARNING:root:{'desc': "Can't contact LDAP server", 'errno': 107, 'info': 'Transport endpoint is not connected'}
127.0.0.1 - - [04/Jun/2020 13:18:36] "GET /v1/users/authenticate HTTP/1.0" 401 22

I was trying to figure out how the plugin set the certs to verify the ldap server certificates, and found nothing about it. I noticed the plugin is based on pyldap, and indluces pyldap as a requirement, but looking at pyldap-doc, what one needs to use instead is python-ldap, hopefully >= 3.0.0. Then I noticed no commits have happened to the plugin for quite a while.

So I'm wondering if this conan ldap authnticator is still alive, or if there's an alternative out there, or if one now a days one needs to write its own...

Plugin installation failing because not already installed

Python Version: 3.10
Installed packages: libsasl2-dev libldap2-dev libssl-dev
Installed Python packages: conan python-ldap

When I install this plugin to an already existing Conan server the installation fails with this message:

Collecting conan_ldap_authentication
  Downloading conan_ldap_authentication-0.3.0.tar.gz (7.2 kB)
  Preparing metadata (setup.py) ... done
Collecting python-ldap>=3.2.0
  Downloading python-ldap-3.4.0.tar.gz (376 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 376.2/376.2 KB 17.6 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting configparser>=4.0.2
  Downloading configparser-5.2.0-py3-none-any.whl (19 kB)
Requirement already satisfied: conan>=1.19.0 in /usr/local/lib/python3.10/site-packages (from conan_ldap_authentication) (1.47.0)
Requirement already satisfied: python-dateutil<3,>=2.7.0 in /usr/local/lib/python3.10/site-packages (from conan>=1.19.0->conan_ldap_authentication) (2.8.2)
Requirement already satisfied: Jinja2<4.0.0,>=3.0 in /usr/local/lib/python3.10/site-packages (from conan>=1.19.0->conan_ldap_authentication) (3.1.1)
Requirement already satisfied: requests<3.0.0,>=2.25 in /usr/local/lib/python3.10/site-packages (from conan>=1.19.0->conan_ldap_authentication) (2.27.1)
Requirement already satisfied: node-semver==0.6.1 in /usr/local/lib/python3.10/site-packages (from conan>=1.19.0->conan_ldap_authentication) (0.6.1)
Requirement already satisfied: urllib3<1.27,>=1.26.6 in /usr/local/lib/python3.10/site-packages (from conan>=1.19.0->conan_ldap_authentication) (1.26.9)
Requirement already satisfied: six<=1.16.0,>=1.10.0 in /usr/local/lib/python3.10/site-packages (from conan>=1.19.0->conan_ldap_authentication) (1.16.0)
Requirement already satisfied: patch-ng<1.18,>=1.17.4 in /usr/local/lib/python3.10/site-packages (from conan>=1.19.0->conan_ldap_authentication) (1.17.4)
Requirement already satisfied: distro<=1.6.0,>=1.0.2 in /usr/local/lib/python3.10/site-packages (from conan>=1.19.0->conan_ldap_authentication) (1.6.0)
Requirement already satisfied: bottle<0.13,>=0.12.8 in /usr/local/lib/python3.10/site-packages (from conan>=1.19.0->conan_ldap_authentication) (0.12.19)
Requirement already satisfied: tqdm<5,>=4.28.1 in /usr/local/lib/python3.10/site-packages (from conan>=1.19.0->conan_ldap_authentication) (4.63.1)
Requirement already satisfied: pluginbase>=0.5 in /usr/local/lib/python3.10/site-packages (from conan>=1.19.0->conan_ldap_authentication) (1.0.1)
Requirement already satisfied: PyYAML<6.0,>=3.11 in /usr/local/lib/python3.10/site-packages (from conan>=1.19.0->conan_ldap_authentication) (5.4.1)
Requirement already satisfied: pygments<3.0,>=2.0 in /usr/local/lib/python3.10/site-packages (from conan>=1.19.0->conan_ldap_authentication) (2.11.2)
Requirement already satisfied: fasteners>=0.14.1 in /usr/local/lib/python3.10/site-packages (from conan>=1.19.0->conan_ldap_authentication) (0.17.3)
Requirement already satisfied: colorama<0.5.0,>=0.3.3 in /usr/local/lib/python3.10/site-packages (from conan>=1.19.0->conan_ldap_authentication) (0.4.4)
Requirement already satisfied: PyJWT<2.0.0,>=1.4.0 in /usr/local/lib/python3.10/site-packages (from conan>=1.19.0->conan_ldap_authentication) (1.7.1)
Collecting pyasn1>=0.3.7
  Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.1/77.1 KB 7.2 MB/s eta 0:00:00
Collecting pyasn1-modules>=0.1.5
  Downloading pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.3/155.3 KB 9.8 MB/s eta 0:00:00
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/site-packages (from Jinja2<4.0.0,>=3.0->conan>=1.19.0->conan_ldap_authentication) (2.1.1)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/site-packages (from requests<3.0.0,>=2.25->conan>=1.19.0->conan_ldap_authentication) (3.3)
Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.10/site-packages (from requests<3.0.0,>=2.25->conan>=1.19.0->conan_ldap_authentication) (2.0.12)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/site-packages (from requests<3.0.0,>=2.25->conan>=1.19.0->conan_ldap_authentication) (2021.10.8)
Building wheels for collected packages: conan_ldap_authentication, python-ldap
  Building wheel for conan_ldap_authentication (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [51 lines of output]
      /usr/local/lib/python3.10/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
        warnings.warn(
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib
      creating build/lib/conan
      copying conan/__init__.py -> build/lib/conan
      copying conan/ldap_authentication.py -> build/lib/conan
      creating build/lib/conan/test
      copying conan/test/test_authentication.py -> build/lib/conan/test
      copying conan/test/__init__.py -> build/lib/conan/test
      copying conan/test/test_conan_authentication.py -> build/lib/conan/test
      copying conan/test/configuration_file.py -> build/lib/conan/test
      copying conan/requirements_test.txt -> build/lib/conan
      copying conan/requirements.txt -> build/lib/conan
      installing to build/bdist.linux-x86_64/wheel
      running install
      running install_lib
      creating build/bdist.linux-x86_64
      creating build/bdist.linux-x86_64/wheel
      creating build/bdist.linux-x86_64/wheel/conan
      creating build/bdist.linux-x86_64/wheel/conan/test
      copying build/lib/conan/test/test_authentication.py -> build/bdist.linux-x86_64/wheel/conan/test
      copying build/lib/conan/test/__init__.py -> build/bdist.linux-x86_64/wheel/conan/test
      copying build/lib/conan/test/test_conan_authentication.py -> build/bdist.linux-x86_64/wheel/conan/test
      copying build/lib/conan/test/configuration_file.py -> build/bdist.linux-x86_64/wheel/conan/test
      copying build/lib/conan/requirements_test.txt -> build/bdist.linux-x86_64/wheel/conan
      copying build/lib/conan/__init__.py -> build/bdist.linux-x86_64/wheel/conan
      copying build/lib/conan/ldap_authentication.py -> build/bdist.linux-x86_64/wheel/conan
      copying build/lib/conan/requirements.txt -> build/bdist.linux-x86_64/wheel/conan
      running install_data
      creating build/bdist.linux-x86_64/wheel/conan_ldap_authentication-0.3.0.data
      creating build/bdist.linux-x86_64/wheel/conan_ldap_authentication-0.3.0.data/data
      creating build/bdist.linux-x86_64/wheel/root
      creating build/bdist.linux-x86_64/wheel/root/.conan_server
      creating build/bdist.linux-x86_64/wheel/root/.conan_server/plugins
      creating build/bdist.linux-x86_64/wheel/root/.conan_server/plugins/authenticator
      copying conan/ldap_authentication.py -> build/bdist.linux-x86_64/wheel/root/.conan_server/plugins/authenticator
      running install_egg_info
      running egg_info
      writing conan_ldap_authentication.egg-info/PKG-INFO
      writing dependency_links to conan_ldap_authentication.egg-info/dependency_links.txt
      writing requirements to conan_ldap_authentication.egg-info/requires.txt
      writing top-level names to conan_ldap_authentication.egg-info/top_level.txt
      reading manifest file 'conan_ldap_authentication.egg-info/SOURCES.txt'
      writing manifest file 'conan_ldap_authentication.egg-info/SOURCES.txt'
      Copying conan_ldap_authentication.egg-info to build/bdist.linux-x86_64/wheel/conan_ldap_authentication-0.3.0-py3.10.egg-info
      running install_scripts
      error: [Errno 2] No such file or directory: '/root/.conan_server/plugins/authenticator/ldap_authentication.py'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for conan_ldap_authentication
  Running setup.py clean for conan_ldap_authentication
  Building wheel for python-ldap (pyproject.toml) ... done
  Created wheel for python-ldap: filename=python_ldap-3.4.0-cp310-cp310-linux_x86_64.whl size=316500 sha256=353a24833bf5ee1eef0971f7e2498c2512c8f5ac5e56cc01f656c91d4e3b01b4
  Stored in directory: /root/.cache/pip/wheels/a6/f9/78/3545434582aa1df2498d7eae4727f25dc358b18eea5a760ddc
Successfully built python-ldap
Failed to build conan_ldap_authentication
Installing collected packages: pyasn1, pyasn1-modules, configparser, python-ldap, conan_ldap_authentication
  Running setup.py install for conan_ldap_authentication ... done
  DEPRECATION: conan_ldap_authentication was installed using the legacy 'setup.py install' method, because a wheel could not be built for it. A possible replacement is to fix the wheel build issue reported above. Discussion can be found at https://github.com/pypa/pip/issues/8368
Successfully installed conan_ldap_authentication-0.3.0 configparser-5.2.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 python-ldap-3.4.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

This makes no sense because it says the plugin file is not there but why should it be there when I just want to install the plugin??

PIP package incomplete

Referring to issue #20
I was unable to re-open this issue as it was closed by a collaborator and therefore cannot be reopened by the issuer.

The pip package for version 0.4.0 has a missing file.

Collecting conan_ldap_authentication
  Downloading https://files.pythonhosted.org/packages/74/cf/4af6ac2d036d65ebfe4481198089414473f4b01f4fa2527b52069a3563f1/conan_ldap_authentication-0.4.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-w65df3tn/conan-ldap-authentication/setup.py", line 131, in <module>
        install_requires=Requirements.get(),
      File "/tmp/pip-install-w65df3tn/conan-ldap-authentication/setup.py", line 34, in get
        with open(Requirements.__requirements_path) as req_file:
      File "/usr/local/lib/python3.7/codecs.py", line 898, in open
        file = builtins.open(filename, mode, buffering)
    FileNotFoundError: [Errno 2] No such file or directory: 'conan_ldap/requirements.txt'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-w65df3tn/conan-ldap-authentication/
You are using pip version 19.0.1, however version 22.0.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The command '/bin/sh -c pip install conan_ldap_authentication' returned a non-zero code: 1

Conan Server cannot load ldap plugin

Hello,

I'm trying to set up a conan server with ldap authentication, but I find this error:

Error loading authenticator plugin 'ldap_authentication'
Traceback (most recent call last):
  File "/usr/bin/conan_server", line 11, in <module>
    load_entry_point('conan==1.1.0.dev0', 'console_scripts', 'conan_server')()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 570, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2755, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2409, in load
    return self.resolve()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2415, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python2.7/site-packages/conans/conan_server.py", line 1, in <module>
    from conans.server.server_launcher import main
  File "/usr/lib/python2.7/site-packages/conans/server/server_launcher.py", line 54, in <module>
    launcher = ServerLauncher()
  File "/usr/lib/python2.7/site-packages/conans/server/server_launcher.py", line 26, in __init__
    authenticator = load_authentication_plugin(server_folder, custom_auth)
  File "/usr/lib/python2.7/site-packages/conans/server/plugin_loader.py", line 10, in load_authentication_plugin
    auth = plugin_source.load_plugin(plugin_name).get_class()
  File "/usr/lib/python2.7/site-packages/pluginbase.py", line 273, in load_plugin
    globals(), {}, ['__name__'])
  File "/usr/lib/python2.7/site-packages/pluginbase.py", line 410, in plugin_import
    fromlist, level)
ImportError: No module named ldap_authentication

The file server.conf is correctly configured:

custom_authenticator: ldap_authentication

and the ldap_authentication.conf is correctly configured too:

[ldap]
LDAP server address
host: ldap://127.0.0.1
Distinguished name (DN) of the entry
distinguished_name: dc=petrosoftdesign,dc=com

Do I need to do anything else for the conan server to recognise the ldap plugin?

Plugin is unbuildable

Trying to make this plugin work in Docker (version 20.10.17) on Ubuntu 20.04.
It looks like there is different stuff deprecated/removed.

Dockerfile (as in #20 (comment)):

FROM conanio/conan_server
RUN apk add gcc openldap-dev musl-dev
RUN pip install conan_ldap_authentication

Build log:

Building app
Sending build context to Docker daemon  4.096kB
Step 1/3 : FROM conanio/conan_server
[...]
Step 2/3 : RUN apk add gcc openldap-dev musl-dev
[...]
Step 3/3 : RUN pip install conan_ldap_authentication
 ---> Running in 2d09303ece6f
Collecting conan_ldap_authentication
  Downloading conan_ldap_authentication-0.4.1.tar.gz (6.6 kB)
Collecting python-ldap>=3.2.0
  Downloading python-ldap-3.4.2.tar.gz (378 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Collecting configparser>=4.0.2
  Downloading configparser-5.2.0-py3-none-any.whl (19 kB)
Requirement already satisfied: conan>=1.19.0 in /usr/lib/python3.9/site-packages (from conan_ldap_authentication) (1.50.0)
Requirement already satisfied: requests<3.0.0,>=2.25 in /usr/lib/python3.9/site-packages (from conan>=1.19.0->conan_ldap_authentication) (2.26.0)
Requirement already satisfied: urllib3<1.27,>=1.26.6 in /usr/lib/python3.9/site-packages (from conan>=1.19.0->conan_ldap_authentication) (1.26.7)
Requirement already satisfied: colorama<0.5.0,>=0.3.3 in /usr/lib/python3.9/site-packages (from conan>=1.19.0->conan_ldap_authentication) (0.4.4)
Requirement already satisfied: PyYAML<=6.0,>=3.11 in /usr/lib/python3.9/site-packages (from conan>=1.19.0->conan_ldap_authentication) (6.0)
Requirement already satisfied: patch-ng<1.18,>=1.17.4 in /usr/lib/python3.9/site-packages (from conan>=1.19.0->conan_ldap_authentication) (1.17.4)
Requirement already satisfied: fasteners>=0.14.1 in /usr/lib/python3.9/site-packages (from conan>=1.19.0->conan_ldap_authentication) (0.17.3)
Requirement already satisfied: six<=1.16.0,>=1.10.0 in /usr/lib/python3.9/site-packages (from conan>=1.19.0->conan_ldap_authentication) (1.16.0)
Requirement already satisfied: node-semver==0.6.1 in /usr/lib/python3.9/site-packages (from conan>=1.19.0->conan_ldap_authentication) (0.6.1)
Requirement already satisfied: pygments<3.0,>=2.0 in /usr/lib/python3.9/site-packages (from conan>=1.19.0->conan_ldap_authentication) (2.12.0)
Requirement already satisfied: tqdm<5,>=4.28.1 in /usr/lib/python3.9/site-packages (from conan>=1.19.0->conan_ldap_authentication) (4.64.0)
Requirement already satisfied: python-dateutil<3,>=2.7.0 in /usr/lib/python3.9/site-packages (from conan>=1.19.0->conan_ldap_authentication) (2.8.2)
Requirement already satisfied: bottle<0.13,>=0.12.8 in /usr/lib/python3.9/site-packages (from conan>=1.19.0->conan_ldap_authentication) (0.12.21)
Requirement already satisfied: pluginbase>=0.5 in /usr/lib/python3.9/site-packages (from conan>=1.19.0->conan_ldap_authentication) (1.0.1)
Requirement already satisfied: PyJWT<3.0.0,>=2.4.0 in /usr/lib/python3.9/site-packages (from conan>=1.19.0->conan_ldap_authentication) (2.4.0)
Requirement already satisfied: Jinja2<4.0.0,>=3.0 in /usr/lib/python3.9/site-packages (from conan>=1.19.0->conan_ldap_authentication) (3.1.2)
Requirement already satisfied: distro<=1.6.0,>=1.0.2 in /usr/lib/python3.9/site-packages (from conan>=1.19.0->conan_ldap_authentication) (1.6.0)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/lib/python3.9/site-packages (from Jinja2<4.0.0,>=3.0->conan>=1.19.0->conan_ldap_authentication) (2.1.1)
Collecting pyasn1-modules>=0.1.5
  Downloading pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting pyasn1>=0.3.7
  Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3.9/site-packages (from requests<3.0.0,>=2.25->conan>=1.19.0->conan_ldap_authentication) (2020.12.5)
Requirement already satisfied: charset_normalizer~=2.0.0 in /usr/lib/python3.9/site-packages (from requests<3.0.0,>=2.25->conan>=1.19.0->conan_ldap_authentication) (2.0.7)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3.9/site-packages (from requests<3.0.0,>=2.25->conan>=1.19.0->conan_ldap_authentication) (3.3)
Using legacy 'setup.py install' for conan-ldap-authentication, since package 'wheel' is not installed.
Building wheels for collected packages: python-ldap
  Building wheel for python-ldap (PEP 517): started
  Building wheel for python-ldap (PEP 517): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /usr/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmptk1fn9pc
       cwd: /tmp/pip-install-g2irzebc/python-ldap_5b4a8c63052a44d5959884ef178e6355
  Complete output (112 lines):
  /tmp/pip-build-env-_c0r34t6/overlay/lib/python3.9/site-packages/setuptools/config/setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
    warnings.warn(msg, warning_class)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-cpython-39
  copying Lib/ldapurl.py -> build/lib.linux-x86_64-cpython-39
  copying Lib/ldif.py -> build/lib.linux-x86_64-cpython-39
  creating build/lib.linux-x86_64-cpython-39/ldap
  copying Lib/ldap/cidict.py -> build/lib.linux-x86_64-cpython-39/ldap
  copying Lib/ldap/ldapobject.py -> build/lib.linux-x86_64-cpython-39/ldap
  copying Lib/ldap/async.py -> build/lib.linux-x86_64-cpython-39/ldap
  copying Lib/ldap/dn.py -> build/lib.linux-x86_64-cpython-39/ldap
  copying Lib/ldap/logger.py -> build/lib.linux-x86_64-cpython-39/ldap
  copying Lib/ldap/__init__.py -> build/lib.linux-x86_64-cpython-39/ldap
  copying Lib/ldap/asyncsearch.py -> build/lib.linux-x86_64-cpython-39/ldap
  copying Lib/ldap/pkginfo.py -> build/lib.linux-x86_64-cpython-39/ldap
  copying Lib/ldap/syncrepl.py -> build/lib.linux-x86_64-cpython-39/ldap
  copying Lib/ldap/resiter.py -> build/lib.linux-x86_64-cpython-39/ldap
  copying Lib/ldap/functions.py -> build/lib.linux-x86_64-cpython-39/ldap
  copying Lib/ldap/sasl.py -> build/lib.linux-x86_64-cpython-39/ldap
  copying Lib/ldap/constants.py -> build/lib.linux-x86_64-cpython-39/ldap
  copying Lib/ldap/filter.py -> build/lib.linux-x86_64-cpython-39/ldap
  copying Lib/ldap/compat.py -> build/lib.linux-x86_64-cpython-39/ldap
  copying Lib/ldap/modlist.py -> build/lib.linux-x86_64-cpython-39/ldap
  creating build/lib.linux-x86_64-cpython-39/ldap/controls
  copying Lib/ldap/controls/simple.py -> build/lib.linux-x86_64-cpython-39/ldap/controls
  copying Lib/ldap/controls/sessiontrack.py -> build/lib.linux-x86_64-cpython-39/ldap/controls
  copying Lib/ldap/controls/vlv.py -> build/lib.linux-x86_64-cpython-39/ldap/controls
  copying Lib/ldap/controls/sss.py -> build/lib.linux-x86_64-cpython-39/ldap/controls
  copying Lib/ldap/controls/libldap.py -> build/lib.linux-x86_64-cpython-39/ldap/controls
  copying Lib/ldap/controls/__init__.py -> build/lib.linux-x86_64-cpython-39/ldap/controls
  copying Lib/ldap/controls/ppolicy.py -> build/lib.linux-x86_64-cpython-39/ldap/controls
  copying Lib/ldap/controls/psearch.py -> build/lib.linux-x86_64-cpython-39/ldap/controls
  copying Lib/ldap/controls/deref.py -> build/lib.linux-x86_64-cpython-39/ldap/controls
  copying Lib/ldap/controls/pagedresults.py -> build/lib.linux-x86_64-cpython-39/ldap/controls
  copying Lib/ldap/controls/pwdpolicy.py -> build/lib.linux-x86_64-cpython-39/ldap/controls
  copying Lib/ldap/controls/readentry.py -> build/lib.linux-x86_64-cpython-39/ldap/controls
  copying Lib/ldap/controls/openldap.py -> build/lib.linux-x86_64-cpython-39/ldap/controls
  creating build/lib.linux-x86_64-cpython-39/ldap/extop
  copying Lib/ldap/extop/passwd.py -> build/lib.linux-x86_64-cpython-39/ldap/extop
  copying Lib/ldap/extop/__init__.py -> build/lib.linux-x86_64-cpython-39/ldap/extop
  copying Lib/ldap/extop/dds.py -> build/lib.linux-x86_64-cpython-39/ldap/extop
  copying Lib/ldap/extop/disconnection.py -> build/lib.linux-x86_64-cpython-39/ldap/extop
  creating build/lib.linux-x86_64-cpython-39/ldap/schema
  copying Lib/ldap/schema/subentry.py -> build/lib.linux-x86_64-cpython-39/ldap/schema
  copying Lib/ldap/schema/__init__.py -> build/lib.linux-x86_64-cpython-39/ldap/schema
  copying Lib/ldap/schema/models.py -> build/lib.linux-x86_64-cpython-39/ldap/schema
  copying Lib/ldap/schema/tokenizer.py -> build/lib.linux-x86_64-cpython-39/ldap/schema
  creating build/lib.linux-x86_64-cpython-39/slapdtest
  copying Lib/slapdtest/_slapdtest.py -> build/lib.linux-x86_64-cpython-39/slapdtest
  copying Lib/slapdtest/__init__.py -> build/lib.linux-x86_64-cpython-39/slapdtest
  running egg_info
  writing Lib/python_ldap.egg-info/PKG-INFO
  writing dependency_links to Lib/python_ldap.egg-info/dependency_links.txt
  writing requirements to Lib/python_ldap.egg-info/requires.txt
  writing top-level names to Lib/python_ldap.egg-info/top_level.txt
  reading manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  no previously-included directories found matching 'Doc/.build'
  adding license file 'LICENCE'
  writing manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
  /tmp/pip-build-env-_c0r34t6/overlay/lib/python3.9/site-packages/setuptools/command/build_py.py:153: SetuptoolsDeprecationWarning:     Installing 'slapdtest.certs' as data is deprecated, please list it in `packages`.
      !!


      ############################
      # Package would be ignored #
      ############################
      Python recognizes 'slapdtest.certs' as an importable package,
      but it is not listed in the `packages` configuration of setuptools.

      'slapdtest.certs' has been automatically added to the distribution only
      because it may contain data files, but this behavior is likely to change
      in future versions of setuptools (and therefore is considered deprecated).

      Please make sure that 'slapdtest.certs' is included as a package by using
      the `packages` configuration field or the proper discovery methods
      (for example by using `find_namespace_packages(...)`/`find_namespace:`
      instead of `find_packages(...)`/`find:`).

      You can read more about "package discovery" and "data files" on setuptools
      documentation page.


  !!

    check.warn(importable)
  creating build/lib.linux-x86_64-cpython-39/slapdtest/certs
  copying Lib/slapdtest/certs/README -> build/lib.linux-x86_64-cpython-39/slapdtest/certs
  copying Lib/slapdtest/certs/ca.conf -> build/lib.linux-x86_64-cpython-39/slapdtest/certs
  copying Lib/slapdtest/certs/ca.pem -> build/lib.linux-x86_64-cpython-39/slapdtest/certs
  copying Lib/slapdtest/certs/client.conf -> build/lib.linux-x86_64-cpython-39/slapdtest/certs
  copying Lib/slapdtest/certs/client.key -> build/lib.linux-x86_64-cpython-39/slapdtest/certs
  copying Lib/slapdtest/certs/client.pem -> build/lib.linux-x86_64-cpython-39/slapdtest/certs
  copying Lib/slapdtest/certs/gencerts.sh -> build/lib.linux-x86_64-cpython-39/slapdtest/certs
  copying Lib/slapdtest/certs/gennssdb.sh -> build/lib.linux-x86_64-cpython-39/slapdtest/certs
  copying Lib/slapdtest/certs/server.conf -> build/lib.linux-x86_64-cpython-39/slapdtest/certs
  copying Lib/slapdtest/certs/server.key -> build/lib.linux-x86_64-cpython-39/slapdtest/certs
  copying Lib/slapdtest/certs/server.pem -> build/lib.linux-x86_64-cpython-39/slapdtest/certs
  running build_ext
  building '_ldap' extension
  creating build/temp.linux-x86_64-cpython-39
  creating build/temp.linux-x86_64-cpython-39/Modules
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -DHAVE_SASL -DHAVE_TLS -DLDAPMODULE_VERSION=3.4.2 "-DLDAPMODULE_AUTHOR=python-ldap project" "-DLDAPMODULE_LICENSE=Python style" -IModules -I/usr/include/python3.9 -c Modules/LDAPObject.c -o build/temp.linux-x86_64-cpython-39/Modules/LDAPObject.o
  In file included from Modules/LDAPObject.c:3:
  Modules/common.h:9:10: fatal error: Python.h: No such file or directory
      9 | #include "Python.h"
        |          ^~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for python-ldap
Failed to build python-ldap
ERROR: Could not build wheels for python-ldap which use PEP 517 and cannot be installed directly
The command '/bin/sh -c pip install conan_ldap_authentication' returned a non-zero code: 1
ERROR: Service 'app' failed to build : Build failed
root@ittools:/opt/conan# cat Dockerfile
FROM conanio/conan_server
RUN apk add gcc openldap-dev musl-dev
RUN pip install conan_ldap_authentication

Latest release tag has a misleading typo

The latest tag is 2.0.3 which I believe is a typo from 0.2.3.
This is a bit misleading because:

  1. It looks like plugin is now officially stable
  2. It is different from versions available at pip (where 0.2.3 is the latest)

distinguished_name as described not working

The config

distinguished_name: cn=$username,ou=Users,dc=company,dc=org

did not work for me. Instead I had to use

distinguished_name: [email protected]

I don't know if this is an issue of the plugin, python ldap library or the ldap server itself.
Maybe it would be possible to provide some insight in the plugin documentation?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.