Windoofer
Anmeldungsdatum: 14. März 2016
Beiträge: 148
Wohnort: Maxdorf
|
Hallo an alle hier
ich versuche schon seit Ewigkeiten MurMur über ldap amUnivention an zu binden aber wie man das mit ldap immer kennt, es klappt halt nie so wie man will
zur Umgebung der MurMur Server läuft auf einem Ubuntu 22.04 Server und soll am Univention Corporate Server Version 5 über ldap angebunden werden.
Ich hab es über diese Anleitung probiert https://wiki.mumble.info/wiki/How_to_set_up_an_LDAP_authenticator
Hab dazu > apt-get install curl -y
> apt-get install ldap-utils -y
> apt-get install python3-pip -y
installiert führe ich
ldapsearch -ZZ -x -H ldap://192.168.0.3 -D "cn=mumble,cn=users,dc=heimnetzwerk,dc=intranet" -b cn=groups,dc=heimnetzwerk,dc=intranet -W -s sub '(uid=Mumble)' -LLL
aus
kommt
ldap_start_tls: Connect error (-11)
additional info: (unknown error code) dann hab ich
nano /etc/ldap/ldap.conf
#TLS_CACERT /etc/ssl/certs/ca.crt
TLS_REQCERT never jetzt kommt zwar keine Fehlermeldung mehr aber die Ldapsuche spuckt gar nicht mehr aus nach der Passworteingabe egal hab weiter gemacht
nano /etc/mumble-server.ini
ice="tcp -h 127.0.0.1 -p 6502" hab ich entkommentiert
icesecretread=MySecretIcePass hab mein Passwort dahin geschrieben
icesecretwrite=MySecretIcePass hab mein Passwort dahin geschrieben dann hab ich alles wie in der Anleitung weiter gemacht mit runterladen Ordner und Rechte bis zur Config /etc/mumble-scripts/LDAPauth.ini ;Player configuration
[user]
;If you do not already know what it is just leave it as it is
id_offset = 1000000000
;Reject users if the authenticator experiences an internal error during authentication
reject_on_error = True
;Reject users that are not found when bind_dn is used with non-user credentials.
;Setting this to False will cause a fall-through when the user is not found in LDAP.
reject_on_miss = True
;Ice configuration
[ice]
host = 127.0.0.1
port = 6502
slice = Murmur.ice
secret =
watchdog = 30
; LDAP specific configuration
[ldap]
; Use bind_dn and bind_pass if you use non-user credentials for searches.
; bind_dn = cn=mumble,cn=users,dc=heimnetzwerk,dc=intranet
; bind_pass = Hier steht mein Passwort
users_dn = cn=users,dc=heimnetzwerk,dc=intranet
; Use discover_dn to find the user DN by searching
discover_dn = false
username_attr = uid
number_attr = roomNumber
display_attr = displayName
group_dn = cn=groups,dc=heimnetzwerk,dc=intranet
group_attr = uniqueMember
; Uncomment and set below to provide more info from LDAP
; provide_info = True
; mail_attr = mail
; Uncomment to provide list of registered users from LDAP
; provide_users = True
; Uncomment to use StartTLS without cert check
; use_start_tls = True
;Murmur configuration
[murmur]
;List of virtual server IDs, empty = all
servers =
;Logging configuration
[log]
; Available loglevels: 10 = DEBUG (default) | 20 = INFO | 30 = WARNING | 40 = ERROR
level =
file = LDAPauth.log
[iceraw]
Ice.ThreadPool.Server.Size = 5 Jetzt den Dienst erstellt verlinkt und neugestartet systemctl status mumble-ldapauth.service ergibt dann x mumble-ldapauth.service - LDAP Authentication Service for Mumble Server
Loaded: loaded (/etc/systemd/system/mumble-ldapauth.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2022-09-01 14:02:57 UTC; 6min ago
Docs: https://github.com/mumble-voip/mumble-scripts/issues/19
Process: 200 ExecStart=/usr/local/sbin/LDAPauth.py (code=exited, status=1/FAILURE)
Main PID: 200 (code=exited, status=1/FAILURE)
CPU: 16ms
Sep 01 14:02:57 MurMur systemd[1]: Started LDAP Authentication Service for Mumble Server.
Sep 01 14:02:57 MurMur LDAPauth.py[200]: Traceback (most recent call last):
Sep 01 14:02:57 MurMur LDAPauth.py[200]: File "/usr/local/sbin/LDAPauth.py", line 113, in <module>
Sep 01 14:02:57 MurMur LDAPauth.py[200]: import ldap
Sep 01 14:02:57 MurMur LDAPauth.py[200]: ModuleNotFoundError: No module named 'ldap'
Sep 01 14:02:57 MurMur systemd[1]: mumble-ldapauth.service: Main process exited, code=exited, status=1/FAILURE
Sep 01 14:02:57 MurMur systemd[1]: mumble-ldapauth.service: Failed with result 'exit-code'.
in einem Forum hab ich gelesen man soll pip3 install ldap ausführen
dann kommt Collecting ldap
Using cached ldap-2.0.0.404.tar.gz (2.0 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: ldap
Building wheel for ldap (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [85 lines of output]
running bdist_wheel
running build
running build_py
------------------------------------------------------------------------
# `ldap` on PyPI
This dummy project is not installable.
You probably want `python-ldap` instead.
### python-ldap
The widely used [python-ldap](https://python-ldap.org) project provides
an importable module named `ldap`.
This goes against the convention that PyPI distribution names should
match the module names.
But, python-ldap pre-dates wide use of that convention, and the issue
is hard to fix now.
Please install `python-ldap` to get the LDAP bindings.
### ldap 1.0
The `ldap` name on PyPI was used for an unrelated collection of
LDAP-related utilities, which is not as popular, and confused users who
install `ldap` to get the `ldap` module.
The project is no longer developed.
It is archived as `1.0.x` releases on PyPI, and on
[GitHub](https://github.com/andreif/ldap).
## Why we don't fix this transparently
This could have been a placeholder package that depends on `python-ldap`,
saving you the trouble of reading this message.
However, `pip` [has trouble](https://github.com/pypa/pip/issues/4961)
with differently-named packages that provide the same module.
## Please: Don't install packages blindly
When you see the exception:
```
ModuleNotFoundError: No module named 'foo'
```
… please research the actual requirements instead of going directly for
`pip install foo`.
The project (distribution) name may differ from the module(s) it
provides.
------------------------------------------------------------------------
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-68qi8o6c/ldap_2f60ecf7527a4f599f642e613231b987/setup.py", line 23, in <module>
setup(
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.10/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-68qi8o6c/ldap_2f60ecf7527a4f599f642e613231b987/setup.py", line 18, in run
raise ValueError(
ValueError: "ldap" is not installable. You probably want python-ldap.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ldap
Running setup.py clean for ldap
Failed to build ldap
Installing collected packages: ldap
Running setup.py install for ldap ... error
error: subprocess-exited-with-error
× Running setup.py install for ldap did not run successfully.
│ exit code: 1
╰─> [89 lines of output]
running install
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
------------------------------------------------------------------------
# `ldap` on PyPI
This dummy project is not installable.
You probably want `python-ldap` instead.
### python-ldap
The widely used [python-ldap](https://python-ldap.org) project provides
an importable module named `ldap`.
This goes against the convention that PyPI distribution names should
match the module names.
But, python-ldap pre-dates wide use of that convention, and the issue
is hard to fix now.
Please install `python-ldap` to get the LDAP bindings.
### ldap 1.0
The `ldap` name on PyPI was used for an unrelated collection of
LDAP-related utilities, which is not as popular, and confused users who
install `ldap` to get the `ldap` module.
The project is no longer developed.
It is archived as `1.0.x` releases on PyPI, and on
[GitHub](https://github.com/andreif/ldap).
## Why we don't fix this transparently
This could have been a placeholder package that depends on `python-ldap`,
saving you the trouble of reading this message.
However, `pip` [has trouble](https://github.com/pypa/pip/issues/4961)
with differently-named packages that provide the same module.
## Please: Don't install packages blindly
When you see the exception:
```
ModuleNotFoundError: No module named 'foo'
```
… please research the actual requirements instead of going directly for
`pip install foo`.
The project (distribution) name may differ from the module(s) it
provides.
------------------------------------------------------------------------
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-68qi8o6c/ldap_2f60ecf7527a4f599f642e613231b987/setup.py", line 23, in <module>
setup(
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 68, in run
return orig.install.run(self)
File "/usr/lib/python3.10/distutils/command/install.py", line 619, in run
self.run_command('build')
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.10/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-68qi8o6c/ldap_2f60ecf7527a4f599f642e613231b987/setup.py", line 18, in run
raise ValueError(
ValueError: "ldap" is not installable. You probably want python-ldap.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> ldap
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Das das mit dem ldap immer so schwer sein muss
das war bei dem ein oder anderen Server den ich schon über ldap angebunden hab auch so ein Theater
Wobei Nextcloud und Wordpress da sehr Benutzerfreundlich waren
Aber Ampache war auch so ein Kampf oder das Dokuwiki puhh ich hoffe ihr könnt mir helfen Mit freundlichen Grüßen
Timm
|
Doc_Symbiosis
Anmeldungsdatum: 11. Oktober 2006
Beiträge: 4434
Wohnort: Göttingen
|
Naja, hast Du denn mal versucht, das Python-Paket python-ldap zu installieren, wie es in der Ausgabe steht?
|
sebix
Moderator, Webteam
Anmeldungsdatum: 14. April 2009
Beiträge: 5482
|
apt install python3-ldap3 ?
|
Windoofer
(Themenstarter)
Anmeldungsdatum: 14. März 2016
Beiträge: 148
Wohnort: Maxdorf
|
Hallo sebix und Doc_Symbiosis root@MurMur:~# apt-get install python3-ldap3
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
python3-pyasn1
The following NEW packages will be installed:
python3-ldap3 python3-pyasn1
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 279 kB of archives.
After this operation, 2695 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 python3-pyasn1 all 0.4.8-1 [50.9 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy/universe amd64 python3-ldap3 all 2.8.1-1 [229 kB]
Fetched 279 kB in 1s (347 kB/s)
Selecting previously unselected package python3-pyasn1.
(Reading database ... 27265 files and directories currently installed.)
Preparing to unpack .../python3-pyasn1_0.4.8-1_all.deb ...
Unpacking python3-pyasn1 (0.4.8-1) ...
Selecting previously unselected package python3-ldap3.
Preparing to unpack .../python3-ldap3_2.8.1-1_all.deb ...
Unpacking python3-ldap3 (2.8.1-1) ...
Setting up python3-pyasn1 (0.4.8-1) ...
Setting up python3-ldap3 (2.8.1-1) ... das hat funktioniert root@MurMur:~# pip3 install ldap
Collecting ldap
Using cached ldap-2.0.0.404.tar.gz (2.0 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: ldap
Building wheel for ldap (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [85 lines of output]
running bdist_wheel
running build
running build_py
------------------------------------------------------------------------
# `ldap` on PyPI
This dummy project is not installable.
You probably want `python-ldap` instead.
### python-ldap
The widely used [python-ldap](https://python-ldap.org) project provides
an importable module named `ldap`.
This goes against the convention that PyPI distribution names should
match the module names.
But, python-ldap pre-dates wide use of that convention, and the issue
is hard to fix now.
Please install `python-ldap` to get the LDAP bindings.
### ldap 1.0
The `ldap` name on PyPI was used for an unrelated collection of
LDAP-related utilities, which is not as popular, and confused users who
install `ldap` to get the `ldap` module.
The project is no longer developed.
It is archived as `1.0.x` releases on PyPI, and on
[GitHub](https://github.com/andreif/ldap).
## Why we don't fix this transparently
This could have been a placeholder package that depends on `python-ldap`,
saving you the trouble of reading this message.
However, `pip` [has trouble](https://github.com/pypa/pip/issues/4961)
with differently-named packages that provide the same module.
## Please: Don't install packages blindly
When you see the exception:
```
ModuleNotFoundError: No module named 'foo'
```
… please research the actual requirements instead of going directly for
`pip install foo`.
The project (distribution) name may differ from the module(s) it
provides.
------------------------------------------------------------------------
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-glofs0qs/ldap_cbf3d7d7662e483087cdd3deb74a46fa/setup.py", line 23, in <module>
setup(
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.10/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-glofs0qs/ldap_cbf3d7d7662e483087cdd3deb74a46fa/setup.py", line 18, in run
raise ValueError(
ValueError: "ldap" is not installable. You probably want python-ldap.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ldap
Running setup.py clean for ldap
Failed to build ldap
Installing collected packages: ldap
Running setup.py install for ldap ... error
error: subprocess-exited-with-error
× Running setup.py install for ldap did not run successfully.
│ exit code: 1
╰─> [89 lines of output]
running install
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
------------------------------------------------------------------------
# `ldap` on PyPI
This dummy project is not installable.
You probably want `python-ldap` instead.
### python-ldap
The widely used [python-ldap](https://python-ldap.org) project provides
an importable module named `ldap`.
This goes against the convention that PyPI distribution names should
match the module names.
But, python-ldap pre-dates wide use of that convention, and the issue
is hard to fix now.
Please install `python-ldap` to get the LDAP bindings.
### ldap 1.0
The `ldap` name on PyPI was used for an unrelated collection of
LDAP-related utilities, which is not as popular, and confused users who
install `ldap` to get the `ldap` module.
The project is no longer developed.
It is archived as `1.0.x` releases on PyPI, and on
[GitHub](https://github.com/andreif/ldap).
## Why we don't fix this transparently
This could have been a placeholder package that depends on `python-ldap`,
saving you the trouble of reading this message.
However, `pip` [has trouble](https://github.com/pypa/pip/issues/4961)
with differently-named packages that provide the same module.
## Please: Don't install packages blindly
When you see the exception:
```
ModuleNotFoundError: No module named 'foo'
```
… please research the actual requirements instead of going directly for
`pip install foo`.
The project (distribution) name may differ from the module(s) it
provides.
------------------------------------------------------------------------
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-glofs0qs/ldap_cbf3d7d7662e483087cdd3deb74a46fa/setup.py", line 23, in <module>
setup(
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 68, in run
return orig.install.run(self)
File "/usr/lib/python3.10/distutils/command/install.py", line 619, in run
self.run_command('build')
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.10/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-glofs0qs/ldap_cbf3d7d7662e483087cdd3deb74a46fa/setup.py", line 18, in run
raise ValueError(
ValueError: "ldap" is not installable. You probably want python-ldap.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> ldap
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure. das leider nicht diese Ldap Geschichte ist immer wieder eine Herausforderung 😀
|
Doc_Symbiosis
Anmeldungsdatum: 11. Oktober 2006
Beiträge: 4434
Wohnort: Göttingen
|
Wieso möchtest Du denn das Modul ldap installieren? Es wird doch klar gesagt: ValueError: "ldap" is not installable. You probably want python-ldap.
Wenn die Software dennoch das Modul ldap haben möchte, dann solltest Du sie entweder umschreiben oder einfach nicht verwenden.
|
sebix
Moderator, Webteam
Anmeldungsdatum: 14. April 2009
Beiträge: 5482
|
Und was sagt jetzt mumble-ldapauth.service nach einem restart?
|
Doc_Symbiosis
Anmeldungsdatum: 11. Oktober 2006
Beiträge: 4434
Wohnort: Göttingen
|
Also Murmur sagte ja schon vorher, dass er hieran scheitert:
import ldap Da müsste man mal schauen, ob man beim Import einfach auf das neuere Modul schwenken kann.
Aber bei Python kenne ich mit den LDAP-Modulen auch nicht aus, muss ich zugeben...
|
sebix
Moderator, Webteam
Anmeldungsdatum: 14. April 2009
Beiträge: 5482
|
Doc_Symbiosis schrieb: Also Murmur sagte ja schon vorher, dass er hieran scheitert:
import ldap
Und die Bibliothek ist nun (via apt) installiert. Also kanns ja jetzt, weitergehen, oder nicht? Dass die (zusaetzliche?) Installation via pip scheitert, ist dann eh unerheblich und wir muessen uns das nicht genauer ansehen (bzw auch ldap-dev installieren)
|
karzer
Wikiteam
Anmeldungsdatum: 10. April 2022
Beiträge: 1440
Wohnort: Bad Oeynhausen
|
Windoofer schrieb: root@MurMur:~# pip3 install ldap
Collecting ldap
Using cached ldap-2.0.0.404.tar.gz (2.0 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: ldap
Building wheel for ldap (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [85 lines of output]
running bdist_wheel
running build
running build_py
------------------------------------------------------------------------
# `ldap` on PyPI
This dummy project is not installable.
You probably want `python-ldap` instead.
### python-ldap
The widely used [python-ldap](https://python-ldap.org) project provides
an importable module named `ldap`.
This goes against the convention that PyPI distribution names should
match the module names.
But, python-ldap pre-dates wide use of that convention, and the issue
is hard to fix now.
Please install `python-ldap` to get the LDAP bindings.
### ldap 1.0
The `ldap` name on PyPI was used for an unrelated collection of
LDAP-related utilities, which is not as popular, and confused users who
install `ldap` to get the `ldap` module.
The project is no longer developed.
It is archived as `1.0.x` releases on PyPI, and on
[GitHub](https://github.com/andreif/ldap).
## Why we don't fix this transparently
This could have been a placeholder package that depends on `python-ldap`,
saving you the trouble of reading this message.
However, `pip` [has trouble](https://github.com/pypa/pip/issues/4961)
with differently-named packages that provide the same module.
## Please: Don't install packages blindly
When you see the exception:
```
ModuleNotFoundError: No module named 'foo'
```
… please research the actual requirements instead of going directly for
`pip install foo`.
The project (distribution) name may differ from the module(s) it
provides.
------------------------------------------------------------------------
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-glofs0qs/ldap_cbf3d7d7662e483087cdd3deb74a46fa/setup.py", line 23, in <module>
setup(
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.10/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-glofs0qs/ldap_cbf3d7d7662e483087cdd3deb74a46fa/setup.py", line 18, in run
raise ValueError(
ValueError: "ldap" is not installable. You probably want python-ldap.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ldap
Running setup.py clean for ldap
Failed to build ldap
Installing collected packages: ldap
Running setup.py install for ldap ... error
error: subprocess-exited-with-error
× Running setup.py install for ldap did not run successfully.
│ exit code: 1
╰─> [89 lines of output]
running install
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
------------------------------------------------------------------------
# `ldap` on PyPI
This dummy project is not installable.
You probably want `python-ldap` instead.
### python-ldap
The widely used [python-ldap](https://python-ldap.org) project provides
an importable module named `ldap`.
This goes against the convention that PyPI distribution names should
match the module names.
But, python-ldap pre-dates wide use of that convention, and the issue
is hard to fix now.
Please install `python-ldap` to get the LDAP bindings.
### ldap 1.0
The `ldap` name on PyPI was used for an unrelated collection of
LDAP-related utilities, which is not as popular, and confused users who
install `ldap` to get the `ldap` module.
The project is no longer developed.
It is archived as `1.0.x` releases on PyPI, and on
[GitHub](https://github.com/andreif/ldap).
## Why we don't fix this transparently
This could have been a placeholder package that depends on `python-ldap`,
saving you the trouble of reading this message.
However, `pip` [has trouble](https://github.com/pypa/pip/issues/4961)
with differently-named packages that provide the same module.
## Please: Don't install packages blindly
When you see the exception:
```
ModuleNotFoundError: No module named 'foo'
```
… please research the actual requirements instead of going directly for
`pip install foo`.
The project (distribution) name may differ from the module(s) it
provides.
------------------------------------------------------------------------
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-glofs0qs/ldap_cbf3d7d7662e483087cdd3deb74a46fa/setup.py", line 23, in <module>
setup(
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 68, in run
return orig.install.run(self)
File "/usr/lib/python3.10/distutils/command/install.py", line 619, in run
self.run_command('build')
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.10/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-glofs0qs/ldap_cbf3d7d7662e483087cdd3deb74a46fa/setup.py", line 18, in run
raise ValueError(
ValueError: "ldap" is not installable. You probably want python-ldap.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> ldap
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure. das leider nicht
Probiere mal das: sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev Das installiert die Abhängigkeiten, und dann: python3 -m pip install python-ldap
|
Windoofer
(Themenstarter)
Anmeldungsdatum: 14. März 2016
Beiträge: 148
Wohnort: Maxdorf
|
Hallo Doc_Symbiosis er sagt mit in dieser Fehlermeldung
Sep 01 14:02:57 MurMur systemd[1]: Started LDAP Authentication Service for Mumble Server.
Sep 01 14:02:57 MurMur LDAPauth.py[200]: Traceback (most recent call last):
Sep 01 14:02:57 MurMur LDAPauth.py[200]: File "/usr/local/sbin/LDAPauth.py", line 113, in <module>
Sep 01 14:02:57 MurMur LDAPauth.py[200]: import ldap
Sep 01 14:02:57 MurMur LDAPauth.py[200]: ModuleNotFoundError: No module named 'ldap' ich werde dann morgen mal versuchen eine neuere Version von Python ldap zu finden und u installieren Hallo sebix
nach einem Neustart des Dienstes bleibt der Fehler gleich Sep 01 14:02:57 MurMur systemd[1]: Started LDAP Authentication Service for Mumble Server.
Sep 01 14:02:57 MurMur LDAPauth.py[200]: Traceback (most recent call last):
Sep 01 14:02:57 MurMur LDAPauth.py[200]: File "/usr/local/sbin/LDAPauth.py", line 113, in <module>
Sep 01 14:02:57 MurMur LDAPauth.py[200]: import ldap
Sep 01 14:02:57 MurMur LDAPauth.py[200]: ModuleNotFoundError: No module named 'ldap'
|
Windoofer
(Themenstarter)
Anmeldungsdatum: 14. März 2016
Beiträge: 148
Wohnort: Maxdorf
|
Hallo karzer ich hab apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev aus geführt und dann python3 -m pip install python-ldap danach kam das root@MurMur:~# python3 -m pip install python-ldap
Collecting python-ldap
Downloading python-ldap-3.4.2.tar.gz (378 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 378.1/378.1 KB 7.6 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: pyasn1>=0.3.7 in /usr/lib/python3/dist-packages (from python-ldap) (0.4.8)
Collecting pyasn1-modules>=0.1.5
Downloading pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.3/155.3 KB 12.4 MB/s eta 0:00:00
Building wheels for collected packages: python-ldap
Building wheel for python-ldap (pyproject.toml) ... done
Created wheel for python-ldap: filename=python_ldap-3.4.2-cp310-cp310-linux_x86_64.whl size=318059 sha256=257bb4ff58a0423b0a45f8986f79a0cc19c78b0c834b8cd9e6be3e822684d893
Stored in directory: /root/.cache/pip/wheels/4f/16/6b/4f59ee64a958a5ad74932f09d32e524c5d0a3b1e8f9b3c8c84
Successfully built python-ldap
Installing collected packages: pyasn1-modules, python-ldap
Successfully installed pyasn1-modules-0.2.8 python-ldap-3.4.2
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 Bearbeitet von sebix: Bitte verwende in Zukunft Codeblöcke, um die Übersicht im Forum zu verbessern!
|
sebix
Moderator, Webteam
Anmeldungsdatum: 14. April 2009
Beiträge: 5482
|
Windoofer schrieb: Hallo sebix
nach einem Neustart des Dienstes bleibt der Fehler gleich Sep 01 14:02:57 MurMur systemd[1]: Started LDAP Authentication Service for Mumble Server.
Sep 01 14:02:57 MurMur LDAPauth.py[200]: Traceback (most recent call last):
Sep 01 14:02:57 MurMur LDAPauth.py[200]: File "/usr/local/sbin/LDAPauth.py", line 113, in <module>
Sep 01 14:02:57 MurMur LDAPauth.py[200]: import ldap
Sep 01 14:02:57 MurMur LDAPauth.py[200]: ModuleNotFoundError: No module named 'ldap'
Dann will der Dienst vielleicht die Bibliothek python3-ldap , also apt install python3-ldap .
|
karzer
Wikiteam
Anmeldungsdatum: 10. April 2022
Beiträge: 1440
Wohnort: Bad Oeynhausen
|
Windoofer schrieb: danach kam das root@MurMur:~# python3 -m pip install python-ldap
Collecting python-ldap
Downloading python-ldap-3.4.2.tar.gz (378 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 378.1/378.1 KB 7.6 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: pyasn1>=0.3.7 in /usr/lib/python3/dist-packages (from python-ldap) (0.4.8)
Collecting pyasn1-modules>=0.1.5
Downloading pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.3/155.3 KB 12.4 MB/s eta 0:00:00
Building wheels for collected packages: python-ldap
Building wheel for python-ldap (pyproject.toml) ... done
Created wheel for python-ldap: filename=python_ldap-3.4.2-cp310-cp310-linux_x86_64.whl size=318059 sha256=257bb4ff58a0423b0a45f8986f79a0cc19c78b0c834b8cd9e6be3e822684d893
Stored in directory: /root/.cache/pip/wheels/4f/16/6b/4f59ee64a958a5ad74932f09d32e524c5d0a3b1e8f9b3c8c84
Successfully built python-ldap
Installing collected packages: pyasn1-modules, python-ldap
Successfully installed pyasn1-modules-0.2.8 python-ldap-3.4.2
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
Dann ist die Bibliothek jetzt installiert!
|
Windoofer
(Themenstarter)
Anmeldungsdatum: 14. März 2016
Beiträge: 148
Wohnort: Maxdorf
|
Hallo sebis hallo karzer root@MurMur:~# apt install python3-ldap
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
python3-pyasn1-modules
The following NEW packages will be installed:
python3-ldap python3-pyasn1-modules
0 upgraded, 2 newly installed, 0 to remove and 3 not upgraded.
Need to get 128 kB of archives.
After this operation, 787 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 python3-pyasn1-modules all 0.2.1-1 [33.0 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-ldap amd64 3.2.0-4ubuntu7.1 [95.0 kB]
Fetched 128 kB in 0s (782 kB/s)
Selecting previously unselected package python3-pyasn1-modules.
(Reading database ... 28793 files and directories currently installed.)
Preparing to unpack .../python3-pyasn1-modules_0.2.1-1_all.deb ...
Unpacking python3-pyasn1-modules (0.2.1-1) ...
Selecting previously unselected package python3-ldap:amd64.
Preparing to unpack .../python3-ldap_3.2.0-4ubuntu7.1_amd64.deb ...
Unpacking python3-ldap:amd64 (3.2.0-4ubuntu7.1) ...
Setting up python3-pyasn1-modules (0.2.1-1) ...
Setting up python3-ldap:amd64 (3.2.0-4ubuntu7.1) ... Das hat geklappt root@MurMur:~# python3 -m pip install python-ldap
Requirement already satisfied: python-ldap in /usr/local/lib/python3.10/dist-packages (3.4.2)
Requirement already satisfied: pyasn1>=0.3.7 in /usr/lib/python3/dist-packages (from python-ldap) (0.4.8)
Requirement already satisfied: pyasn1-modules>=0.1.5 in /usr/local/lib/python3.10/dist-packages (from python-ldap) (0.2.8)
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 das weis ich nicht wie ich das deuten soll aber jetzt gibt es eine andere Fehlermeldung immerhin root@MurMur:~# systemctl status mumble-ldapauth.service
x mumble-ldapauth.service - LDAP Authentication Service for Mumble Server
Loaded: loaded (/etc/systemd/system/mumble-ldapauth.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2022-09-02 11:42:07 UTC; 5s ago
Docs: https://github.com/mumble-voip/mumble-scripts/issues/19
Process: 1743 ExecStart=/usr/local/sbin/LDAPauth.py (code=exited, status=1/FAILURE)
Main PID: 1743 (code=exited, status=1/FAILURE)
CPU: 107ms
Sep 02 11:42:07 MurMur systemd[1]: Started LDAP Authentication Service for Mumble Server.
Sep 02 11:42:07 MurMur LDAPauth.py[1743]: Traceback (most recent call last):
Sep 02 11:42:07 MurMur LDAPauth.py[1743]: File "/usr/local/sbin/LDAPauth.py", line 114, in <module>
Sep 02 11:42:07 MurMur LDAPauth.py[1743]: import Ice
Sep 02 11:42:07 MurMur LDAPauth.py[1743]: ModuleNotFoundError: No module named 'Ice'
Sep 02 11:42:07 MurMur systemd[1]: mumble-ldapauth.service: Main process exited, code=exited, status=1/FAILURE
Sep 02 11:42:07 MurMur systemd[1]: mumble-ldapauth.service: Failed with result 'exit-code'. apt-get install php-zeroc-ice
und das hinzufügen von extension=IcePHP.so in der php.ini hat nichts gebracht
|
Doc_Symbiosis
Anmeldungsdatum: 11. Oktober 2006
Beiträge: 4434
Wohnort: Göttingen
|
Was soll es denn bringen, wenn Du wegen eines fehlenden Python-Moduls etwas in die PHP.ini einträgst? Also Du solltest wohl am ehesten ICE per PIP installieren, aber das ist von deiner Python -Umgebung abhängig. Wahrscheinlich sollte das so gehen:
pip3 install ice Aber bei deinem Vorgehen habe ich ganz ehrlich arge Zweifel, ob Du weiter probieren solltest, das zum Laufen zu bekommen.
|