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

Need clarification on "ldap3" vs. "python3-ldap" #1060

Open
ohaya opened this issue Sep 24, 2022 · 4 comments
Open

Need clarification on "ldap3" vs. "python3-ldap" #1060

ohaya opened this issue Sep 24, 2022 · 4 comments

Comments

@ohaya
Copy link

ohaya commented Sep 24, 2022

Hi,

I posted about this question on Stackoverflow, "Confusion about "python3-ldap" and "ldap3"", but haven't received much response.

At this point, it SEEMS like the answer to my question is that what gets installed by installing the "python3-ldap" via yum or RPM is NOT the same as downloading the source for "ldap3" from here, i.e., when the page says:

"python3-ldap HAS BEEN RENAMED ldap3 to avoid confusion with the former python-ldap project."

the mentioned "python3-ldap" is NOT referring to the RPM that is available for "python3-ldap", i.e., it is just a coincidence that the RPM and this project have the same "python3-ldap" name.

Can someone here confirm that that is the case?

Thanks,
Jim

P.S. Here is info from the RPM (rpm -qi python3-ldap):

rpm -qi python3-ldap

Name : python3-ldap
Version : 3.3.1
Release : 2.el8
Architecture: x86_64
Install Date: Mon 12 Sep 2022 12:02:00 PM EDT
Group : System Environment/Libraries
Size : 839476
License : Python
Signature : RSA/SHA256, Thu 29 Jul 2021 10:24:58 AM EDT, Key ID 199e2f91fd431d51
Source RPM : python-ldap-3.3.1-2.el8.src.rpm
Build Date : Mon 28 Jun 2021 07:37:54 AM EDT
Build Host : x86-vm-07.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager : Red Hat, Inc. http://bugzilla.redhat.com/bugzilla
Vendor : Red Hat, Inc.
URL : http://python-ldap.org/
Summary : An object-oriented API to access LDAP directory servers
Description :
python-ldap provides an object-oriented API for working with LDAP within
Python programs. It allows access to LDAP directory servers by wrapping the
OpenLDAP 2.x libraries, and contains modules for other LDAP-related tasks
(including processing LDIF, LDAPURLs, LDAPv3 schema, etc.).

@ohaya
Copy link
Author

ohaya commented Sep 24, 2022

And here is the file listing from "rpm -ql python3-ldap":

rpm -ql python3-ldap
/usr/lib/.build-id
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/72e2baaf4be95acf7212172003f5d96124e7d4
/usr/lib64/python3.6/site-packages/pycache/ldapurl.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/pycache/ldapurl.cpython-36.pyc
/usr/lib64/python3.6/site-packages/pycache/ldif.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/pycache/ldif.cpython-36.pyc
/usr/lib64/python3.6/site-packages/_ldap.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/ldap
/usr/lib64/python3.6/site-packages/ldap/init.py
/usr/lib64/python3.6/site-packages/ldap/pycache
/usr/lib64/python3.6/site-packages/ldap/pycache/init.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/init.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/async.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/async.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/asyncsearch.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/asyncsearch.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/cidict.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/cidict.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/compat.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/compat.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/constants.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/constants.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/dn.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/dn.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/filter.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/filter.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/functions.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/functions.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/ldapobject.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/ldapobject.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/logger.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/logger.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/modlist.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/modlist.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/pkginfo.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/pkginfo.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/resiter.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/resiter.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/sasl.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/sasl.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/syncrepl.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/pycache/syncrepl.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/async.py
/usr/lib64/python3.6/site-packages/ldap/asyncsearch.py
/usr/lib64/python3.6/site-packages/ldap/cidict.py
/usr/lib64/python3.6/site-packages/ldap/compat.py
/usr/lib64/python3.6/site-packages/ldap/constants.py
/usr/lib64/python3.6/site-packages/ldap/controls
/usr/lib64/python3.6/site-packages/ldap/controls/init.py
/usr/lib64/python3.6/site-packages/ldap/controls/pycache
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/init.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/init.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/deref.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/deref.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/libldap.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/libldap.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/openldap.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/openldap.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/pagedresults.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/pagedresults.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/ppolicy.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/ppolicy.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/psearch.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/psearch.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/pwdpolicy.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/pwdpolicy.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/readentry.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/readentry.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/sessiontrack.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/sessiontrack.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/simple.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/simple.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/sss.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/sss.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/vlv.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/pycache/vlv.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/deref.py
/usr/lib64/python3.6/site-packages/ldap/controls/libldap.py
/usr/lib64/python3.6/site-packages/ldap/controls/openldap.py
/usr/lib64/python3.6/site-packages/ldap/controls/pagedresults.py
/usr/lib64/python3.6/site-packages/ldap/controls/ppolicy.py
/usr/lib64/python3.6/site-packages/ldap/controls/psearch.py
/usr/lib64/python3.6/site-packages/ldap/controls/pwdpolicy.py
/usr/lib64/python3.6/site-packages/ldap/controls/readentry.py
/usr/lib64/python3.6/site-packages/ldap/controls/sessiontrack.py
/usr/lib64/python3.6/site-packages/ldap/controls/simple.py
/usr/lib64/python3.6/site-packages/ldap/controls/sss.py
/usr/lib64/python3.6/site-packages/ldap/controls/vlv.py
/usr/lib64/python3.6/site-packages/ldap/dn.py
/usr/lib64/python3.6/site-packages/ldap/extop
/usr/lib64/python3.6/site-packages/ldap/extop/init.py
/usr/lib64/python3.6/site-packages/ldap/extop/pycache
/usr/lib64/python3.6/site-packages/ldap/extop/pycache/init.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/extop/pycache/init.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/extop/pycache/dds.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/extop/pycache/dds.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/extop/pycache/passwd.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/extop/pycache/passwd.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/extop/dds.py
/usr/lib64/python3.6/site-packages/ldap/extop/passwd.py
/usr/lib64/python3.6/site-packages/ldap/filter.py
/usr/lib64/python3.6/site-packages/ldap/functions.py
/usr/lib64/python3.6/site-packages/ldap/ldapobject.py
/usr/lib64/python3.6/site-packages/ldap/logger.py
/usr/lib64/python3.6/site-packages/ldap/modlist.py
/usr/lib64/python3.6/site-packages/ldap/pkginfo.py
/usr/lib64/python3.6/site-packages/ldap/resiter.py
/usr/lib64/python3.6/site-packages/ldap/sasl.py
/usr/lib64/python3.6/site-packages/ldap/schema
/usr/lib64/python3.6/site-packages/ldap/schema/init.py
/usr/lib64/python3.6/site-packages/ldap/schema/pycache
/usr/lib64/python3.6/site-packages/ldap/schema/pycache/init.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/schema/pycache/init.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/schema/pycache/models.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/schema/pycache/models.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/schema/pycache/subentry.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/schema/pycache/subentry.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/schema/pycache/tokenizer.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/schema/pycache/tokenizer.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/schema/models.py
/usr/lib64/python3.6/site-packages/ldap/schema/subentry.py
/usr/lib64/python3.6/site-packages/ldap/schema/tokenizer.py
/usr/lib64/python3.6/site-packages/ldap/syncrepl.py
/usr/lib64/python3.6/site-packages/ldapurl.py
/usr/lib64/python3.6/site-packages/ldif.py
/usr/lib64/python3.6/site-packages/python_ldap-3.3.1-py3.6.egg-info
/usr/lib64/python3.6/site-packages/python_ldap-3.3.1-py3.6.egg-info/PKG-INFO
/usr/lib64/python3.6/site-packages/python_ldap-3.3.1-py3.6.egg-info/SOURCES.txt
/usr/lib64/python3.6/site-packages/python_ldap-3.3.1-py3.6.egg-info/dependency_links.txt
/usr/lib64/python3.6/site-packages/python_ldap-3.3.1-py3.6.egg-info/not-zip-safe
/usr/lib64/python3.6/site-packages/python_ldap-3.3.1-py3.6.egg-info/requires.txt
/usr/lib64/python3.6/site-packages/python_ldap-3.3.1-py3.6.egg-info/top_level.txt
/usr/lib64/python3.6/site-packages/slapdtest
/usr/lib64/python3.6/site-packages/slapdtest/init.py
/usr/lib64/python3.6/site-packages/slapdtest/pycache
/usr/lib64/python3.6/site-packages/slapdtest/pycache/init.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/slapdtest/pycache/init.cpython-36.pyc
/usr/lib64/python3.6/site-packages/slapdtest/pycache/_slapdtest.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/slapdtest/pycache/_slapdtest.cpython-36.pyc
/usr/lib64/python3.6/site-packages/slapdtest/_slapdtest.py
/usr/lib64/python3.6/site-packages/slapdtest/certs
/usr/lib64/python3.6/site-packages/slapdtest/certs/README
/usr/lib64/python3.6/site-packages/slapdtest/certs/ca.conf
/usr/lib64/python3.6/site-packages/slapdtest/certs/ca.pem
/usr/lib64/python3.6/site-packages/slapdtest/certs/client.conf
/usr/lib64/python3.6/site-packages/slapdtest/certs/client.key
/usr/lib64/python3.6/site-packages/slapdtest/certs/client.pem
/usr/lib64/python3.6/site-packages/slapdtest/certs/gencerts.sh
/usr/lib64/python3.6/site-packages/slapdtest/certs/gennssdb.sh
/usr/lib64/python3.6/site-packages/slapdtest/certs/server.conf
/usr/lib64/python3.6/site-packages/slapdtest/certs/server.key
/usr/lib64/python3.6/site-packages/slapdtest/certs/server.pem
/usr/share/doc/python3-ldap
/usr/share/doc/python3-ldap/CHANGES
/usr/share/doc/python3-ldap/Demo
/usr/share/doc/python3-ldap/Demo/Lib
/usr/share/doc/python3-ldap/Demo/Lib/ldap
/usr/share/doc/python3-ldap/Demo/Lib/ldap/async
/usr/share/doc/python3-ldap/Demo/Lib/ldap/async/deltree.py
/usr/share/doc/python3-ldap/Demo/Lib/ldap/async/ldifwriter.py
/usr/share/doc/python3-ldap/Demo/Lib/ldap/async/sizelimit.py
/usr/share/doc/python3-ldap/Demo/Lib/ldapurl
/usr/share/doc/python3-ldap/Demo/Lib/ldapurl/urlsearch.py
/usr/share/doc/python3-ldap/Demo/Lib/ldif
/usr/share/doc/python3-ldap/Demo/Lib/ldif/ldifcopy.py
/usr/share/doc/python3-ldap/Demo/initialize.py
/usr/share/doc/python3-ldap/Demo/ldapcontrols.py
/usr/share/doc/python3-ldap/Demo/ldapurl_search.py
/usr/share/doc/python3-ldap/Demo/matchedvalues.py
/usr/share/doc/python3-ldap/Demo/ms_ad_bind.py
/usr/share/doc/python3-ldap/Demo/options.py
/usr/share/doc/python3-ldap/Demo/page_control.py
/usr/share/doc/python3-ldap/Demo/paged_search_ext_s.py
/usr/share/doc/python3-ldap/Demo/passwd_ext_op.py
/usr/share/doc/python3-ldap/Demo/pickle_ldapobject.py
/usr/share/doc/python3-ldap/Demo/pyasn1
/usr/share/doc/python3-ldap/Demo/pyasn1/dds.py
/usr/share/doc/python3-ldap/Demo/pyasn1/derefcontrol.py
/usr/share/doc/python3-ldap/Demo/pyasn1/noopsearch.py
/usr/share/doc/python3-ldap/Demo/pyasn1/ppolicy.py
/usr/share/doc/python3-ldap/Demo/pyasn1/psearch.py
/usr/share/doc/python3-ldap/Demo/pyasn1/readentrycontrol.py
/usr/share/doc/python3-ldap/Demo/pyasn1/sessiontrack.py
/usr/share/doc/python3-ldap/Demo/pyasn1/sss_highest_number.py
/usr/share/doc/python3-ldap/Demo/pyasn1/syncrepl.py
/usr/share/doc/python3-ldap/Demo/reconnect.py
/usr/share/doc/python3-ldap/Demo/rename.py
/usr/share/doc/python3-ldap/Demo/resiter.py
/usr/share/doc/python3-ldap/Demo/sasl_bind.py
/usr/share/doc/python3-ldap/Demo/schema.py
/usr/share/doc/python3-ldap/Demo/schema_tree.py
/usr/share/doc/python3-ldap/Demo/simple.py
/usr/share/doc/python3-ldap/Demo/simplebrowse.py
/usr/share/doc/python3-ldap/README
/usr/share/doc/python3-ldap/TODO
/usr/share/licenses/python3-ldap
/usr/share/licenses/python3-ldap/LICENCE

@cannatag
Copy link
Owner

cannatag commented Sep 24, 2022 via email

@ohaya
Copy link
Author

ohaya commented Sep 25, 2022

Hi,

Ok, thanks for the clarification!

@ohaya
Copy link
Author

ohaya commented Sep 25, 2022

Closing this issue

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

No branches or pull requests

2 participants